10 #define BARST_VERSION 22000 // it's 2.20.00 12 #define MIN_PIPE_BUF_SIZE 20 // smallest named pipe buffer possible 13 #define DEVICE_NAME_SIZE 8 // size of the unique internal name given for all devices/managers 14 #define MIN_BUFF_IN 256 // smallest server read (clients write) buffer for named pipe communicator 15 #define MIN_BUFF_OUT 256 // smallest server write (clients read) buffer for named pipe communicator 16 #define MIN_FTDI_LIB_VER 0x00030204 // the lowest FTDI version we accept for FTDI lib driver 17 #define MIN_RTV_LIB_VER 1080 // the lowest RTV version we accept for RTV dll lib driver 18 #define FTDI_MAX_BUFF_H (510*128) // max buffer that FTDI can r/w on high speed devices. 19 #define FTDI_MAX_BUFF_L (62*1024) // max buffer that FTDI can r/w on low speed devices. 20 #define FTDI_BAUD_2232H 200000 // clock rate is actually 1MHz = 200000*5 21 #define FTDI_BAUD_DEFAULT 62500 // clock rate is actually 1MHz = 62500*16 22 #define SERIAL_MAX_LENGTH 24 // maximum length serial comports can be (e.g. com4) 25 #define BAD_INPUT_PARAMS 1 26 #define NO_SYS_RESOURCE 2 // out of memory, etc. 27 #define ALREADY_OPEN 3 // tried to open device etc. that was already opened. or made request already pending 28 #define SIZE_MISSMATCH 4 // size of massage doesn't match expected size. 29 #define INVALID_CHANN 5 // channel requested is not set, out of range etc. 31 #define DRIVER_ERROR 7 32 #define DEVICE_CLOSING 8 // device is closing so no data can be read/sent 33 #define INVALID_DEVICE 9 // the device you tried to create (e.g. ADC) isn't recognized 34 #define INACTIVE_DEVICE 10 // tried to do something with inactive device 35 #define INVALID_COMMAND 11 // didn't understand what you wanted, or command is invalid in this state/stage 36 #define UNEXPECTED_READ 12 // when the packet read doesn't match anything 37 #define NO_CHAN 13 // channel wasn't created as requested because something went wrong. Or no channel was provided 38 #define BUFF_TOO_SMALL 14 // provided buffer was too small, or wanted to write more than the buffer can take 39 #define NOT_FOUND 15 // library or object wasn't found 40 #define TIMED_OUT 16 // timed out while waiting for something 41 #define INVALID_MAN 17 // the manager (e.g. rtv, ftdi) you wanted to communicate with is not recognized 43 #define LIBRARY_ERROR 19 47 #define FT_ERROR(x, nTemp) (((nTemp= x)!=0)?(nTemp + 100):0) // 101 + 1-19 = (101 to 200) 48 #define RTV_ERROR(x, nTemp) (((nTemp= -x)!=0)?(nTemp + 200):0) // 201 + 1-201 = (201 to 500) 49 #define MCDAQ_ERROR(x, nTemp) (((nTemp= x)!=0)?(nTemp + 500):0) // 101 + 1-19 = (501 to 1601) 50 #define WIN_ERROR(x, nTemp) (((nTemp= x)!=0)?(nTemp + 10000):0) // 10001 + ? = (10001 to ?) 56 #define tstring wstring 57 #define tostringstream wostringstream 58 #define tstringstream wstringstream 60 #define tstring string 61 #define tostringstream ostringstream 62 #define tstringstream stringstream 112 eFTDIPinWDataBufArray,
162 TCHAR szName[DEVICE_NAME_SIZE];
164 LARGE_INTEGER llLargeInteger;
174 double dRelativeTime;
216 unsigned char ucBitMode;
217 unsigned char ucBitOutput;
234 unsigned char ucData;
235 unsigned char ucLatch;
297 unsigned short usRepeat;
299 unsigned char ucValue;
304 unsigned char ucPinSelect;
498 TCHAR szPortName[SERIAL_MAX_LENGTH];
504 unsigned char ucStopBits;
505 unsigned char ucParity;
508 unsigned char ucByteSize;
531 char SerialNumber[16];
532 char Description[64];
533 unsigned __int64 ftHandle;
546 unsigned char ucDirection;
547 unsigned short usInitialVal;
555 unsigned short usValue;
560 unsigned short usBitSelect;
unsigned char ucLowestDataBit
unsigned char ucBrightness
unsigned char ucInitialVal
unsigned char ucActivePins
unsigned char ucRateFilter
unsigned char ucBitsPerData
unsigned char ucLumaContrast
unsigned char ucInputRange
unsigned short usBytesUsed