WARNING:
JavaScript is turned OFF. None of the links on this concept map will
work until it is reactivated.
If you need help turning JavaScript On, click here.
This Concept Map, created with IHMC CmapTools, has information related to: My class USBIO24R, TFtConfigData is a structure, also defined in Config.h as ... typedef struct _TFtConfigData { int BaudRate; int DataBits; int StopBits; int Parity; int FlowControl; UCHAR Xon; UCHAR Xoff; UCHAR EventChar; UCHAR ErrorChar; BOOL EventCharEnabled; BOOL ErrorCharEnabled; BOOL RtsHi; BOOL DtrHi; BOOL CtsHi; BOOL DsrHi; BOOL DcdHi; BOOL RingHi; DWORD RxTimeout; DWORD TxTimeout; DWORD EventMask; } TFtConfigData; ???? The class definition in the Config.h file is ... //-------------------------------------- class USBIO24R ------------ class USBIO24R { private: bool isOpen; // true when device is opened char buffer[5]; ULONG BytesWritten; FT_HANDLE ftHandle; FT_STATUS ftStatus; ULONG Status; // Config Data structure TFtConfigData Data; int __fastcall SetPort(); int __fastcall Open(); // open the device // Dec 3 2011 moved here void __fastcall Close(); // close the device // Dec 3 2011 moved here public: __fastcall USBIO24R(TComponent* Owner); // default constructor bool __fastcall IsDeviceOpen() {return isOpen;}; ULONG __fastcall WriteToPort(char *buf,int length); // eg !A0 or A8 int __fastcall ReadFromPort(char port); // eg a or b or c void __fastcall ConfigurePort(); // open a window and configure the port // int __fastcall GetPortValueRead() {return (int)(readPortBuffer[0]);}; };, main files ???? My class USBIO24R files, The class allows for opening a connection from the PC to the USB IO 24R board. This board has 3 ports of 10 pins. A +5V, a Gnd, and 8 IO pins. Each IO pin can be programmed independently of the others. So in total you have 24 IO pins. Using the FTD2xx.lib from FTDI chip manufacturers, you program the board by sending simple ASCII commands to the board. All data is sent as binary data though. Essentially you open a connection using a data structure, then write commands to the device which can setup the IO pin pattern, or write a byte to the output pins, or read the value on the input pins. ???? My class USBIO24R files