Classes | Defines | Typedefs | Enumerations | Functions
ftd2xx.h File Reference
#include <pthread.h>
#include "WinTypes.h"
Include dependency graph for ftd2xx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _EVENT_HANDLE
struct  _ft_device_list_info_node
struct  _FTCOMSTAT
struct  _FTDCB
struct  _FTTIMEOUTS
struct  ft_eeprom_2232
struct  ft_eeprom_2232h
struct  ft_eeprom_232b
struct  ft_eeprom_232h
struct  ft_eeprom_232r
struct  ft_eeprom_4232h
struct  ft_eeprom_header
struct  ft_eeprom_x_series
struct  ft_program_data

Defines

#define FT_232H_CBUS_CLK15   0x0B
#define FT_232H_CBUS_CLK30   0x0A
#define FT_232H_CBUS_CLK7_5   0x0C
#define FT_232H_CBUS_DRIVE_0   0x06
#define FT_232H_CBUS_DRIVE_1   0x07
#define FT_232H_CBUS_IOMODE   0x08
#define FT_232H_CBUS_PWREN   0x04
#define FT_232H_CBUS_RXLED   0x02
#define FT_232H_CBUS_SLEEP   0x05
#define FT_232H_CBUS_TRISTATE   0x00
#define FT_232H_CBUS_TXDEN   0x09
#define FT_232H_CBUS_TXLED   0x01
#define FT_232H_CBUS_TXRXLED   0x03
#define FT_232R_CBUS_BITBANG_RD   0x0C
#define FT_232R_CBUS_BITBANG_WR   0x0B
#define FT_232R_CBUS_CLK12   0x08
#define FT_232R_CBUS_CLK24   0x07
#define FT_232R_CBUS_CLK48   0x06
#define FT_232R_CBUS_CLK6   0x09
#define FT_232R_CBUS_IOMODE   0x0A
#define FT_232R_CBUS_PWRON   0x01
#define FT_232R_CBUS_RXLED   0x02
#define FT_232R_CBUS_SLEEP   0x05
#define FT_232R_CBUS_TXDEN   0x00
#define FT_232R_CBUS_TXLED   0x03
#define FT_232R_CBUS_TXRXLED   0x04
#define FT_BAUD_115200   115200
#define FT_BAUD_1200   1200
#define FT_BAUD_14400   14400
#define FT_BAUD_19200   19200
#define FT_BAUD_230400   230400
#define FT_BAUD_2400   2400
#define FT_BAUD_300   300
#define FT_BAUD_38400   38400
#define FT_BAUD_460800   460800
#define FT_BAUD_4800   4800
#define FT_BAUD_57600   57600
#define FT_BAUD_600   600
#define FT_BAUD_921600   921600
#define FT_BAUD_9600   9600
#define FT_BITMODE_ASYNC_BITBANG   0x01
#define FT_BITMODE_CBUS_BITBANG   0x20
#define FT_BITMODE_FAST_SERIAL   0x10
#define FT_BITMODE_MCU_HOST   0x08
#define FT_BITMODE_MPSSE   0x02
#define FT_BITMODE_RESET   0x00
#define FT_BITMODE_SYNC_BITBANG   0x04
#define FT_BITMODE_SYNC_FIFO   0x40
#define FT_BITS_7   (UCHAR) 7
#define FT_BITS_8   (UCHAR) 8
#define FT_DEFAULT_RX_TIMEOUT   300
#define FT_DEFAULT_TX_TIMEOUT   300
#define FT_DRIVER_TYPE_D2XX   0
#define FT_DRIVER_TYPE_VCP   1
#define FT_EVENT_LINE_STATUS   4
#define FT_EVENT_MODEM_STATUS   2
#define FT_EVENT_RXCHAR   1
#define FT_FLOW_DTR_DSR   0x0200
#define FT_FLOW_NONE   0x0000
#define FT_FLOW_RTS_CTS   0x0100
#define FT_FLOW_XON_XOFF   0x0400
#define FT_LIST_ALL   0x20000000
#define FT_LIST_BY_INDEX   0x40000000
#define FT_LIST_MASK   (FT_LIST_NUMBER_ONLY|FT_LIST_BY_INDEX|FT_LIST_ALL)
#define FT_LIST_NUMBER_ONLY   0x80000000
#define FT_OPEN_BY_DESCRIPTION   2
#define FT_OPEN_BY_LOCATION   4
#define FT_OPEN_BY_SERIAL_NUMBER   1
#define FT_OPEN_MASK
#define FT_PARITY_EVEN   (UCHAR) 2
#define FT_PARITY_MARK   (UCHAR) 3
#define FT_PARITY_NONE   (UCHAR) 0
#define FT_PARITY_ODD   (UCHAR) 1
#define FT_PARITY_SPACE   (UCHAR) 4
#define FT_PURGE_RX   1
#define FT_PURGE_TX   2
#define FT_STOP_BITS_1   (UCHAR) 0
#define FT_STOP_BITS_2   (UCHAR) 2
#define FT_SUCCESS(status)   ((status) == FT_OK)
#define FT_X_SERIES_CBUS_BCD_CHARGER   0x0D
#define FT_X_SERIES_CBUS_BCD_CHARGER_N   0x0E
#define FT_X_SERIES_CBUS_BITBANG_RD   0x13
#define FT_X_SERIES_CBUS_BITBANG_WR   0x12
#define FT_X_SERIES_CBUS_CLK12   0x0B
#define FT_X_SERIES_CBUS_CLK24   0x0A
#define FT_X_SERIES_CBUS_CLK6   0x0C
#define FT_X_SERIES_CBUS_DRIVE_0   0x06
#define FT_X_SERIES_CBUS_DRIVE_1   0x07
#define FT_X_SERIES_CBUS_I2C_RXF   0x10
#define FT_X_SERIES_CBUS_I2C_TXE   0x0F
#define FT_X_SERIES_CBUS_IOMODE   0x08
#define FT_X_SERIES_CBUS_KEEP_AWAKE   0x15
#define FT_X_SERIES_CBUS_PWREN   0x04
#define FT_X_SERIES_CBUS_RXLED   0x01
#define FT_X_SERIES_CBUS_SLEEP   0x05
#define FT_X_SERIES_CBUS_TIMESTAMP   0x14
#define FT_X_SERIES_CBUS_TRISTATE   0x00
#define FT_X_SERIES_CBUS_TXDEN   0x09
#define FT_X_SERIES_CBUS_TXLED   0x02
#define FT_X_SERIES_CBUS_TXRXLED   0x03
#define FT_X_SERIES_CBUS_VBUS_SENSE   0x11
#define FTD2XX_API   __declspec(dllimport)
#define FTD2XX_API

Typedefs

typedef struct _EVENT_HANDLE EVENT_HANDLE
typedef ULONG FT_DEVICE
typedef struct
_ft_device_list_info_node 
FT_DEVICE_LIST_INFO_NODE
typedef struct ft_eeprom_2232 FT_EEPROM_2232
typedef struct ft_eeprom_2232h FT_EEPROM_2232H
typedef struct ft_eeprom_232b FT_EEPROM_232B
typedef struct ft_eeprom_232h FT_EEPROM_232H
typedef struct ft_eeprom_232r FT_EEPROM_232R
typedef struct ft_eeprom_4232h FT_EEPROM_4232H
typedef struct ft_eeprom_header FT_EEPROM_HEADER
typedef struct ft_eeprom_x_series FT_EEPROM_X_SERIES
typedef PVOID FT_HANDLE
typedef struct ft_program_data FT_PROGRAM_DATA
typedef ULONG FT_STATUS
typedef struct _FTCOMSTAT FTCOMSTAT
typedef struct _FTDCB FTDCB
typedef struct _FTTIMEOUTS FTTIMEOUTS
typedef struct _FTCOMSTATLPFTCOMSTAT
typedef struct _FTDCBLPFTDCB
typedef struct _FTTIMEOUTSLPFTTIMEOUTS
typedef struct ft_eeprom_2232PFT_EEPROM_2232
typedef struct ft_eeprom_2232hPFT_EEPROM_2232H
typedef struct ft_eeprom_232bPFT_EEPROM_232B
typedef struct ft_eeprom_232hPFT_EEPROM_232H
typedef struct ft_eeprom_232rPFT_EEPROM_232R
typedef struct ft_eeprom_4232hPFT_EEPROM_4232H
typedef struct ft_eeprom_headerPFT_EEPROM_HEADER
typedef struct ft_eeprom_x_seriesPFT_EEPROM_X_SERIES
typedef void(* PFT_EVENT_HANDLER )(DWORD, DWORD)
typedef struct ft_program_dataPFT_PROGRAM_DATA

Enumerations

enum  {
  FT_OK, FT_INVALID_HANDLE, FT_DEVICE_NOT_FOUND, FT_DEVICE_NOT_OPENED,
  FT_IO_ERROR, FT_INSUFFICIENT_RESOURCES, FT_INVALID_PARAMETER, FT_INVALID_BAUD_RATE,
  FT_DEVICE_NOT_OPENED_FOR_ERASE, FT_DEVICE_NOT_OPENED_FOR_WRITE, FT_FAILED_TO_WRITE_DEVICE, FT_EEPROM_READ_FAILED,
  FT_EEPROM_WRITE_FAILED, FT_EEPROM_ERASE_FAILED, FT_EEPROM_NOT_PRESENT, FT_EEPROM_NOT_PROGRAMMED,
  FT_INVALID_ARGS, FT_NOT_SUPPORTED, FT_OTHER_ERROR, FT_DEVICE_LIST_NOT_READY
}
enum  {
  FT_DEVICE_BM, FT_DEVICE_AM, FT_DEVICE_100AX, FT_DEVICE_UNKNOWN,
  FT_DEVICE_2232C, FT_DEVICE_232R, FT_DEVICE_2232H, FT_DEVICE_4232H,
  FT_DEVICE_232H, FT_DEVICE_X_SERIES
}
enum  { FT_FLAGS_OPENED = 1, FT_FLAGS_HISPEED = 2 }

Functions

FTD2XX_API FT_STATUS WINAPI FT_Close (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_ClrDtr (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_ClrRts (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_CreateDeviceInfoList (LPDWORD lpdwNumDevs)
FTD2XX_API FT_STATUS WINAPI FT_CyclePort (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_EE_Program (FT_HANDLE ftHandle, PFT_PROGRAM_DATA pData)
FTD2XX_API FT_STATUS WINAPI FT_EE_ProgramEx (FT_HANDLE ftHandle, PFT_PROGRAM_DATA pData, char *Manufacturer, char *ManufacturerId, char *Description, char *SerialNumber)
FTD2XX_API FT_STATUS WINAPI FT_EE_Read (FT_HANDLE ftHandle, PFT_PROGRAM_DATA pData)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadConfig (FT_HANDLE ftHandle, UCHAR ucAddress, PUCHAR pucValue)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadECC (FT_HANDLE ftHandle, UCHAR ucOption, LPWORD lpwValue)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadEx (FT_HANDLE ftHandle, PFT_PROGRAM_DATA pData, char *Manufacturer, char *ManufacturerId, char *Description, char *SerialNumber)
FTD2XX_API FT_STATUS WINAPI FT_EE_UARead (FT_HANDLE ftHandle, PUCHAR pucData, DWORD dwDataLen, LPDWORD lpdwBytesRead)
FTD2XX_API FT_STATUS WINAPI FT_EE_UASize (FT_HANDLE ftHandle, LPDWORD lpdwSize)
FTD2XX_API FT_STATUS WINAPI FT_EE_UAWrite (FT_HANDLE ftHandle, PUCHAR pucData, DWORD dwDataLen)
FTD2XX_API FT_STATUS WINAPI FT_EE_WriteConfig (FT_HANDLE ftHandle, UCHAR ucAddress, UCHAR ucValue)
FTD2XX_API FT_STATUS WINAPI FT_EEPROM_Program (FT_HANDLE ftHandle, void *eepromData, DWORD eepromDataSize, char *Manufacturer, char *ManufacturerId, char *Description, char *SerialNumber)
FTD2XX_API FT_STATUS WINAPI FT_EEPROM_Read (FT_HANDLE ftHandle, void *eepromData, DWORD eepromDataSize, char *Manufacturer, char *ManufacturerId, char *Description, char *SerialNumber)
FTD2XX_API FT_STATUS WINAPI FT_EraseEE (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_GetBitMode (FT_HANDLE ftHandle, PUCHAR pucMode)
FTD2XX_API FT_STATUS WINAPI FT_GetComPortNumber (FT_HANDLE ftHandle, LPLONG lpdwComPortNumber)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceInfo (FT_HANDLE ftHandle, FT_DEVICE *lpftDevice, LPDWORD lpdwID, PCHAR SerialNumber, PCHAR Description, LPVOID Dummy)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceInfoDetail (DWORD dwIndex, LPDWORD lpdwFlags, LPDWORD lpdwType, LPDWORD lpdwID, LPDWORD lpdwLocId, LPVOID lpSerialNumber, LPVOID lpDescription, FT_HANDLE *pftHandle)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceInfoList (FT_DEVICE_LIST_INFO_NODE *pDest, LPDWORD lpdwNumDevs)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceLocId (FT_HANDLE ftHandle, LPDWORD lpdwLocId)
FTD2XX_API FT_STATUS WINAPI FT_GetDriverVersion (FT_HANDLE ftHandle, LPDWORD lpdwVersion)
FTD2XX_API FT_STATUS WINAPI FT_GetEventStatus (FT_HANDLE ftHandle, DWORD *dwEventDWord)
FTD2XX_API FT_STATUS WINAPI FT_GetLatencyTimer (FT_HANDLE ftHandle, PUCHAR pucLatency)
FTD2XX_API FT_STATUS WINAPI FT_GetLibraryVersion (LPDWORD lpdwVersion)
FTD2XX_API FT_STATUS WINAPI FT_GetModemStatus (FT_HANDLE ftHandle, ULONG *pModemStatus)
FTD2XX_API FT_STATUS WINAPI FT_GetQueueStatus (FT_HANDLE ftHandle, DWORD *dwRxBytes)
FTD2XX_API FT_STATUS WINAPI FT_GetQueueStatusEx (FT_HANDLE ftHandle, DWORD *dwRxBytes)
FTD2XX_API FT_STATUS WINAPI FT_GetStatus (FT_HANDLE ftHandle, DWORD *dwRxBytes, DWORD *dwTxBytes, DWORD *dwEventDWord)
FTD2XX_API FT_STATUS FT_GetVIDPID (DWORD *pdwVID, DWORD *pdwPID)
FTD2XX_API FT_STATUS WINAPI FT_IoCtl (FT_HANDLE ftHandle, DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
FTD2XX_API FT_STATUS WINAPI FT_ListDevices (PVOID pArg1, PVOID pArg2, DWORD Flags)
FTD2XX_API FT_STATUS WINAPI FT_Open (int deviceNumber, FT_HANDLE *pHandle)
FTD2XX_API FT_STATUS WINAPI FT_OpenEx (PVOID pArg1, DWORD Flags, FT_HANDLE *pHandle)
FTD2XX_API FT_STATUS WINAPI FT_Purge (FT_HANDLE ftHandle, ULONG Mask)
FTD2XX_API FT_STATUS WINAPI FT_Read (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToRead, LPDWORD lpBytesReturned)
FTD2XX_API FT_STATUS WINAPI FT_ReadEE (FT_HANDLE ftHandle, DWORD dwWordOffset, LPWORD lpwValue)
FTD2XX_API FT_STATUS WINAPI FT_Reload (WORD wVid, WORD wPid)
FTD2XX_API FT_STATUS WINAPI FT_Rescan (void)
FTD2XX_API FT_STATUS WINAPI FT_ResetDevice (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_ResetPort (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_RestartInTask (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_SetBaudRate (FT_HANDLE ftHandle, ULONG BaudRate)
FTD2XX_API FT_STATUS WINAPI FT_SetBitMode (FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucEnable)
FTD2XX_API FT_STATUS WINAPI FT_SetBreakOff (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_SetBreakOn (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_SetChars (FT_HANDLE ftHandle, UCHAR EventChar, UCHAR EventCharEnabled, UCHAR ErrorChar, UCHAR ErrorCharEnabled)
FTD2XX_API FT_STATUS WINAPI FT_SetDataCharacteristics (FT_HANDLE ftHandle, UCHAR WordLength, UCHAR StopBits, UCHAR Parity)
FTD2XX_API FT_STATUS WINAPI FT_SetDivisor (FT_HANDLE ftHandle, USHORT Divisor)
FTD2XX_API FT_STATUS WINAPI FT_SetDtr (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_SetEventNotification (FT_HANDLE ftHandle, DWORD Mask, PVOID Param)
FTD2XX_API FT_STATUS WINAPI FT_SetFlowControl (FT_HANDLE ftHandle, USHORT FlowControl, UCHAR XonChar, UCHAR XoffChar)
FTD2XX_API FT_STATUS WINAPI FT_SetLatencyTimer (FT_HANDLE ftHandle, UCHAR ucLatency)
FTD2XX_API FT_STATUS WINAPI FT_SetResetPipeRetryCount (FT_HANDLE ftHandle, DWORD dwCount)
FTD2XX_API FT_STATUS WINAPI FT_SetRts (FT_HANDLE ftHandle)
FTD2XX_API FT_STATUS WINAPI FT_SetTimeouts (FT_HANDLE ftHandle, ULONG ReadTimeout, ULONG WriteTimeout)
FTD2XX_API FT_STATUS WINAPI FT_SetUSBParameters (FT_HANDLE ftHandle, ULONG ulInTransferSize, ULONG ulOutTransferSize)
FTD2XX_API FT_STATUS FT_SetVIDPID (DWORD dwVID, DWORD dwPID)
FTD2XX_API FT_STATUS WINAPI FT_SetWaitMask (FT_HANDLE ftHandle, DWORD Mask)
FTD2XX_API FT_STATUS WINAPI FT_StopInTask (FT_HANDLE ftHandle)
FTD2XX_API BOOL WINAPI FT_W32_CancelIo (FT_HANDLE ftHandle)
FTD2XX_API BOOL WINAPI FT_W32_ClearCommBreak (FT_HANDLE ftHandle)
FTD2XX_API BOOL WINAPI FT_W32_ClearCommError (FT_HANDLE ftHandle, LPDWORD lpdwErrors, LPFTCOMSTAT lpftComstat)
FTD2XX_API BOOL WINAPI FT_W32_CloseHandle (FT_HANDLE ftHandle)
FTD2XX_API FT_HANDLE WINAPI FT_W32_CreateFile (LPCTSTR lpszName, DWORD dwAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreate, DWORD dwAttrsAndFlags, HANDLE hTemplate)
FTD2XX_API BOOL WINAPI FT_W32_EscapeCommFunction (FT_HANDLE ftHandle, DWORD dwFunc)
FTD2XX_API BOOL WINAPI FT_W32_GetCommMask (FT_HANDLE ftHandle, LPDWORD lpdwEventMask)
FTD2XX_API BOOL WINAPI FT_W32_GetCommModemStatus (FT_HANDLE ftHandle, LPDWORD lpdwModemStatus)
FTD2XX_API BOOL WINAPI FT_W32_GetCommState (FT_HANDLE ftHandle, LPFTDCB lpftDcb)
FTD2XX_API BOOL WINAPI FT_W32_GetCommTimeouts (FT_HANDLE ftHandle, FTTIMEOUTS *pTimeouts)
FTD2XX_API DWORD WINAPI FT_W32_GetLastError (FT_HANDLE ftHandle)
FTD2XX_API BOOL WINAPI FT_W32_GetOverlappedResult (FT_HANDLE ftHandle, LPOVERLAPPED lpOverlapped, LPDWORD lpdwBytesTransferred, BOOL bWait)
FTD2XX_API BOOL WINAPI FT_W32_PurgeComm (FT_HANDLE ftHandle, DWORD dwMask)
FTD2XX_API BOOL WINAPI FT_W32_ReadFile (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
FTD2XX_API BOOL WINAPI FT_W32_SetCommBreak (FT_HANDLE ftHandle)
FTD2XX_API BOOL WINAPI FT_W32_SetCommMask (FT_HANDLE ftHandle, ULONG ulEventMask)
FTD2XX_API BOOL WINAPI FT_W32_SetCommState (FT_HANDLE ftHandle, LPFTDCB lpftDcb)
FTD2XX_API BOOL WINAPI FT_W32_SetCommTimeouts (FT_HANDLE ftHandle, FTTIMEOUTS *pTimeouts)
FTD2XX_API BOOL WINAPI FT_W32_SetupComm (FT_HANDLE ftHandle, DWORD dwReadBufferSize, DWORD dwWriteBufferSize)
FTD2XX_API BOOL WINAPI FT_W32_WaitCommEvent (FT_HANDLE ftHandle, PULONG pulEvent, LPOVERLAPPED lpOverlapped)
FTD2XX_API BOOL WINAPI FT_W32_WriteFile (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesWritten, LPOVERLAPPED lpOverlapped)
FTD2XX_API FT_STATUS WINAPI FT_WaitOnMask (FT_HANDLE ftHandle, DWORD *Mask)
FTD2XX_API FT_STATUS WINAPI FT_Write (FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToWrite, LPDWORD lpBytesWritten)
FTD2XX_API FT_STATUS WINAPI FT_WriteEE (FT_HANDLE ftHandle, DWORD dwWordOffset, WORD wValue)

Define Documentation

#define FT_232H_CBUS_CLK15   0x0B

Definition at line 268 of file ftd2xx.h.

#define FT_232H_CBUS_CLK30   0x0A

Definition at line 267 of file ftd2xx.h.

#define FT_232H_CBUS_CLK7_5   0x0C

Definition at line 269 of file ftd2xx.h.

#define FT_232H_CBUS_DRIVE_0   0x06

Definition at line 263 of file ftd2xx.h.

#define FT_232H_CBUS_DRIVE_1   0x07

Definition at line 264 of file ftd2xx.h.

#define FT_232H_CBUS_IOMODE   0x08

Definition at line 265 of file ftd2xx.h.

#define FT_232H_CBUS_PWREN   0x04

Definition at line 261 of file ftd2xx.h.

#define FT_232H_CBUS_RXLED   0x02

Definition at line 259 of file ftd2xx.h.

#define FT_232H_CBUS_SLEEP   0x05

Definition at line 262 of file ftd2xx.h.

#define FT_232H_CBUS_TRISTATE   0x00

Definition at line 257 of file ftd2xx.h.

#define FT_232H_CBUS_TXDEN   0x09

Definition at line 266 of file ftd2xx.h.

#define FT_232H_CBUS_TXLED   0x01

Definition at line 258 of file ftd2xx.h.

#define FT_232H_CBUS_TXRXLED   0x03

Definition at line 260 of file ftd2xx.h.

#define FT_232R_CBUS_BITBANG_RD   0x0C

Definition at line 251 of file ftd2xx.h.

#define FT_232R_CBUS_BITBANG_WR   0x0B

Definition at line 250 of file ftd2xx.h.

#define FT_232R_CBUS_CLK12   0x08

Definition at line 247 of file ftd2xx.h.

#define FT_232R_CBUS_CLK24   0x07

Definition at line 246 of file ftd2xx.h.

#define FT_232R_CBUS_CLK48   0x06

Definition at line 245 of file ftd2xx.h.

#define FT_232R_CBUS_CLK6   0x09

Definition at line 248 of file ftd2xx.h.

#define FT_232R_CBUS_IOMODE   0x0A

Definition at line 249 of file ftd2xx.h.

#define FT_232R_CBUS_PWRON   0x01

Definition at line 240 of file ftd2xx.h.

#define FT_232R_CBUS_RXLED   0x02

Definition at line 241 of file ftd2xx.h.

#define FT_232R_CBUS_SLEEP   0x05

Definition at line 244 of file ftd2xx.h.

#define FT_232R_CBUS_TXDEN   0x00

Definition at line 239 of file ftd2xx.h.

#define FT_232R_CBUS_TXLED   0x03

Definition at line 242 of file ftd2xx.h.

#define FT_232R_CBUS_TXRXLED   0x04

Definition at line 243 of file ftd2xx.h.

#define FT_BAUD_115200   115200

Definition at line 142 of file ftd2xx.h.

#define FT_BAUD_1200   1200

Definition at line 134 of file ftd2xx.h.

#define FT_BAUD_14400   14400

Definition at line 138 of file ftd2xx.h.

#define FT_BAUD_19200   19200

Definition at line 139 of file ftd2xx.h.

#define FT_BAUD_230400   230400

Definition at line 143 of file ftd2xx.h.

#define FT_BAUD_2400   2400

Definition at line 135 of file ftd2xx.h.

#define FT_BAUD_300   300

Definition at line 132 of file ftd2xx.h.

#define FT_BAUD_38400   38400

Definition at line 140 of file ftd2xx.h.

#define FT_BAUD_460800   460800

Definition at line 144 of file ftd2xx.h.

#define FT_BAUD_4800   4800

Definition at line 136 of file ftd2xx.h.

#define FT_BAUD_57600   57600

Definition at line 141 of file ftd2xx.h.

#define FT_BAUD_600   600

Definition at line 133 of file ftd2xx.h.

#define FT_BAUD_921600   921600

Definition at line 145 of file ftd2xx.h.

#define FT_BAUD_9600   9600

Definition at line 137 of file ftd2xx.h.

#define FT_BITMODE_ASYNC_BITBANG   0x01

Definition at line 227 of file ftd2xx.h.

#define FT_BITMODE_CBUS_BITBANG   0x20

Definition at line 232 of file ftd2xx.h.

#define FT_BITMODE_FAST_SERIAL   0x10

Definition at line 231 of file ftd2xx.h.

#define FT_BITMODE_MCU_HOST   0x08

Definition at line 230 of file ftd2xx.h.

#define FT_BITMODE_MPSSE   0x02

Definition at line 228 of file ftd2xx.h.

#define FT_BITMODE_RESET   0x00

Definition at line 226 of file ftd2xx.h.

#define FT_BITMODE_SYNC_BITBANG   0x04

Definition at line 229 of file ftd2xx.h.

#define FT_BITMODE_SYNC_FIFO   0x40

Definition at line 233 of file ftd2xx.h.

#define FT_BITS_7   (UCHAR) 7

Definition at line 152 of file ftd2xx.h.

#define FT_BITS_8   (UCHAR) 8

Definition at line 151 of file ftd2xx.h.

#define FT_DEFAULT_RX_TIMEOUT   300

Definition at line 200 of file ftd2xx.h.

#define FT_DEFAULT_TX_TIMEOUT   300

Definition at line 201 of file ftd2xx.h.

#define FT_DRIVER_TYPE_D2XX   0

Definition at line 300 of file ftd2xx.h.

#define FT_DRIVER_TYPE_VCP   1

Definition at line 301 of file ftd2xx.h.

#define FT_EVENT_LINE_STATUS   4

Definition at line 194 of file ftd2xx.h.

#define FT_EVENT_MODEM_STATUS   2

Definition at line 193 of file ftd2xx.h.

#define FT_EVENT_RXCHAR   1

Definition at line 192 of file ftd2xx.h.

#define FT_FLOW_DTR_DSR   0x0200

Definition at line 177 of file ftd2xx.h.

#define FT_FLOW_NONE   0x0000

Definition at line 175 of file ftd2xx.h.

#define FT_FLOW_RTS_CTS   0x0100

Definition at line 176 of file ftd2xx.h.

#define FT_FLOW_XON_XOFF   0x0400

Definition at line 178 of file ftd2xx.h.

#define FT_LIST_ALL   0x20000000

Definition at line 124 of file ftd2xx.h.

#define FT_LIST_BY_INDEX   0x40000000

Definition at line 123 of file ftd2xx.h.

Definition at line 126 of file ftd2xx.h.

#define FT_LIST_NUMBER_ONLY   0x80000000

Definition at line 122 of file ftd2xx.h.

#define FT_OPEN_BY_DESCRIPTION   2

Definition at line 111 of file ftd2xx.h.

#define FT_OPEN_BY_LOCATION   4

Definition at line 112 of file ftd2xx.h.

#define FT_OPEN_BY_SERIAL_NUMBER   1

Definition at line 110 of file ftd2xx.h.

#define FT_OPEN_MASK
Value:
(FT_OPEN_BY_SERIAL_NUMBER | \
                      FT_OPEN_BY_DESCRIPTION | \
                      FT_OPEN_BY_LOCATION)

Definition at line 114 of file ftd2xx.h.

#define FT_PARITY_EVEN   (UCHAR) 2

Definition at line 167 of file ftd2xx.h.

#define FT_PARITY_MARK   (UCHAR) 3

Definition at line 168 of file ftd2xx.h.

#define FT_PARITY_NONE   (UCHAR) 0

Definition at line 165 of file ftd2xx.h.

#define FT_PARITY_ODD   (UCHAR) 1

Definition at line 166 of file ftd2xx.h.

#define FT_PARITY_SPACE   (UCHAR) 4

Definition at line 169 of file ftd2xx.h.

#define FT_PURGE_RX   1

Definition at line 183 of file ftd2xx.h.

#define FT_PURGE_TX   2

Definition at line 184 of file ftd2xx.h.

#define FT_STOP_BITS_1   (UCHAR) 0

Definition at line 158 of file ftd2xx.h.

#define FT_STOP_BITS_2   (UCHAR) 2

Definition at line 159 of file ftd2xx.h.

#define FT_SUCCESS (   status)    ((status) == FT_OK)

Definition at line 104 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_BCD_CHARGER   0x0D

Definition at line 288 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_BCD_CHARGER_N   0x0E

Definition at line 289 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_BITBANG_RD   0x13

Definition at line 294 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_BITBANG_WR   0x12

Definition at line 293 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_CLK12   0x0B

Definition at line 286 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_CLK24   0x0A

Definition at line 285 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_CLK6   0x0C

Definition at line 287 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_DRIVE_0   0x06

Definition at line 281 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_DRIVE_1   0x07

Definition at line 282 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_I2C_RXF   0x10

Definition at line 291 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_I2C_TXE   0x0F

Definition at line 290 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_IOMODE   0x08

Definition at line 283 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_KEEP_AWAKE   0x15

Definition at line 296 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_PWREN   0x04

Definition at line 279 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_RXLED   0x01

Definition at line 276 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_SLEEP   0x05

Definition at line 280 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_TIMESTAMP   0x14

Definition at line 295 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_TRISTATE   0x00

Definition at line 275 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_TXDEN   0x09

Definition at line 284 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_TXLED   0x02

Definition at line 277 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_TXRXLED   0x03

Definition at line 278 of file ftd2xx.h.

#define FT_X_SERIES_CBUS_VBUS_SENSE   0x11

Definition at line 292 of file ftd2xx.h.

#define FTD2XX_API   __declspec(dllimport)

Definition at line 69 of file ftd2xx.h.

#define FTD2XX_API

Definition at line 69 of file ftd2xx.h.


Typedef Documentation

typedef struct _EVENT_HANDLE EVENT_HANDLE

Substitute for HANDLE returned by Windows CreateEvent API

typedef ULONG FT_DEVICE

Definition at line 207 of file ftd2xx.h.

typedef PVOID FT_HANDLE

Definition at line 73 of file ftd2xx.h.

typedef ULONG FT_STATUS

Definition at line 74 of file ftd2xx.h.

typedef struct _FTCOMSTAT FTCOMSTAT
typedef struct _FTDCB FTDCB
typedef struct _FTTIMEOUTS FTTIMEOUTS
typedef struct _FTCOMSTAT * LPFTCOMSTAT
typedef struct _FTDCB * LPFTDCB
typedef struct _FTTIMEOUTS* LPFTTIMEOUTS
typedef struct ft_eeprom_2232 * PFT_EEPROM_2232
typedef struct ft_eeprom_232b * PFT_EEPROM_232B
typedef struct ft_eeprom_232h * PFT_EEPROM_232H
typedef struct ft_eeprom_232r * PFT_EEPROM_232R
typedef void(* PFT_EVENT_HANDLER)(DWORD, DWORD)

Definition at line 190 of file ftd2xx.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
FT_OK 
FT_INVALID_HANDLE 
FT_DEVICE_NOT_FOUND 
FT_DEVICE_NOT_OPENED 
FT_IO_ERROR 
FT_INSUFFICIENT_RESOURCES 
FT_INVALID_PARAMETER 
FT_INVALID_BAUD_RATE 
FT_DEVICE_NOT_OPENED_FOR_ERASE 
FT_DEVICE_NOT_OPENED_FOR_WRITE 
FT_FAILED_TO_WRITE_DEVICE 
FT_EEPROM_READ_FAILED 
FT_EEPROM_WRITE_FAILED 
FT_EEPROM_ERASE_FAILED 
FT_EEPROM_NOT_PRESENT 
FT_EEPROM_NOT_PROGRAMMED 
FT_INVALID_ARGS 
FT_NOT_SUPPORTED 
FT_OTHER_ERROR 
FT_DEVICE_LIST_NOT_READY 

Definition at line 79 of file ftd2xx.h.

anonymous enum
Enumerator:
FT_DEVICE_BM 
FT_DEVICE_AM 
FT_DEVICE_100AX 
FT_DEVICE_UNKNOWN 
FT_DEVICE_2232C 
FT_DEVICE_232R 
FT_DEVICE_2232H 
FT_DEVICE_4232H 
FT_DEVICE_232H 
FT_DEVICE_X_SERIES 

Definition at line 209 of file ftd2xx.h.

anonymous enum
Enumerator:
FT_FLAGS_OPENED 
FT_FLAGS_HISPEED 

Definition at line 1282 of file ftd2xx.h.


Function Documentation

FTD2XX_API FT_STATUS WINAPI FT_EE_ProgramEx ( FT_HANDLE  ftHandle,
PFT_PROGRAM_DATA  pData,
char *  Manufacturer,
char *  ManufacturerId,
char *  Description,
char *  SerialNumber 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadConfig ( FT_HANDLE  ftHandle,
UCHAR  ucAddress,
PUCHAR  pucValue 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadECC ( FT_HANDLE  ftHandle,
UCHAR  ucOption,
LPWORD  lpwValue 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_ReadEx ( FT_HANDLE  ftHandle,
PFT_PROGRAM_DATA  pData,
char *  Manufacturer,
char *  ManufacturerId,
char *  Description,
char *  SerialNumber 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_UARead ( FT_HANDLE  ftHandle,
PUCHAR  pucData,
DWORD  dwDataLen,
LPDWORD  lpdwBytesRead 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_UASize ( FT_HANDLE  ftHandle,
LPDWORD  lpdwSize 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_UAWrite ( FT_HANDLE  ftHandle,
PUCHAR  pucData,
DWORD  dwDataLen 
)
FTD2XX_API FT_STATUS WINAPI FT_EE_WriteConfig ( FT_HANDLE  ftHandle,
UCHAR  ucAddress,
UCHAR  ucValue 
)
FTD2XX_API FT_STATUS WINAPI FT_EEPROM_Program ( FT_HANDLE  ftHandle,
void *  eepromData,
DWORD  eepromDataSize,
char *  Manufacturer,
char *  ManufacturerId,
char *  Description,
char *  SerialNumber 
)
FTD2XX_API FT_STATUS WINAPI FT_EEPROM_Read ( FT_HANDLE  ftHandle,
void *  eepromData,
DWORD  eepromDataSize,
char *  Manufacturer,
char *  ManufacturerId,
char *  Description,
char *  SerialNumber 
)
FTD2XX_API FT_STATUS WINAPI FT_GetComPortNumber ( FT_HANDLE  ftHandle,
LPLONG  lpdwComPortNumber 
)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceInfo ( FT_HANDLE  ftHandle,
FT_DEVICE lpftDevice,
LPDWORD  lpdwID,
PCHAR  SerialNumber,
PCHAR  Description,
LPVOID  Dummy 
)
FTD2XX_API FT_STATUS WINAPI FT_GetDeviceInfoDetail ( DWORD  dwIndex,
LPDWORD  lpdwFlags,
LPDWORD  lpdwType,
LPDWORD  lpdwID,
LPDWORD  lpdwLocId,
LPVOID  lpSerialNumber,
LPVOID  lpDescription,
FT_HANDLE pftHandle 
)
FTD2XX_API FT_STATUS WINAPI FT_GetEventStatus ( FT_HANDLE  ftHandle,
DWORD dwEventDWord 
)
FTD2XX_API FT_STATUS WINAPI FT_GetModemStatus ( FT_HANDLE  ftHandle,
ULONG pModemStatus 
)
FTD2XX_API FT_STATUS WINAPI FT_GetQueueStatus ( FT_HANDLE  ftHandle,
DWORD dwRxBytes 
)
FTD2XX_API FT_STATUS WINAPI FT_GetQueueStatusEx ( FT_HANDLE  ftHandle,
DWORD dwRxBytes 
)
FTD2XX_API FT_STATUS WINAPI FT_GetStatus ( FT_HANDLE  ftHandle,
DWORD dwRxBytes,
DWORD dwTxBytes,
DWORD dwEventDWord 
)
FTD2XX_API FT_STATUS FT_GetVIDPID ( DWORD pdwVID,
DWORD pdwPID 
)
FTD2XX_API FT_STATUS WINAPI FT_IoCtl ( FT_HANDLE  ftHandle,
DWORD  dwIoControlCode,
LPVOID  lpInBuf,
DWORD  nInBufSize,
LPVOID  lpOutBuf,
DWORD  nOutBufSize,
LPDWORD  lpBytesReturned,
LPOVERLAPPED  lpOverlapped 
)
FTD2XX_API FT_STATUS WINAPI FT_ListDevices ( PVOID  pArg1,
PVOID  pArg2,
DWORD  Flags 
)
FTD2XX_API FT_STATUS WINAPI FT_Open ( int  deviceNumber,
FT_HANDLE pHandle 
)
FTD2XX_API FT_STATUS WINAPI FT_OpenEx ( PVOID  pArg1,
DWORD  Flags,
FT_HANDLE pHandle 
)
FTD2XX_API FT_STATUS WINAPI FT_Purge ( FT_HANDLE  ftHandle,
ULONG  Mask 
)
FTD2XX_API FT_STATUS WINAPI FT_Read ( FT_HANDLE  ftHandle,
LPVOID  lpBuffer,
DWORD  dwBytesToRead,
LPDWORD  lpBytesReturned 
)
FTD2XX_API FT_STATUS WINAPI FT_ReadEE ( FT_HANDLE  ftHandle,
DWORD  dwWordOffset,
LPWORD  lpwValue 
)
FTD2XX_API FT_STATUS WINAPI FT_Reload ( WORD  wVid,
WORD  wPid 
)
FTD2XX_API FT_STATUS WINAPI FT_SetBaudRate ( FT_HANDLE  ftHandle,
ULONG  BaudRate 
)
FTD2XX_API FT_STATUS WINAPI FT_SetBitMode ( FT_HANDLE  ftHandle,
UCHAR  ucMask,
UCHAR  ucEnable 
)
FTD2XX_API FT_STATUS WINAPI FT_SetChars ( FT_HANDLE  ftHandle,
UCHAR  EventChar,
UCHAR  EventCharEnabled,
UCHAR  ErrorChar,
UCHAR  ErrorCharEnabled 
)
FTD2XX_API FT_STATUS WINAPI FT_SetDataCharacteristics ( FT_HANDLE  ftHandle,
UCHAR  WordLength,
UCHAR  StopBits,
UCHAR  Parity 
)
FTD2XX_API FT_STATUS WINAPI FT_SetFlowControl ( FT_HANDLE  ftHandle,
USHORT  FlowControl,
UCHAR  XonChar,
UCHAR  XoffChar 
)
FTD2XX_API FT_STATUS WINAPI FT_SetTimeouts ( FT_HANDLE  ftHandle,
ULONG  ReadTimeout,
ULONG  WriteTimeout 
)
FTD2XX_API FT_STATUS WINAPI FT_SetUSBParameters ( FT_HANDLE  ftHandle,
ULONG  ulInTransferSize,
ULONG  ulOutTransferSize 
)
FTD2XX_API FT_STATUS FT_SetVIDPID ( DWORD  dwVID,
DWORD  dwPID 
)
FTD2XX_API BOOL WINAPI FT_W32_ClearCommError ( FT_HANDLE  ftHandle,
LPDWORD  lpdwErrors,
LPFTCOMSTAT  lpftComstat 
)
FTD2XX_API FT_HANDLE WINAPI FT_W32_CreateFile ( LPCTSTR  lpszName,
DWORD  dwAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreate,
DWORD  dwAttrsAndFlags,
HANDLE  hTemplate 
)
FTD2XX_API BOOL WINAPI FT_W32_GetCommMask ( FT_HANDLE  ftHandle,
LPDWORD  lpdwEventMask 
)
FTD2XX_API BOOL WINAPI FT_W32_GetCommModemStatus ( FT_HANDLE  ftHandle,
LPDWORD  lpdwModemStatus 
)
FTD2XX_API BOOL WINAPI FT_W32_GetOverlappedResult ( FT_HANDLE  ftHandle,
LPOVERLAPPED  lpOverlapped,
LPDWORD  lpdwBytesTransferred,
BOOL  bWait 
)
FTD2XX_API BOOL WINAPI FT_W32_PurgeComm ( FT_HANDLE  ftHandle,
DWORD  dwMask 
)
FTD2XX_API BOOL WINAPI FT_W32_ReadFile ( FT_HANDLE  ftHandle,
LPVOID  lpBuffer,
DWORD  nBufferSize,
LPDWORD  lpBytesReturned,
LPOVERLAPPED  lpOverlapped 
)
FTD2XX_API BOOL WINAPI FT_W32_SetCommMask ( FT_HANDLE  ftHandle,
ULONG  ulEventMask 
)
FTD2XX_API BOOL WINAPI FT_W32_SetupComm ( FT_HANDLE  ftHandle,
DWORD  dwReadBufferSize,
DWORD  dwWriteBufferSize 
)
FTD2XX_API BOOL WINAPI FT_W32_WaitCommEvent ( FT_HANDLE  ftHandle,
PULONG  pulEvent,
LPOVERLAPPED  lpOverlapped 
)
FTD2XX_API BOOL WINAPI FT_W32_WriteFile ( FT_HANDLE  ftHandle,
LPVOID  lpBuffer,
DWORD  nBufferSize,
LPDWORD  lpBytesWritten,
LPOVERLAPPED  lpOverlapped 
)
FTD2XX_API FT_STATUS WINAPI FT_Write ( FT_HANDLE  ftHandle,
LPVOID  lpBuffer,
DWORD  dwBytesToWrite,
LPDWORD  lpBytesWritten 
)
FTD2XX_API FT_STATUS WINAPI FT_WriteEE ( FT_HANDLE  ftHandle,
DWORD  dwWordOffset,
WORD  wValue 
)


libsegwayrmp
Author(s): William Woodall
autogenerated on Wed Aug 26 2015 12:23:18