-
Notifications
You must be signed in to change notification settings - Fork 0
/
ftd2xx_mini.h
18 lines (16 loc) · 1.1 KB
/
ftd2xx_mini.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
typedef PVOID FT_HANDLE;
typedef ULONG FT_STATUS;
typedef FT_STATUS(__stdcall* TYPE_FT_Open)(int iDevice, FT_HANDLE *ftHandle);
typedef FT_STATUS(__stdcall* TYPE_FT_Read)(FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesReturned);
typedef FT_STATUS(__stdcall* TYPE_FT_Write)(FT_HANDLE ftHandle, LPVOID lpBuffer, DWORD dwBytesToWrite, LPDWORD lpdwBytesWritten);
typedef FT_STATUS(__stdcall* TYPE_FT_SetTimeouts)(FT_HANDLE ftHandle, ULONG ReadTimeout, ULONG WriteTimeout);
typedef FT_STATUS(__stdcall* TYPE_FT_GetQueueStatus)(FT_HANDLE ftHandle, DWORD *dwRxBytes);
typedef FT_STATUS(__stdcall* TYPE_FT_GetStatus)(FT_HANDLE ftHandle, DWORD *dwRxBytes, DWORD *dwTxBytes, DWORD *dwEventDWord);
typedef FT_STATUS(__stdcall* TYPE_FT_SetBaudRate)(FT_HANDLE ftHandle, ULONG BaudRate);
typedef FT_STATUS(__stdcall* TYPE_FT_ClrDtr)(FT_HANDLE ftHandle);
typedef FT_STATUS(__stdcall* TYPE_FT_SetDataCharacteristics)(FT_HANDLE ftHandle, UCHAR WordLength, UCHAR StopBits, UCHAR Parity);
typedef FT_STATUS(__stdcall* TYPE_FT_SetLatencyTimer)(FT_HANDLE ftHandle, UCHAR ucLatency);
enum {
FT_OK,
FT_INVALID_HANDLE
};