mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Updating FTDI drivers on Windows (to version 2.08.14 from 2011-04-12).
This commit is contained in:
parent
0efc1311ab
commit
a98816a611
@ -1,7 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
BASEURL=http://www.ftdichip.com/Documents/AppNotes.htm
|
|
||||||
[InternetShortcut]
|
|
||||||
URL=http://www.ftdichip.com/Documents/AppNotes.htm
|
|
||||||
Modified=C055946F4AF7C5011F
|
|
||||||
IconFile=C:\WINNT\system32\url.dll
|
|
||||||
IconIndex=0
|
|
Binary file not shown.
875
build/windows/dist/drivers/FTDI USB Drivers/FTD2XX.H
vendored
875
build/windows/dist/drivers/FTDI USB Drivers/FTD2XX.H
vendored
@ -1,875 +0,0 @@
|
|||||||
/*++
|
|
||||||
|
|
||||||
Copyright (c) 2001-2005 Future Technology Devices International Ltd.
|
|
||||||
|
|
||||||
Module Name:
|
|
||||||
|
|
||||||
ftd2xx.h
|
|
||||||
|
|
||||||
Abstract:
|
|
||||||
|
|
||||||
Native USB device driver for FTDI FT8U232/245
|
|
||||||
FTD2XX library definitions
|
|
||||||
|
|
||||||
Environment:
|
|
||||||
|
|
||||||
kernel & user mode
|
|
||||||
|
|
||||||
Revision History:
|
|
||||||
|
|
||||||
13/03/01 awm Created.
|
|
||||||
13/01/03 awm Added device information support.
|
|
||||||
19/03/03 awm Added FT_W32_CancelIo.
|
|
||||||
12/06/03 awm Added FT_StopInTask and FT_RestartInTask.
|
|
||||||
18/09/03 awm Added FT_SetResetPipeRetryCount.
|
|
||||||
10/10/03 awm Added FT_ResetPort.
|
|
||||||
23/01/04 awm Added support for open-by-location.
|
|
||||||
16/03/04 awm Added support for FT2232C.
|
|
||||||
23/09/04 awm Added support for FT232R.
|
|
||||||
20/10/04 awm Added FT_CyclePort.
|
|
||||||
18/01/05 awm Added FT_DEVICE_LIST_INFO_NODE type.
|
|
||||||
11/02/05 awm Added LocId to FT_DEVICE_LIST_INFO_NODE.
|
|
||||||
25/08/05 awm Added FT_SetDeadmanTimeout.
|
|
||||||
02/12/05 awm Removed obsolete references.
|
|
||||||
05/12/05 awm Added FT_GetVersion, FT_GetVersionEx.
|
|
||||||
|
|
||||||
|
|
||||||
--*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef FTD2XX_H
|
|
||||||
#define FTD2XX_H
|
|
||||||
|
|
||||||
// The following ifdef block is the standard way of creating macros
|
|
||||||
// which make exporting from a DLL simpler. All files within this DLL
|
|
||||||
// are compiled with the FTD2XX_EXPORTS symbol defined on the command line.
|
|
||||||
// This symbol should not be defined on any project that uses this DLL.
|
|
||||||
// This way any other project whose source files include this file see
|
|
||||||
// FTD2XX_API functions as being imported from a DLL, whereas this DLL
|
|
||||||
// sees symbols defined with this macro as being exported.
|
|
||||||
|
|
||||||
#ifdef FTD2XX_EXPORTS
|
|
||||||
#define FTD2XX_API __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define FTD2XX_API __declspec(dllimport)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
typedef PVOID FT_HANDLE;
|
|
||||||
typedef ULONG FT_STATUS;
|
|
||||||
|
|
||||||
//
|
|
||||||
// Device status
|
|
||||||
//
|
|
||||||
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
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#define FT_SUCCESS(status) ((status) == FT_OK)
|
|
||||||
|
|
||||||
//
|
|
||||||
// FT_OpenEx Flags
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_OPEN_BY_SERIAL_NUMBER 1
|
|
||||||
#define FT_OPEN_BY_DESCRIPTION 2
|
|
||||||
#define FT_OPEN_BY_LOCATION 4
|
|
||||||
|
|
||||||
//
|
|
||||||
// FT_ListDevices Flags (used in conjunction with FT_OpenEx Flags
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_LIST_NUMBER_ONLY 0x80000000
|
|
||||||
#define FT_LIST_BY_INDEX 0x40000000
|
|
||||||
#define FT_LIST_ALL 0x20000000
|
|
||||||
|
|
||||||
#define FT_LIST_MASK (FT_LIST_NUMBER_ONLY|FT_LIST_BY_INDEX|FT_LIST_ALL)
|
|
||||||
|
|
||||||
//
|
|
||||||
// Baud Rates
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_BAUD_300 300
|
|
||||||
#define FT_BAUD_600 600
|
|
||||||
#define FT_BAUD_1200 1200
|
|
||||||
#define FT_BAUD_2400 2400
|
|
||||||
#define FT_BAUD_4800 4800
|
|
||||||
#define FT_BAUD_9600 9600
|
|
||||||
#define FT_BAUD_14400 14400
|
|
||||||
#define FT_BAUD_19200 19200
|
|
||||||
#define FT_BAUD_38400 38400
|
|
||||||
#define FT_BAUD_57600 57600
|
|
||||||
#define FT_BAUD_115200 115200
|
|
||||||
#define FT_BAUD_230400 230400
|
|
||||||
#define FT_BAUD_460800 460800
|
|
||||||
#define FT_BAUD_921600 921600
|
|
||||||
|
|
||||||
//
|
|
||||||
// Word Lengths
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_BITS_8 (UCHAR) 8
|
|
||||||
#define FT_BITS_7 (UCHAR) 7
|
|
||||||
#define FT_BITS_6 (UCHAR) 6
|
|
||||||
#define FT_BITS_5 (UCHAR) 5
|
|
||||||
|
|
||||||
//
|
|
||||||
// Stop Bits
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_STOP_BITS_1 (UCHAR) 0
|
|
||||||
#define FT_STOP_BITS_1_5 (UCHAR) 1
|
|
||||||
#define FT_STOP_BITS_2 (UCHAR) 2
|
|
||||||
|
|
||||||
//
|
|
||||||
// Parity
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_PARITY_NONE (UCHAR) 0
|
|
||||||
#define FT_PARITY_ODD (UCHAR) 1
|
|
||||||
#define FT_PARITY_EVEN (UCHAR) 2
|
|
||||||
#define FT_PARITY_MARK (UCHAR) 3
|
|
||||||
#define FT_PARITY_SPACE (UCHAR) 4
|
|
||||||
|
|
||||||
//
|
|
||||||
// Flow Control
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_FLOW_NONE 0x0000
|
|
||||||
#define FT_FLOW_RTS_CTS 0x0100
|
|
||||||
#define FT_FLOW_DTR_DSR 0x0200
|
|
||||||
#define FT_FLOW_XON_XOFF 0x0400
|
|
||||||
|
|
||||||
//
|
|
||||||
// Purge rx and tx buffers
|
|
||||||
//
|
|
||||||
#define FT_PURGE_RX 1
|
|
||||||
#define FT_PURGE_TX 2
|
|
||||||
|
|
||||||
//
|
|
||||||
// Events
|
|
||||||
//
|
|
||||||
|
|
||||||
typedef void (*PFT_EVENT_HANDLER)(DWORD,DWORD);
|
|
||||||
|
|
||||||
#define FT_EVENT_RXCHAR 1
|
|
||||||
#define FT_EVENT_MODEM_STATUS 2
|
|
||||||
|
|
||||||
//
|
|
||||||
// Timeouts
|
|
||||||
//
|
|
||||||
|
|
||||||
#define FT_DEFAULT_RX_TIMEOUT 300
|
|
||||||
#define FT_DEFAULT_TX_TIMEOUT 300
|
|
||||||
|
|
||||||
//
|
|
||||||
// Device types
|
|
||||||
//
|
|
||||||
|
|
||||||
typedef ULONG FT_DEVICE;
|
|
||||||
|
|
||||||
enum {
|
|
||||||
FT_DEVICE_BM,
|
|
||||||
FT_DEVICE_AM,
|
|
||||||
FT_DEVICE_100AX,
|
|
||||||
FT_DEVICE_UNKNOWN,
|
|
||||||
FT_DEVICE_2232C,
|
|
||||||
FT_DEVICE_232R
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
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_ListDevices(
|
|
||||||
PVOID pArg1,
|
|
||||||
PVOID pArg2,
|
|
||||||
DWORD Flags
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_Close(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_Read(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
LPVOID lpBuffer,
|
|
||||||
DWORD nBufferSize,
|
|
||||||
LPDWORD lpBytesReturned
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_Write(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
LPVOID lpBuffer,
|
|
||||||
DWORD nBufferSize,
|
|
||||||
LPDWORD lpBytesWritten
|
|
||||||
);
|
|
||||||
|
|
||||||
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_SetBaudRate(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG BaudRate
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetDivisor(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
USHORT Divisor
|
|
||||||
);
|
|
||||||
|
|
||||||
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_ResetDevice(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetDtr(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_ClrDtr(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetRts(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_ClrRts(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetModemStatus(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG *pModemStatus
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetChars(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
UCHAR EventChar,
|
|
||||||
UCHAR EventCharEnabled,
|
|
||||||
UCHAR ErrorChar,
|
|
||||||
UCHAR ErrorCharEnabled
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_Purge(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG Mask
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetTimeouts(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG ReadTimeout,
|
|
||||||
ULONG WriteTimeout
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetQueueStatus(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD *dwRxBytes
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetEventNotification(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD Mask,
|
|
||||||
PVOID Param
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetStatus(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD *dwRxBytes,
|
|
||||||
DWORD *dwTxBytes,
|
|
||||||
DWORD *dwEventDWord
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetBreakOn(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetBreakOff(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetWaitMask(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD Mask
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_WaitOnMask(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD *Mask
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetEventStatus(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD *dwEventDWord
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_ReadEE(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD dwWordOffset,
|
|
||||||
LPWORD lpwValue
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_WriteEE(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD dwWordOffset,
|
|
||||||
WORD wValue
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_EraseEE(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
//
|
|
||||||
// structure to hold program data for FT_Program function
|
|
||||||
//
|
|
||||||
typedef struct ft_program_data {
|
|
||||||
|
|
||||||
DWORD Signature1; // Header - must be 0x00000000
|
|
||||||
DWORD Signature2; // Header - must be 0xffffffff
|
|
||||||
DWORD Version; // Header - FT_PROGRAM_DATA version
|
|
||||||
// 0 = original
|
|
||||||
// 1 = FT2232C extensions
|
|
||||||
// 2 = FT232R extensions
|
|
||||||
|
|
||||||
WORD VendorId; // 0x0403
|
|
||||||
WORD ProductId; // 0x6001
|
|
||||||
char *Manufacturer; // "FTDI"
|
|
||||||
char *ManufacturerId; // "FT"
|
|
||||||
char *Description; // "USB HS Serial Converter"
|
|
||||||
char *SerialNumber; // "FT000001" if fixed, or NULL
|
|
||||||
WORD MaxPower; // 0 < MaxPower <= 500
|
|
||||||
WORD PnP; // 0 = disabled, 1 = enabled
|
|
||||||
WORD SelfPowered; // 0 = bus powered, 1 = self powered
|
|
||||||
WORD RemoteWakeup; // 0 = not capable, 1 = capable
|
|
||||||
//
|
|
||||||
// Rev4 extensions
|
|
||||||
//
|
|
||||||
UCHAR Rev4; // non-zero if Rev4 chip, zero otherwise
|
|
||||||
UCHAR IsoIn; // non-zero if in endpoint is isochronous
|
|
||||||
UCHAR IsoOut; // non-zero if out endpoint is isochronous
|
|
||||||
UCHAR PullDownEnable; // non-zero if pull down enabled
|
|
||||||
UCHAR SerNumEnable; // non-zero if serial number to be used
|
|
||||||
UCHAR USBVersionEnable; // non-zero if chip uses USBVersion
|
|
||||||
WORD USBVersion; // BCD (0x0200 => USB2)
|
|
||||||
//
|
|
||||||
// FT2232C extensions
|
|
||||||
//
|
|
||||||
UCHAR Rev5; // non-zero if Rev5 chip, zero otherwise
|
|
||||||
UCHAR IsoInA; // non-zero if in endpoint is isochronous
|
|
||||||
UCHAR IsoInB; // non-zero if in endpoint is isochronous
|
|
||||||
UCHAR IsoOutA; // non-zero if out endpoint is isochronous
|
|
||||||
UCHAR IsoOutB; // non-zero if out endpoint is isochronous
|
|
||||||
UCHAR PullDownEnable5; // non-zero if pull down enabled
|
|
||||||
UCHAR SerNumEnable5; // non-zero if serial number to be used
|
|
||||||
UCHAR USBVersionEnable5; // non-zero if chip uses USBVersion
|
|
||||||
WORD USBVersion5; // BCD (0x0200 => USB2)
|
|
||||||
UCHAR AIsHighCurrent; // non-zero if interface is high current
|
|
||||||
UCHAR BIsHighCurrent; // non-zero if interface is high current
|
|
||||||
UCHAR IFAIsFifo; // non-zero if interface is 245 FIFO
|
|
||||||
UCHAR IFAIsFifoTar; // non-zero if interface is 245 FIFO CPU target
|
|
||||||
UCHAR IFAIsFastSer; // non-zero if interface is Fast serial
|
|
||||||
UCHAR AIsVCP; // non-zero if interface is to use VCP drivers
|
|
||||||
UCHAR IFBIsFifo; // non-zero if interface is 245 FIFO
|
|
||||||
UCHAR IFBIsFifoTar; // non-zero if interface is 245 FIFO CPU target
|
|
||||||
UCHAR IFBIsFastSer; // non-zero if interface is Fast serial
|
|
||||||
UCHAR BIsVCP; // non-zero if interface is to use VCP drivers
|
|
||||||
//
|
|
||||||
// FT232R extensions
|
|
||||||
//
|
|
||||||
UCHAR UseExtOsc; // Use External Oscillator
|
|
||||||
UCHAR HighDriveIOs; // High Drive I/Os
|
|
||||||
UCHAR EndpointSize; // Endpoint size
|
|
||||||
|
|
||||||
UCHAR PullDownEnableR; // non-zero if pull down enabled
|
|
||||||
UCHAR SerNumEnableR; // non-zero if serial number to be used
|
|
||||||
|
|
||||||
UCHAR InvertTXD; // non-zero if invert TXD
|
|
||||||
UCHAR InvertRXD; // non-zero if invert RXD
|
|
||||||
UCHAR InvertRTS; // non-zero if invert RTS
|
|
||||||
UCHAR InvertCTS; // non-zero if invert CTS
|
|
||||||
UCHAR InvertDTR; // non-zero if invert DTR
|
|
||||||
UCHAR InvertDSR; // non-zero if invert DSR
|
|
||||||
UCHAR InvertDCD; // non-zero if invert DCD
|
|
||||||
UCHAR InvertRI; // non-zero if invert RI
|
|
||||||
|
|
||||||
UCHAR Cbus0; // Cbus Mux control
|
|
||||||
UCHAR Cbus1; // Cbus Mux control
|
|
||||||
UCHAR Cbus2; // Cbus Mux control
|
|
||||||
UCHAR Cbus3; // Cbus Mux control
|
|
||||||
UCHAR Cbus4; // Cbus Mux control
|
|
||||||
|
|
||||||
UCHAR RIsVCP; // non-zero if using VCP drivers
|
|
||||||
|
|
||||||
} FT_PROGRAM_DATA, *PFT_PROGRAM_DATA;
|
|
||||||
|
|
||||||
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_ReadEx(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
PFT_PROGRAM_DATA pData,
|
|
||||||
char *Manufacturer,
|
|
||||||
char *ManufacturerId,
|
|
||||||
char *Description,
|
|
||||||
char *SerialNumber
|
|
||||||
);
|
|
||||||
|
|
||||||
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_UARead(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
PUCHAR pucData,
|
|
||||||
DWORD dwDataLen,
|
|
||||||
LPDWORD lpdwBytesRead
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetLatencyTimer(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
UCHAR ucLatency
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetLatencyTimer(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
PUCHAR pucLatency
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetBitMode(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
UCHAR ucMask,
|
|
||||||
UCHAR ucEnable
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetBitMode(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
PUCHAR pucMode
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetUSBParameters(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG ulInTransferSize,
|
|
||||||
ULONG ulOutTransferSize
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetDeadmanTimeout(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
ULONG ulDeadmanTimeout
|
|
||||||
);
|
|
||||||
|
|
||||||
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_StopInTask(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_RestartInTask(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_SetResetPipeRetryCount(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD dwCount
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_ResetPort(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_CyclePort(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Win32-type functions
|
|
||||||
//
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_HANDLE WINAPI FT_W32_CreateFile(
|
|
||||||
LPCSTR lpszName,
|
|
||||||
DWORD dwAccess,
|
|
||||||
DWORD dwShareMode,
|
|
||||||
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
|
||||||
DWORD dwCreate,
|
|
||||||
DWORD dwAttrsAndFlags,
|
|
||||||
HANDLE hTemplate
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
BOOL WINAPI FT_W32_CloseHandle(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
BOOL WINAPI FT_W32_ReadFile(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
LPVOID lpBuffer,
|
|
||||||
DWORD nBufferSize,
|
|
||||||
LPDWORD lpBytesReturned,
|
|
||||||
LPOVERLAPPED lpOverlapped
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
BOOL WINAPI FT_W32_WriteFile(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
LPVOID lpBuffer,
|
|
||||||
DWORD nBufferSize,
|
|
||||||
LPDWORD lpBytesWritten,
|
|
||||||
LPOVERLAPPED lpOverlapped
|
|
||||||
);
|
|
||||||
|
|
||||||
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_CancelIo(
|
|
||||||
FT_HANDLE ftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Win32 COMM API type functions
|
|
||||||
//
|
|
||||||
typedef struct _FTCOMSTAT {
|
|
||||||
DWORD fCtsHold : 1;
|
|
||||||
DWORD fDsrHold : 1;
|
|
||||||
DWORD fRlsdHold : 1;
|
|
||||||
DWORD fXoffHold : 1;
|
|
||||||
DWORD fXoffSent : 1;
|
|
||||||
DWORD fEof : 1;
|
|
||||||
DWORD fTxim : 1;
|
|
||||||
DWORD fReserved : 25;
|
|
||||||
DWORD cbInQue;
|
|
||||||
DWORD cbOutQue;
|
|
||||||
} FTCOMSTAT, *LPFTCOMSTAT;
|
|
||||||
|
|
||||||
typedef struct _FTDCB {
|
|
||||||
DWORD DCBlength; /* sizeof(FTDCB) */
|
|
||||||
DWORD BaudRate; /* Baudrate at which running */
|
|
||||||
DWORD fBinary: 1; /* Binary Mode (skip EOF check) */
|
|
||||||
DWORD fParity: 1; /* Enable parity checking */
|
|
||||||
DWORD fOutxCtsFlow:1; /* CTS handshaking on output */
|
|
||||||
DWORD fOutxDsrFlow:1; /* DSR handshaking on output */
|
|
||||||
DWORD fDtrControl:2; /* DTR Flow control */
|
|
||||||
DWORD fDsrSensitivity:1; /* DSR Sensitivity */
|
|
||||||
DWORD fTXContinueOnXoff: 1; /* Continue TX when Xoff sent */
|
|
||||||
DWORD fOutX: 1; /* Enable output X-ON/X-OFF */
|
|
||||||
DWORD fInX: 1; /* Enable input X-ON/X-OFF */
|
|
||||||
DWORD fErrorChar: 1; /* Enable Err Replacement */
|
|
||||||
DWORD fNull: 1; /* Enable Null stripping */
|
|
||||||
DWORD fRtsControl:2; /* Rts Flow control */
|
|
||||||
DWORD fAbortOnError:1; /* Abort all reads and writes on Error */
|
|
||||||
DWORD fDummy2:17; /* Reserved */
|
|
||||||
WORD wReserved; /* Not currently used */
|
|
||||||
WORD XonLim; /* Transmit X-ON threshold */
|
|
||||||
WORD XoffLim; /* Transmit X-OFF threshold */
|
|
||||||
BYTE ByteSize; /* Number of bits/byte, 4-8 */
|
|
||||||
BYTE Parity; /* 0-4=None,Odd,Even,Mark,Space */
|
|
||||||
BYTE StopBits; /* 0,1,2 = 1, 1.5, 2 */
|
|
||||||
char XonChar; /* Tx and Rx X-ON character */
|
|
||||||
char XoffChar; /* Tx and Rx X-OFF character */
|
|
||||||
char ErrorChar; /* Error replacement char */
|
|
||||||
char EofChar; /* End of Input character */
|
|
||||||
char EvtChar; /* Received Event character */
|
|
||||||
WORD wReserved1; /* Fill for now. */
|
|
||||||
} FTDCB, *LPFTDCB;
|
|
||||||
|
|
||||||
typedef struct _FTTIMEOUTS {
|
|
||||||
DWORD ReadIntervalTimeout; /* Maximum time between read chars. */
|
|
||||||
DWORD ReadTotalTimeoutMultiplier; /* Multiplier of characters. */
|
|
||||||
DWORD ReadTotalTimeoutConstant; /* Constant in milliseconds. */
|
|
||||||
DWORD WriteTotalTimeoutMultiplier; /* Multiplier of characters. */
|
|
||||||
DWORD WriteTotalTimeoutConstant; /* Constant in milliseconds. */
|
|
||||||
} FTTIMEOUTS,*LPFTTIMEOUTS;
|
|
||||||
|
|
||||||
|
|
||||||
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_EscapeCommFunction(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD dwFunc
|
|
||||||
);
|
|
||||||
|
|
||||||
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
|
|
||||||
BOOL WINAPI FT_W32_PurgeComm(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
DWORD dwMask
|
|
||||||
);
|
|
||||||
|
|
||||||
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
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Device information
|
|
||||||
//
|
|
||||||
|
|
||||||
typedef struct _ft_device_list_info_node {
|
|
||||||
ULONG Flags;
|
|
||||||
ULONG Type;
|
|
||||||
ULONG ID;
|
|
||||||
DWORD LocId;
|
|
||||||
char SerialNumber[16];
|
|
||||||
char Description[64];
|
|
||||||
FT_HANDLE ftHandle;
|
|
||||||
} FT_DEVICE_LIST_INFO_NODE;
|
|
||||||
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_CreateDeviceInfoList(
|
|
||||||
LPDWORD lpdwNumDevs
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetDeviceInfoList(
|
|
||||||
FT_DEVICE_LIST_INFO_NODE *pDest,
|
|
||||||
LPDWORD lpdwNumDevs
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetDeviceInfoDetail(
|
|
||||||
DWORD dwIndex,
|
|
||||||
LPDWORD lpdwFlags,
|
|
||||||
LPDWORD lpdwType,
|
|
||||||
LPDWORD lpdwID,
|
|
||||||
LPDWORD lpdwLocId,
|
|
||||||
LPVOID lpSerialNumber,
|
|
||||||
LPVOID lpDescription,
|
|
||||||
FT_HANDLE *pftHandle
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Version information
|
|
||||||
//
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetDriverVersion(
|
|
||||||
FT_HANDLE ftHandle,
|
|
||||||
LPDWORD lpdwVersion
|
|
||||||
);
|
|
||||||
|
|
||||||
FTD2XX_API
|
|
||||||
FT_STATUS WINAPI FT_GetLibraryVersion(
|
|
||||||
LPDWORD lpdwVersion
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* FTD2XX_H */
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -1,88 +0,0 @@
|
|||||||
; FTDIBUS.INF
|
|
||||||
; Copyright (c) 2000-2006 FTDI Ltd.
|
|
||||||
;
|
|
||||||
; USB serial converter driver installation for Windows 2000 and XP.
|
|
||||||
;
|
|
||||||
|
|
||||||
[Version]
|
|
||||||
Signature="$Windows NT$"
|
|
||||||
DriverPackageType=PlugAndPlay
|
|
||||||
DriverPackageDisplayName=%DESC%
|
|
||||||
Class=USB
|
|
||||||
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
|
|
||||||
Provider=%FTDI%
|
|
||||||
CatalogFile=ftdibus.cat
|
|
||||||
DriverVer=05/19/2006,2.00.00
|
|
||||||
|
|
||||||
[SourceDisksNames]
|
|
||||||
1=%DriversDisk%,,,
|
|
||||||
|
|
||||||
[SourceDisksFiles]
|
|
||||||
ftdibus.sys = 1
|
|
||||||
ftdiunin.exe = 1
|
|
||||||
ftdiun2k.ini = 1
|
|
||||||
ftbusui.dll = 1
|
|
||||||
ftd2xx.dll = 1
|
|
||||||
|
|
||||||
[DestinationDirs]
|
|
||||||
FtdiBus.NT.Copy = 10,system32\drivers
|
|
||||||
FtdiBus.NT.Copy2 = 10,system32
|
|
||||||
|
|
||||||
[Manufacturer]
|
|
||||||
%Ftdi%=FtdiHw
|
|
||||||
|
|
||||||
[FtdiHw]
|
|
||||||
%USB\VID_0403&PID_6001.DeviceDesc%=FtdiBus,USB\VID_0403&PID_6001
|
|
||||||
%USB\VID_0403&PID_6010&MI_00.DeviceDesc%=FtdiBus,USB\VID_0403&PID_6010&MI_00
|
|
||||||
%USB\VID_0403&PID_6010&MI_01.DeviceDesc%=FtdiBus,USB\VID_0403&PID_6010&MI_01
|
|
||||||
|
|
||||||
[ControlFlags]
|
|
||||||
ExcludeFromSelect=*
|
|
||||||
|
|
||||||
[FtdiBus.NT]
|
|
||||||
CopyFiles=FtdiBus.NT.Copy,FtdiBus.NT.Copy2
|
|
||||||
AddReg=FtdiBus.NT.AddReg,FtdiBusUnInst.NT.Reg
|
|
||||||
|
|
||||||
[FtdiBus.NT.Services]
|
|
||||||
AddService = FTDIBUS, 0x00000002, FtdiBus.NT.AddService
|
|
||||||
|
|
||||||
[FtdiBus.NT.AddService]
|
|
||||||
DisplayName = %SvcDesc%
|
|
||||||
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
|
||||||
StartType = 3 ; SERVICE_DEMAND_START
|
|
||||||
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
|
||||||
ServiceBinary = %10%\system32\drivers\ftdibus.sys
|
|
||||||
LoadOrderGroup = Base
|
|
||||||
|
|
||||||
[FtdiBus.NT.AddReg]
|
|
||||||
HKR,,DevLoader,,*ntkern
|
|
||||||
HKR,,NTMPDriver,,ftdibus.sys
|
|
||||||
HKR,,EnumPropPages32,,"ftbusui.dll,FTBUSUIPropPageProvider"
|
|
||||||
|
|
||||||
[FtdiBus.NT.Copy]
|
|
||||||
ftdibus.sys
|
|
||||||
|
|
||||||
[FtdiBus.NT.Copy2]
|
|
||||||
ftdiunin.exe
|
|
||||||
ftdiun2k.ini
|
|
||||||
ftbusui.dll
|
|
||||||
ftd2xx.dll
|
|
||||||
|
|
||||||
[FtdiBusUnInst.NT.Reg]
|
|
||||||
HKLM,%WINUN%,"FTDICOMM"
|
|
||||||
HKLM,%WINUN%\FTDICOMM , "UninstallString",,"%11%\ftdiunin.exe %11%\ftdiun2k.ini"
|
|
||||||
HKLM,%WINUN%\FTDICOMM , "DisplayName",,"FTDI USB Serial Converter Drivers"
|
|
||||||
HKLM,%WINUN%\FTDICOMM , "URLInfoAbout",,"http://www.ftdichip.com"
|
|
||||||
HKLM,%WINUN%\FTDICOMM , "Publisher",,"FTDI Ltd"
|
|
||||||
HKLM,%WINUN%\FTDICOMM , "DisplayVersion",,"2.00.00"
|
|
||||||
|
|
||||||
[Strings]
|
|
||||||
Ftdi="FTDI"
|
|
||||||
DESC="CDM Driver Package"
|
|
||||||
DriversDisk="FTDI USB Drivers Disk"
|
|
||||||
USB\VID_0403&PID_6001.DeviceDesc="USB Serial Converter"
|
|
||||||
USB\VID_0403&PID_6010&MI_00.DeviceDesc="USB Serial Converter A"
|
|
||||||
USB\VID_0403&PID_6010&MI_01.DeviceDesc="USB Serial Converter B"
|
|
||||||
WINUN="Software\Microsoft\Windows\CurrentVersion\Uninstall"
|
|
||||||
SvcDesc="USB Serial Converter Driver"
|
|
||||||
ClassName="USB"
|
|
Binary file not shown.
@ -1,127 +0,0 @@
|
|||||||
; FTDIPORT.INF
|
|
||||||
; Copyright (c) 2000-2006 FTDI Ltd.
|
|
||||||
;
|
|
||||||
; USB serial port driver installation for Windows 2000 and XP.
|
|
||||||
;
|
|
||||||
|
|
||||||
[Version]
|
|
||||||
Signature="$Windows NT$"
|
|
||||||
DriverPackageType=PlugAndPlay
|
|
||||||
DriverPackageDisplayName=%DESC%
|
|
||||||
Class=Ports
|
|
||||||
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
|
|
||||||
Provider=%FTDI%
|
|
||||||
CatalogFile=ftdiport.cat
|
|
||||||
DriverVer=05/19/2006,2.00.00
|
|
||||||
|
|
||||||
[SourceDisksNames]
|
|
||||||
1=%DriversDisk%,,,
|
|
||||||
|
|
||||||
[SourceDisksFiles]
|
|
||||||
ftser2k.sys=1
|
|
||||||
ftserui2.dll=1
|
|
||||||
FTLang.Dll = 1
|
|
||||||
ftcserco.dll = 1
|
|
||||||
|
|
||||||
[DestinationDirs]
|
|
||||||
FtdiPort.NT.Copy=10,system32\drivers
|
|
||||||
FtdiPort.NT.CopyUI=10,system32
|
|
||||||
FtdiPort2232.NT.CopyCoInst=10,system32
|
|
||||||
|
|
||||||
[ControlFlags]
|
|
||||||
ExcludeFromSelect=*
|
|
||||||
|
|
||||||
[Manufacturer]
|
|
||||||
%FTDI%=FtdiHw
|
|
||||||
|
|
||||||
[FtdiHw]
|
|
||||||
%VID_0403&PID_6001.DeviceDesc%=FtdiPort232,FTDIBUS\COMPORT&VID_0403&PID_6001
|
|
||||||
%VID_0403&PID_6010.DeviceDesc%=FtdiPort2232,FTDIBUS\COMPORT&VID_0403&PID_6010
|
|
||||||
|
|
||||||
[FtdiPort.NT.AddService]
|
|
||||||
DisplayName = %SvcDesc%
|
|
||||||
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
|
||||||
StartType = 3 ; SERVICE_DEMAND_START
|
|
||||||
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
|
||||||
ServiceBinary = %10%\system32\drivers\ftser2k.sys
|
|
||||||
LoadOrderGroup = Base
|
|
||||||
|
|
||||||
; -------------- Serenum Driver install section
|
|
||||||
[SerEnum_AddService]
|
|
||||||
DisplayName = %SerEnum.SvcDesc%
|
|
||||||
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
|
||||||
StartType = 3 ; SERVICE_DEMAND_START
|
|
||||||
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
|
||||||
ServiceBinary = %12%\serenum.sys
|
|
||||||
LoadOrderGroup = PNP Filter
|
|
||||||
|
|
||||||
[FtdiPort.NT.AddReg]
|
|
||||||
HKR,,EnumPropPages32,,"ftserui2.dll,SerialPortPropPageProvider"
|
|
||||||
|
|
||||||
[FtdiPort.NT.Copy]
|
|
||||||
ftser2k.sys
|
|
||||||
;serenum.sys
|
|
||||||
|
|
||||||
[FtdiPort.NT.CopyUI]
|
|
||||||
ftserui2.dll
|
|
||||||
FTLang.dll
|
|
||||||
|
|
||||||
[FtdiPort232.NT]
|
|
||||||
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
|
|
||||||
AddReg=FtdiPort.NT.AddReg
|
|
||||||
|
|
||||||
[FtdiPort232.NT.HW]
|
|
||||||
AddReg=FtdiPort232.NT.HW.AddReg
|
|
||||||
|
|
||||||
[FtdiPort232.NT.Services]
|
|
||||||
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
|
|
||||||
AddService = Serenum,,SerEnum_AddService
|
|
||||||
DelService = FTSERIAL
|
|
||||||
|
|
||||||
[FtdiPort232.NT.HW.AddReg]
|
|
||||||
HKR,,"UpperFilters",0x00010000,"serenum"
|
|
||||||
;HKR,,"ConfigData",1,01,00,3F,3F,10,27,88,13,C4,09,E2,04,71,02,38,41,9c,80,4E,C0,34,00,1A,00,0D,00,06,40,03,80,00,00,d0,80
|
|
||||||
HKR,,"ConfigData",1,11,00,3F,3F,10,27,00,00,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00
|
|
||||||
HKR,,"MinReadTimeout",0x00010001,0
|
|
||||||
HKR,,"MinWriteTimeout",0x00010001,0
|
|
||||||
HKR,,"LatencyTimer",0x00010001,16
|
|
||||||
|
|
||||||
; -------
|
|
||||||
; FT2232C
|
|
||||||
; -------
|
|
||||||
|
|
||||||
[FtdiPort2232.NT]
|
|
||||||
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
|
|
||||||
AddReg=FtdiPort.NT.AddReg
|
|
||||||
|
|
||||||
[FtdiPort2232.NT.HW]
|
|
||||||
AddReg=FtdiPort232.NT.HW.AddReg
|
|
||||||
|
|
||||||
[FtdiPort2232.NT.CoInstallers]
|
|
||||||
AddReg=FtdiPort2232.NT.CoInstallers.AddReg
|
|
||||||
CopyFiles=FtdiPort2232.NT.CopyCoInst
|
|
||||||
|
|
||||||
[FtdiPort2232.NT.Services]
|
|
||||||
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
|
|
||||||
AddService = Serenum,,SerEnum_AddService
|
|
||||||
DelService = FTSERIAL
|
|
||||||
|
|
||||||
[FtdiPort2232.NT.CoInstallers.AddReg]
|
|
||||||
HKR,,CoInstallers32,0x00010000,"ftcserco.Dll,FTCSERCoInstaller"
|
|
||||||
|
|
||||||
[FtdiPort2232.NT.CopyCoInst]
|
|
||||||
ftcserco.dll
|
|
||||||
|
|
||||||
;---------------------------------------------------------------;
|
|
||||||
|
|
||||||
[Strings]
|
|
||||||
FTDI="FTDI"
|
|
||||||
DESC="CDM Driver Package"
|
|
||||||
DriversDisk="FTDI USB Drivers Disk"
|
|
||||||
PortsClassName = "Ports (COM & LPT)"
|
|
||||||
VID_0403&PID_6001.DeviceDesc="USB Serial Port"
|
|
||||||
VID_0403&PID_6010.DeviceDesc="USB Serial Port"
|
|
||||||
SvcDesc="USB Serial Port Driver"
|
|
||||||
SerEnum.SvcDesc="Serenum Filter Driver"
|
|
||||||
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
[Uninstall]
|
|
||||||
Device=VID_0403&PID_6001,VID_0403&PID_6010
|
|
||||||
Converter=FTDIBUS
|
|
||||||
Serial=FTSER2K
|
|
||||||
InfFiles=FTDIBUS,FTDIPORT
|
|
||||||
Key=FTDICOMM
|
|
Binary file not shown.
Binary file not shown.
@ -1,7 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
BASEURL=http://www.ftdichip.com/Documents/InstallGuides.htm
|
|
||||||
[InternetShortcut]
|
|
||||||
URL=http://www.ftdichip.com/Documents/InstallGuides.htm
|
|
||||||
Modified=606147754AF7C50184
|
|
||||||
IconFile=C:\WINNT\system32\url.dll
|
|
||||||
IconIndex=0
|
|
BIN
build/windows/dist/drivers/FTDI USB Drivers/LogoVerificationReport.pdf
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/LogoVerificationReport.pdf
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/Static/amd64/ftd2xx.lib
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/Static/amd64/ftd2xx.lib
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/Static/i386/ftd2xx.lib
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/Static/i386/ftd2xx.lib
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftbusui.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftbusui.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftcserco.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftcserco.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftd2xx.lib
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftd2xx.lib
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftd2xx64.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftd2xx64.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftdibus.sys
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftdibus.sys
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftlang.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftlang.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftser2k.sys
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftser2k.sys
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftserui2.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/amd64/ftserui2.dll
vendored
Normal file
Binary file not shown.
Binary file not shown.
1067
build/windows/dist/drivers/FTDI USB Drivers/ftd2xx.h
vendored
Normal file
1067
build/windows/dist/drivers/FTDI USB Drivers/ftd2xx.h
vendored
Normal file
@ -0,0 +1,1067 @@
|
|||||||
|
/*++
|
||||||
|
|
||||||
|
Copyright © 2001-2011 Future Technology Devices International Limited
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||||
|
FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||||
|
OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||||
|
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||||
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
FTDI DRIVERS MAY BE USED ONLY IN CONJUNCTION WITH PRODUCTS BASED ON FTDI PARTS.
|
||||||
|
|
||||||
|
FTDI DRIVERS MAY BE DISTRIBUTED IN ANY FORM AS LONG AS LICENSE INFORMATION IS NOT MODIFIED.
|
||||||
|
|
||||||
|
IF A CUSTOM VENDOR ID AND/OR PRODUCT ID OR DESCRIPTION STRING ARE USED, IT IS THE
|
||||||
|
RESPONSIBILITY OF THE PRODUCT MANUFACTURER TO MAINTAIN ANY CHANGES AND SUBSEQUENT WHQL
|
||||||
|
RE-CERTIFICATION AS A RESULT OF MAKING THESE CHANGES.
|
||||||
|
|
||||||
|
|
||||||
|
Module Name:
|
||||||
|
|
||||||
|
ftd2xx.h
|
||||||
|
|
||||||
|
Abstract:
|
||||||
|
|
||||||
|
Native USB device driver for FTDI FT232x, FT245x, FT2232x and FT4232x devices
|
||||||
|
FTD2XX library definitions
|
||||||
|
|
||||||
|
Environment:
|
||||||
|
|
||||||
|
kernel & user mode
|
||||||
|
|
||||||
|
|
||||||
|
--*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef FTD2XX_H
|
||||||
|
#define FTD2XX_H
|
||||||
|
|
||||||
|
// The following ifdef block is the standard way of creating macros
|
||||||
|
// which make exporting from a DLL simpler. All files within this DLL
|
||||||
|
// are compiled with the FTD2XX_EXPORTS symbol defined on the command line.
|
||||||
|
// This symbol should not be defined on any project that uses this DLL.
|
||||||
|
// This way any other project whose source files include this file see
|
||||||
|
// FTD2XX_API functions as being imported from a DLL, whereas this DLL
|
||||||
|
// sees symbols defined with this macro as being exported.
|
||||||
|
|
||||||
|
#ifdef FTD2XX_EXPORTS
|
||||||
|
#define FTD2XX_API __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define FTD2XX_API __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
typedef PVOID FT_HANDLE;
|
||||||
|
typedef ULONG FT_STATUS;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Device status
|
||||||
|
//
|
||||||
|
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,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#define FT_SUCCESS(status) ((status) == FT_OK)
|
||||||
|
|
||||||
|
//
|
||||||
|
// FT_OpenEx Flags
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_OPEN_BY_SERIAL_NUMBER 1
|
||||||
|
#define FT_OPEN_BY_DESCRIPTION 2
|
||||||
|
#define FT_OPEN_BY_LOCATION 4
|
||||||
|
|
||||||
|
//
|
||||||
|
// FT_ListDevices Flags (used in conjunction with FT_OpenEx Flags
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_LIST_NUMBER_ONLY 0x80000000
|
||||||
|
#define FT_LIST_BY_INDEX 0x40000000
|
||||||
|
#define FT_LIST_ALL 0x20000000
|
||||||
|
|
||||||
|
#define FT_LIST_MASK (FT_LIST_NUMBER_ONLY|FT_LIST_BY_INDEX|FT_LIST_ALL)
|
||||||
|
|
||||||
|
//
|
||||||
|
// Baud Rates
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_BAUD_300 300
|
||||||
|
#define FT_BAUD_600 600
|
||||||
|
#define FT_BAUD_1200 1200
|
||||||
|
#define FT_BAUD_2400 2400
|
||||||
|
#define FT_BAUD_4800 4800
|
||||||
|
#define FT_BAUD_9600 9600
|
||||||
|
#define FT_BAUD_14400 14400
|
||||||
|
#define FT_BAUD_19200 19200
|
||||||
|
#define FT_BAUD_38400 38400
|
||||||
|
#define FT_BAUD_57600 57600
|
||||||
|
#define FT_BAUD_115200 115200
|
||||||
|
#define FT_BAUD_230400 230400
|
||||||
|
#define FT_BAUD_460800 460800
|
||||||
|
#define FT_BAUD_921600 921600
|
||||||
|
|
||||||
|
//
|
||||||
|
// Word Lengths
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_BITS_8 (UCHAR) 8
|
||||||
|
#define FT_BITS_7 (UCHAR) 7
|
||||||
|
|
||||||
|
//
|
||||||
|
// Stop Bits
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_STOP_BITS_1 (UCHAR) 0
|
||||||
|
#define FT_STOP_BITS_2 (UCHAR) 2
|
||||||
|
|
||||||
|
//
|
||||||
|
// Parity
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_PARITY_NONE (UCHAR) 0
|
||||||
|
#define FT_PARITY_ODD (UCHAR) 1
|
||||||
|
#define FT_PARITY_EVEN (UCHAR) 2
|
||||||
|
#define FT_PARITY_MARK (UCHAR) 3
|
||||||
|
#define FT_PARITY_SPACE (UCHAR) 4
|
||||||
|
|
||||||
|
//
|
||||||
|
// Flow Control
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_FLOW_NONE 0x0000
|
||||||
|
#define FT_FLOW_RTS_CTS 0x0100
|
||||||
|
#define FT_FLOW_DTR_DSR 0x0200
|
||||||
|
#define FT_FLOW_XON_XOFF 0x0400
|
||||||
|
|
||||||
|
//
|
||||||
|
// Purge rx and tx buffers
|
||||||
|
//
|
||||||
|
#define FT_PURGE_RX 1
|
||||||
|
#define FT_PURGE_TX 2
|
||||||
|
|
||||||
|
//
|
||||||
|
// Events
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef void (*PFT_EVENT_HANDLER)(DWORD,DWORD);
|
||||||
|
|
||||||
|
#define FT_EVENT_RXCHAR 1
|
||||||
|
#define FT_EVENT_MODEM_STATUS 2
|
||||||
|
#define FT_EVENT_LINE_STATUS 4
|
||||||
|
|
||||||
|
//
|
||||||
|
// Timeouts
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_DEFAULT_RX_TIMEOUT 300
|
||||||
|
#define FT_DEFAULT_TX_TIMEOUT 300
|
||||||
|
|
||||||
|
//
|
||||||
|
// Device types
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef ULONG FT_DEVICE;
|
||||||
|
|
||||||
|
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
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
// Bit Modes
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_BITMODE_RESET 0x00
|
||||||
|
#define FT_BITMODE_ASYNC_BITBANG 0x01
|
||||||
|
#define FT_BITMODE_MPSSE 0x02
|
||||||
|
#define FT_BITMODE_SYNC_BITBANG 0x04
|
||||||
|
#define FT_BITMODE_MCU_HOST 0x08
|
||||||
|
#define FT_BITMODE_FAST_SERIAL 0x10
|
||||||
|
#define FT_BITMODE_CBUS_BITBANG 0x20
|
||||||
|
#define FT_BITMODE_SYNC_FIFO 0x40
|
||||||
|
|
||||||
|
//
|
||||||
|
// FT232R CBUS Options EEPROM values
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_232R_CBUS_TXDEN 0x00 // Tx Data Enable
|
||||||
|
#define FT_232R_CBUS_PWRON 0x01 // Power On
|
||||||
|
#define FT_232R_CBUS_RXLED 0x02 // Rx LED
|
||||||
|
#define FT_232R_CBUS_TXLED 0x03 // Tx LED
|
||||||
|
#define FT_232R_CBUS_TXRXLED 0x04 // Tx and Rx LED
|
||||||
|
#define FT_232R_CBUS_SLEEP 0x05 // Sleep
|
||||||
|
#define FT_232R_CBUS_CLK48 0x06 // 48MHz clock
|
||||||
|
#define FT_232R_CBUS_CLK24 0x07 // 24MHz clock
|
||||||
|
#define FT_232R_CBUS_CLK12 0x08 // 12MHz clock
|
||||||
|
#define FT_232R_CBUS_CLK6 0x09 // 6MHz clock
|
||||||
|
#define FT_232R_CBUS_IOMODE 0x0A // IO Mode for CBUS bit-bang
|
||||||
|
#define FT_232R_CBUS_BITBANG_WR 0x0B // Bit-bang write strobe
|
||||||
|
#define FT_232R_CBUS_BITBANG_RD 0x0C // Bit-bang read strobe
|
||||||
|
|
||||||
|
//
|
||||||
|
// FT232H CBUS Options EEPROM values
|
||||||
|
//
|
||||||
|
|
||||||
|
#define FT_232H_CBUS_TRISTATE 0x00 // Tristate
|
||||||
|
#define FT_232H_CBUS_RXLED 0x01 // Rx LED
|
||||||
|
#define FT_232H_CBUS_TXLED 0x02 // Tx LED
|
||||||
|
#define FT_232H_CBUS_TXRXLED 0x03 // Tx and Rx LED
|
||||||
|
#define FT_232H_CBUS_PWREN 0x04 // Power Enable
|
||||||
|
#define FT_232H_CBUS_SLEEP 0x05 // Sleep
|
||||||
|
#define FT_232H_CBUS_DRIVE_0 0x06 // Drive pin to logic 0
|
||||||
|
#define FT_232H_CBUS_DRIVE_1 0x07 // Drive pin to logic 1
|
||||||
|
#define FT_232H_CBUS_IOMODE 0x08 // IO Mode for CBUS bit-bang
|
||||||
|
#define FT_232H_CBUS_TXDEN 0x09 // Tx Data Enable
|
||||||
|
#define FT_232H_CBUS_CLK30 0x0A // 30MHz clock
|
||||||
|
#define FT_232H_CBUS_CLK15 0x0B // 15MHz clock
|
||||||
|
#define FT_232H_CBUS_CLK7_5 0x0C // 7.5MHz clock
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
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_ListDevices(
|
||||||
|
PVOID pArg1,
|
||||||
|
PVOID pArg2,
|
||||||
|
DWORD Flags
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Close(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Read(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPVOID lpBuffer,
|
||||||
|
DWORD dwBytesToRead,
|
||||||
|
LPDWORD lpBytesReturned
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Write(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPVOID lpBuffer,
|
||||||
|
DWORD dwBytesToWrite,
|
||||||
|
LPDWORD lpBytesWritten
|
||||||
|
);
|
||||||
|
|
||||||
|
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_SetBaudRate(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG BaudRate
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetDivisor(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
USHORT Divisor
|
||||||
|
);
|
||||||
|
|
||||||
|
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_ResetDevice(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetDtr(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_ClrDtr(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetRts(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_ClrRts(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetModemStatus(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG *pModemStatus
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetChars(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR EventChar,
|
||||||
|
UCHAR EventCharEnabled,
|
||||||
|
UCHAR ErrorChar,
|
||||||
|
UCHAR ErrorCharEnabled
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Purge(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG Mask
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetTimeouts(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG ReadTimeout,
|
||||||
|
ULONG WriteTimeout
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetQueueStatus(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD *dwRxBytes
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetEventNotification(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD Mask,
|
||||||
|
PVOID Param
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetStatus(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD *dwRxBytes,
|
||||||
|
DWORD *dwTxBytes,
|
||||||
|
DWORD *dwEventDWord
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetBreakOn(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetBreakOff(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetWaitMask(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD Mask
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_WaitOnMask(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD *Mask
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetEventStatus(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD *dwEventDWord
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_ReadEE(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD dwWordOffset,
|
||||||
|
LPWORD lpwValue
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_WriteEE(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD dwWordOffset,
|
||||||
|
WORD wValue
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_EraseEE(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
// structure to hold program data for FT_Program function
|
||||||
|
//
|
||||||
|
typedef struct ft_program_data {
|
||||||
|
|
||||||
|
DWORD Signature1; // Header - must be 0x00000000
|
||||||
|
DWORD Signature2; // Header - must be 0xffffffff
|
||||||
|
DWORD Version; // Header - FT_PROGRAM_DATA version
|
||||||
|
// 0 = original
|
||||||
|
// 1 = FT2232C extensions
|
||||||
|
// 2 = FT232R extensions
|
||||||
|
// 3 = FT2232H extensions
|
||||||
|
// 4 = FT4232H extensions
|
||||||
|
// 5 = FT232H extensions
|
||||||
|
|
||||||
|
WORD VendorId; // 0x0403
|
||||||
|
WORD ProductId; // 0x6001
|
||||||
|
char *Manufacturer; // "FTDI"
|
||||||
|
char *ManufacturerId; // "FT"
|
||||||
|
char *Description; // "USB HS Serial Converter"
|
||||||
|
char *SerialNumber; // "FT000001" if fixed, or NULL
|
||||||
|
WORD MaxPower; // 0 < MaxPower <= 500
|
||||||
|
WORD PnP; // 0 = disabled, 1 = enabled
|
||||||
|
WORD SelfPowered; // 0 = bus powered, 1 = self powered
|
||||||
|
WORD RemoteWakeup; // 0 = not capable, 1 = capable
|
||||||
|
//
|
||||||
|
// Rev4 (FT232B) extensions
|
||||||
|
//
|
||||||
|
UCHAR Rev4; // non-zero if Rev4 chip, zero otherwise
|
||||||
|
UCHAR IsoIn; // non-zero if in endpoint is isochronous
|
||||||
|
UCHAR IsoOut; // non-zero if out endpoint is isochronous
|
||||||
|
UCHAR PullDownEnable; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnable; // non-zero if serial number to be used
|
||||||
|
UCHAR USBVersionEnable; // non-zero if chip uses USBVersion
|
||||||
|
WORD USBVersion; // BCD (0x0200 => USB2)
|
||||||
|
//
|
||||||
|
// Rev 5 (FT2232) extensions
|
||||||
|
//
|
||||||
|
UCHAR Rev5; // non-zero if Rev5 chip, zero otherwise
|
||||||
|
UCHAR IsoInA; // non-zero if in endpoint is isochronous
|
||||||
|
UCHAR IsoInB; // non-zero if in endpoint is isochronous
|
||||||
|
UCHAR IsoOutA; // non-zero if out endpoint is isochronous
|
||||||
|
UCHAR IsoOutB; // non-zero if out endpoint is isochronous
|
||||||
|
UCHAR PullDownEnable5; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnable5; // non-zero if serial number to be used
|
||||||
|
UCHAR USBVersionEnable5; // non-zero if chip uses USBVersion
|
||||||
|
WORD USBVersion5; // BCD (0x0200 => USB2)
|
||||||
|
UCHAR AIsHighCurrent; // non-zero if interface is high current
|
||||||
|
UCHAR BIsHighCurrent; // non-zero if interface is high current
|
||||||
|
UCHAR IFAIsFifo; // non-zero if interface is 245 FIFO
|
||||||
|
UCHAR IFAIsFifoTar; // non-zero if interface is 245 FIFO CPU target
|
||||||
|
UCHAR IFAIsFastSer; // non-zero if interface is Fast serial
|
||||||
|
UCHAR AIsVCP; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR IFBIsFifo; // non-zero if interface is 245 FIFO
|
||||||
|
UCHAR IFBIsFifoTar; // non-zero if interface is 245 FIFO CPU target
|
||||||
|
UCHAR IFBIsFastSer; // non-zero if interface is Fast serial
|
||||||
|
UCHAR BIsVCP; // non-zero if interface is to use VCP drivers
|
||||||
|
//
|
||||||
|
// Rev 6 (FT232R) extensions
|
||||||
|
//
|
||||||
|
UCHAR UseExtOsc; // Use External Oscillator
|
||||||
|
UCHAR HighDriveIOs; // High Drive I/Os
|
||||||
|
UCHAR EndpointSize; // Endpoint size
|
||||||
|
UCHAR PullDownEnableR; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnableR; // non-zero if serial number to be used
|
||||||
|
UCHAR InvertTXD; // non-zero if invert TXD
|
||||||
|
UCHAR InvertRXD; // non-zero if invert RXD
|
||||||
|
UCHAR InvertRTS; // non-zero if invert RTS
|
||||||
|
UCHAR InvertCTS; // non-zero if invert CTS
|
||||||
|
UCHAR InvertDTR; // non-zero if invert DTR
|
||||||
|
UCHAR InvertDSR; // non-zero if invert DSR
|
||||||
|
UCHAR InvertDCD; // non-zero if invert DCD
|
||||||
|
UCHAR InvertRI; // non-zero if invert RI
|
||||||
|
UCHAR Cbus0; // Cbus Mux control
|
||||||
|
UCHAR Cbus1; // Cbus Mux control
|
||||||
|
UCHAR Cbus2; // Cbus Mux control
|
||||||
|
UCHAR Cbus3; // Cbus Mux control
|
||||||
|
UCHAR Cbus4; // Cbus Mux control
|
||||||
|
UCHAR RIsD2XX; // non-zero if using D2XX driver
|
||||||
|
//
|
||||||
|
// Rev 7 (FT2232H) Extensions
|
||||||
|
//
|
||||||
|
UCHAR PullDownEnable7; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnable7; // non-zero if serial number to be used
|
||||||
|
UCHAR ALSlowSlew; // non-zero if AL pins have slow slew
|
||||||
|
UCHAR ALSchmittInput; // non-zero if AL pins are Schmitt input
|
||||||
|
UCHAR ALDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR AHSlowSlew; // non-zero if AH pins have slow slew
|
||||||
|
UCHAR AHSchmittInput; // non-zero if AH pins are Schmitt input
|
||||||
|
UCHAR AHDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR BLSlowSlew; // non-zero if BL pins have slow slew
|
||||||
|
UCHAR BLSchmittInput; // non-zero if BL pins are Schmitt input
|
||||||
|
UCHAR BLDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR BHSlowSlew; // non-zero if BH pins have slow slew
|
||||||
|
UCHAR BHSchmittInput; // non-zero if BH pins are Schmitt input
|
||||||
|
UCHAR BHDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR IFAIsFifo7; // non-zero if interface is 245 FIFO
|
||||||
|
UCHAR IFAIsFifoTar7; // non-zero if interface is 245 FIFO CPU target
|
||||||
|
UCHAR IFAIsFastSer7; // non-zero if interface is Fast serial
|
||||||
|
UCHAR AIsVCP7; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR IFBIsFifo7; // non-zero if interface is 245 FIFO
|
||||||
|
UCHAR IFBIsFifoTar7; // non-zero if interface is 245 FIFO CPU target
|
||||||
|
UCHAR IFBIsFastSer7; // non-zero if interface is Fast serial
|
||||||
|
UCHAR BIsVCP7; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR PowerSaveEnable; // non-zero if using BCBUS7 to save power for self-powered designs
|
||||||
|
//
|
||||||
|
// Rev 8 (FT4232H) Extensions
|
||||||
|
//
|
||||||
|
UCHAR PullDownEnable8; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnable8; // non-zero if serial number to be used
|
||||||
|
UCHAR ASlowSlew; // non-zero if AL pins have slow slew
|
||||||
|
UCHAR ASchmittInput; // non-zero if AL pins are Schmitt input
|
||||||
|
UCHAR ADriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR BSlowSlew; // non-zero if AH pins have slow slew
|
||||||
|
UCHAR BSchmittInput; // non-zero if AH pins are Schmitt input
|
||||||
|
UCHAR BDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR CSlowSlew; // non-zero if BL pins have slow slew
|
||||||
|
UCHAR CSchmittInput; // non-zero if BL pins are Schmitt input
|
||||||
|
UCHAR CDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR DSlowSlew; // non-zero if BH pins have slow slew
|
||||||
|
UCHAR DSchmittInput; // non-zero if BH pins are Schmitt input
|
||||||
|
UCHAR DDriveCurrent; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR ARIIsTXDEN; // non-zero if port A uses RI as RS485 TXDEN
|
||||||
|
UCHAR BRIIsTXDEN; // non-zero if port B uses RI as RS485 TXDEN
|
||||||
|
UCHAR CRIIsTXDEN; // non-zero if port C uses RI as RS485 TXDEN
|
||||||
|
UCHAR DRIIsTXDEN; // non-zero if port D uses RI as RS485 TXDEN
|
||||||
|
UCHAR AIsVCP8; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR BIsVCP8; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR CIsVCP8; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR DIsVCP8; // non-zero if interface is to use VCP drivers
|
||||||
|
//
|
||||||
|
// Rev 9 (FT232H) Extensions
|
||||||
|
//
|
||||||
|
UCHAR PullDownEnableH; // non-zero if pull down enabled
|
||||||
|
UCHAR SerNumEnableH; // non-zero if serial number to be used
|
||||||
|
UCHAR ACSlowSlewH; // non-zero if AC pins have slow slew
|
||||||
|
UCHAR ACSchmittInputH; // non-zero if AC pins are Schmitt input
|
||||||
|
UCHAR ACDriveCurrentH; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR ADSlowSlewH; // non-zero if AD pins have slow slew
|
||||||
|
UCHAR ADSchmittInputH; // non-zero if AD pins are Schmitt input
|
||||||
|
UCHAR ADDriveCurrentH; // valid values are 4mA, 8mA, 12mA, 16mA
|
||||||
|
UCHAR Cbus0H; // Cbus Mux control
|
||||||
|
UCHAR Cbus1H; // Cbus Mux control
|
||||||
|
UCHAR Cbus2H; // Cbus Mux control
|
||||||
|
UCHAR Cbus3H; // Cbus Mux control
|
||||||
|
UCHAR Cbus4H; // Cbus Mux control
|
||||||
|
UCHAR Cbus5H; // Cbus Mux control
|
||||||
|
UCHAR Cbus6H; // Cbus Mux control
|
||||||
|
UCHAR Cbus7H; // Cbus Mux control
|
||||||
|
UCHAR Cbus8H; // Cbus Mux control
|
||||||
|
UCHAR Cbus9H; // Cbus Mux control
|
||||||
|
UCHAR IsFifoH; // non-zero if interface is 245 FIFO
|
||||||
|
UCHAR IsFifoTarH; // non-zero if interface is 245 FIFO CPU target
|
||||||
|
UCHAR IsFastSerH; // non-zero if interface is Fast serial
|
||||||
|
UCHAR IsFT1248H; // non-zero if interface is FT1248
|
||||||
|
UCHAR FT1248CpolH; // FT1248 clock polarity - clock idle high (1) or clock idle low (0)
|
||||||
|
UCHAR FT1248LsbH; // FT1248 data is LSB (1) or MSB (0)
|
||||||
|
UCHAR FT1248FlowControlH; // FT1248 flow control enable
|
||||||
|
UCHAR IsVCPH; // non-zero if interface is to use VCP drivers
|
||||||
|
UCHAR PowerSaveEnableH; // non-zero if using ACBUS7 to save power for self-powered designs
|
||||||
|
|
||||||
|
} FT_PROGRAM_DATA, *PFT_PROGRAM_DATA;
|
||||||
|
|
||||||
|
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_ReadEx(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
PFT_PROGRAM_DATA pData,
|
||||||
|
char *Manufacturer,
|
||||||
|
char *ManufacturerId,
|
||||||
|
char *Description,
|
||||||
|
char *SerialNumber
|
||||||
|
);
|
||||||
|
|
||||||
|
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_UARead(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
PUCHAR pucData,
|
||||||
|
DWORD dwDataLen,
|
||||||
|
LPDWORD lpdwBytesRead
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetLatencyTimer(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR ucLatency
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetLatencyTimer(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
PUCHAR pucLatency
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetBitMode(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR ucMask,
|
||||||
|
UCHAR ucEnable
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetBitMode(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
PUCHAR pucMode
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetUSBParameters(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG ulInTransferSize,
|
||||||
|
ULONG ulOutTransferSize
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetDeadmanTimeout(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
ULONG ulDeadmanTimeout
|
||||||
|
);
|
||||||
|
|
||||||
|
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_StopInTask(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_RestartInTask(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_SetResetPipeRetryCount(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD dwCount
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_ResetPort(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_CyclePort(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Win32-type functions
|
||||||
|
//
|
||||||
|
|
||||||
|
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_CloseHandle(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
BOOL WINAPI FT_W32_ReadFile(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPVOID lpBuffer,
|
||||||
|
DWORD nBufferSize,
|
||||||
|
LPDWORD lpBytesReturned,
|
||||||
|
LPOVERLAPPED lpOverlapped
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
BOOL WINAPI FT_W32_WriteFile(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPVOID lpBuffer,
|
||||||
|
DWORD nBufferSize,
|
||||||
|
LPDWORD lpBytesWritten,
|
||||||
|
LPOVERLAPPED lpOverlapped
|
||||||
|
);
|
||||||
|
|
||||||
|
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_CancelIo(
|
||||||
|
FT_HANDLE ftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Win32 COMM API type functions
|
||||||
|
//
|
||||||
|
typedef struct _FTCOMSTAT {
|
||||||
|
DWORD fCtsHold : 1;
|
||||||
|
DWORD fDsrHold : 1;
|
||||||
|
DWORD fRlsdHold : 1;
|
||||||
|
DWORD fXoffHold : 1;
|
||||||
|
DWORD fXoffSent : 1;
|
||||||
|
DWORD fEof : 1;
|
||||||
|
DWORD fTxim : 1;
|
||||||
|
DWORD fReserved : 25;
|
||||||
|
DWORD cbInQue;
|
||||||
|
DWORD cbOutQue;
|
||||||
|
} FTCOMSTAT, *LPFTCOMSTAT;
|
||||||
|
|
||||||
|
typedef struct _FTDCB {
|
||||||
|
DWORD DCBlength; /* sizeof(FTDCB) */
|
||||||
|
DWORD BaudRate; /* Baudrate at which running */
|
||||||
|
DWORD fBinary: 1; /* Binary Mode (skip EOF check) */
|
||||||
|
DWORD fParity: 1; /* Enable parity checking */
|
||||||
|
DWORD fOutxCtsFlow:1; /* CTS handshaking on output */
|
||||||
|
DWORD fOutxDsrFlow:1; /* DSR handshaking on output */
|
||||||
|
DWORD fDtrControl:2; /* DTR Flow control */
|
||||||
|
DWORD fDsrSensitivity:1; /* DSR Sensitivity */
|
||||||
|
DWORD fTXContinueOnXoff: 1; /* Continue TX when Xoff sent */
|
||||||
|
DWORD fOutX: 1; /* Enable output X-ON/X-OFF */
|
||||||
|
DWORD fInX: 1; /* Enable input X-ON/X-OFF */
|
||||||
|
DWORD fErrorChar: 1; /* Enable Err Replacement */
|
||||||
|
DWORD fNull: 1; /* Enable Null stripping */
|
||||||
|
DWORD fRtsControl:2; /* Rts Flow control */
|
||||||
|
DWORD fAbortOnError:1; /* Abort all reads and writes on Error */
|
||||||
|
DWORD fDummy2:17; /* Reserved */
|
||||||
|
WORD wReserved; /* Not currently used */
|
||||||
|
WORD XonLim; /* Transmit X-ON threshold */
|
||||||
|
WORD XoffLim; /* Transmit X-OFF threshold */
|
||||||
|
BYTE ByteSize; /* Number of bits/byte, 4-8 */
|
||||||
|
BYTE Parity; /* 0-4=None,Odd,Even,Mark,Space */
|
||||||
|
BYTE StopBits; /* 0,1,2 = 1, 1.5, 2 */
|
||||||
|
char XonChar; /* Tx and Rx X-ON character */
|
||||||
|
char XoffChar; /* Tx and Rx X-OFF character */
|
||||||
|
char ErrorChar; /* Error replacement char */
|
||||||
|
char EofChar; /* End of Input character */
|
||||||
|
char EvtChar; /* Received Event character */
|
||||||
|
WORD wReserved1; /* Fill for now. */
|
||||||
|
} FTDCB, *LPFTDCB;
|
||||||
|
|
||||||
|
typedef struct _FTTIMEOUTS {
|
||||||
|
DWORD ReadIntervalTimeout; /* Maximum time between read chars. */
|
||||||
|
DWORD ReadTotalTimeoutMultiplier; /* Multiplier of characters. */
|
||||||
|
DWORD ReadTotalTimeoutConstant; /* Constant in milliseconds. */
|
||||||
|
DWORD WriteTotalTimeoutMultiplier; /* Multiplier of characters. */
|
||||||
|
DWORD WriteTotalTimeoutConstant; /* Constant in milliseconds. */
|
||||||
|
} FTTIMEOUTS,*LPFTTIMEOUTS;
|
||||||
|
|
||||||
|
|
||||||
|
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_EscapeCommFunction(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD dwFunc
|
||||||
|
);
|
||||||
|
|
||||||
|
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
|
||||||
|
BOOL WINAPI FT_W32_PurgeComm(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD dwMask
|
||||||
|
);
|
||||||
|
|
||||||
|
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_GetCommMask(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPDWORD lpdwEventMask
|
||||||
|
);
|
||||||
|
|
||||||
|
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
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Device information
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef struct _ft_device_list_info_node {
|
||||||
|
ULONG Flags;
|
||||||
|
ULONG Type;
|
||||||
|
ULONG ID;
|
||||||
|
DWORD LocId;
|
||||||
|
char SerialNumber[16];
|
||||||
|
char Description[64];
|
||||||
|
FT_HANDLE ftHandle;
|
||||||
|
} FT_DEVICE_LIST_INFO_NODE;
|
||||||
|
|
||||||
|
// Device information flags
|
||||||
|
enum {
|
||||||
|
FT_FLAGS_OPENED = 1,
|
||||||
|
FT_FLAGS_HISPEED = 2
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_CreateDeviceInfoList(
|
||||||
|
LPDWORD lpdwNumDevs
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetDeviceInfoList(
|
||||||
|
FT_DEVICE_LIST_INFO_NODE *pDest,
|
||||||
|
LPDWORD lpdwNumDevs
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetDeviceInfoDetail(
|
||||||
|
DWORD dwIndex,
|
||||||
|
LPDWORD lpdwFlags,
|
||||||
|
LPDWORD lpdwType,
|
||||||
|
LPDWORD lpdwID,
|
||||||
|
LPDWORD lpdwLocId,
|
||||||
|
LPVOID lpSerialNumber,
|
||||||
|
LPVOID lpDescription,
|
||||||
|
FT_HANDLE *pftHandle
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Version information
|
||||||
|
//
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetDriverVersion(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPDWORD lpdwVersion
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetLibraryVersion(
|
||||||
|
LPDWORD lpdwVersion
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Rescan(
|
||||||
|
void
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_Reload(
|
||||||
|
WORD wVid,
|
||||||
|
WORD wPid
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetComPortNumber(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
LPLONG lpdwComPortNumber
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// FT232H additional EEPROM functions
|
||||||
|
//
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_EE_ReadConfig(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR ucAddress,
|
||||||
|
PUCHAR pucValue
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_EE_WriteConfig(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR ucAddress,
|
||||||
|
UCHAR ucValue
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_EE_ReadECC(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
UCHAR ucOption,
|
||||||
|
LPWORD lpwValue
|
||||||
|
);
|
||||||
|
|
||||||
|
FTD2XX_API
|
||||||
|
FT_STATUS WINAPI FT_GetQueueStatusEx(
|
||||||
|
FT_HANDLE ftHandle,
|
||||||
|
DWORD *dwRxBytes
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* FTD2XX_H */
|
||||||
|
|
BIN
build/windows/dist/drivers/FTDI USB Drivers/ftdibus.cat
vendored
Executable file → Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/ftdibus.cat
vendored
Executable file → Normal file
Binary file not shown.
153
build/windows/dist/drivers/FTDI USB Drivers/ftdibus.inf
vendored
Normal file
153
build/windows/dist/drivers/FTDI USB Drivers/ftdibus.inf
vendored
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
; FTDIBUS.INF
|
||||||
|
;
|
||||||
|
; Copyright © 2000-2011 Future Technology Devices International Limited
|
||||||
|
;
|
||||||
|
; USB serial converter driver installation file for Windows 2000, XP, Server 2003, Vista, Server 2008,
|
||||||
|
; Windows 7 and Server 2008 R2 (x86 and x64).
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED ``AS IS'' AND ANY EXPRESS
|
||||||
|
; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
; FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED
|
||||||
|
; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||||
|
; THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
; FTDI DRIVERS MAY BE USED ONLY IN CONJUNCTION WITH PRODUCTS BASED ON FTDI PARTS.
|
||||||
|
|
||||||
|
; FTDI DRIVERS MAY BE DISTRIBUTED IN ANY FORM AS LONG AS LICENSE INFORMATION IS NOT MODIFIED.
|
||||||
|
|
||||||
|
; IF A CUSTOM VENDOR ID AND/OR PRODUCT ID OR DESCRIPTION STRING ARE USED, IT IS THE RESPONSIBILITY OF
|
||||||
|
; THE PRODUCT MANUFACTURER TO MAINTAIN ANY CHANGES AND SUBSEQUENT WHQL RE-CERTIFICATION AS A RESULT OF
|
||||||
|
; MAKING THESE CHANGES.
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
[Version]
|
||||||
|
Signature="$Windows NT$"
|
||||||
|
DriverPackageType=PlugAndPlay
|
||||||
|
DriverPackageDisplayName=%DESC%
|
||||||
|
Class=USB
|
||||||
|
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
|
||||||
|
Provider=%FTDI%
|
||||||
|
CatalogFile=ftdibus.cat
|
||||||
|
DriverVer=03/18/2011,2.08.14
|
||||||
|
|
||||||
|
[SourceDisksNames]
|
||||||
|
1=%DriversDisk%,,,
|
||||||
|
|
||||||
|
[SourceDisksFiles]
|
||||||
|
ftdibus.sys = 1,i386
|
||||||
|
ftbusui.dll = 1,i386
|
||||||
|
ftd2xx.dll = 1,i386
|
||||||
|
FTLang.Dll = 1,i386
|
||||||
|
|
||||||
|
[SourceDisksFiles.amd64]
|
||||||
|
ftdibus.sys = 1,amd64
|
||||||
|
ftbusui.dll = 1,amd64
|
||||||
|
ftd2xx64.dll = 1,amd64
|
||||||
|
ftd2xx.dll = 1,i386
|
||||||
|
FTLang.Dll = 1,amd64
|
||||||
|
|
||||||
|
[DestinationDirs]
|
||||||
|
FtdiBus.NT.Copy = 10,system32\drivers
|
||||||
|
FtdiBus.NT.Copy2 = 10,system32
|
||||||
|
FtdiBus.NTamd64.Copy = 10,system32\drivers
|
||||||
|
FtdiBus.NTamd64.Copy2 = 10,system32
|
||||||
|
FtdiBus.NTamd64.Copy3 = 10,syswow64
|
||||||
|
|
||||||
|
|
||||||
|
[Manufacturer]
|
||||||
|
%Ftdi%=FtdiHw,NTamd64
|
||||||
|
|
||||||
|
[FtdiHw]
|
||||||
|
%USB\VID_0403&PID_6001.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6001
|
||||||
|
%USB\VID_0403&PID_6010&MI_00.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6010&MI_00
|
||||||
|
%USB\VID_0403&PID_6010&MI_01.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6010&MI_01
|
||||||
|
%USB\VID_0403&PID_6011&MI_00.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6011&MI_00
|
||||||
|
%USB\VID_0403&PID_6011&MI_01.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6011&MI_01
|
||||||
|
%USB\VID_0403&PID_6011&MI_02.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6011&MI_02
|
||||||
|
%USB\VID_0403&PID_6011&MI_03.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6011&MI_03
|
||||||
|
%USB\VID_0403&PID_6014.DeviceDesc%=FtdiBus.NT,USB\VID_0403&PID_6014
|
||||||
|
|
||||||
|
[FtdiHw.NTamd64]
|
||||||
|
%USB\VID_0403&PID_6001.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6001
|
||||||
|
%USB\VID_0403&PID_6010&MI_00.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6010&MI_00
|
||||||
|
%USB\VID_0403&PID_6010&MI_01.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6010&MI_01
|
||||||
|
%USB\VID_0403&PID_6011&MI_00.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6011&MI_00
|
||||||
|
%USB\VID_0403&PID_6011&MI_01.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6011&MI_01
|
||||||
|
%USB\VID_0403&PID_6011&MI_02.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6011&MI_02
|
||||||
|
%USB\VID_0403&PID_6011&MI_03.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6011&MI_03
|
||||||
|
%USB\VID_0403&PID_6014.DeviceDesc%=FtdiBus.NTamd64,USB\VID_0403&PID_6014
|
||||||
|
|
||||||
|
[ControlFlags]
|
||||||
|
ExcludeFromSelect=*
|
||||||
|
|
||||||
|
[FtdiBus.NT]
|
||||||
|
CopyFiles=FtdiBus.NT.Copy,FtdiBus.NT.Copy2
|
||||||
|
AddReg=FtdiBus.NT.AddReg
|
||||||
|
|
||||||
|
[FtdiBus.NTamd64]
|
||||||
|
CopyFiles=FtdiBus.NTamd64.Copy,FtdiBus.NTamd64.Copy2,FtdiBus.NTamd64.Copy3
|
||||||
|
AddReg=FtdiBus.NT.AddReg
|
||||||
|
|
||||||
|
[FtdiBus.NT.Services]
|
||||||
|
AddService = FTDIBUS, 0x00000002, FtdiBus.NT.AddService
|
||||||
|
|
||||||
|
[FtdiBus.NTamd64.Services]
|
||||||
|
AddService = FTDIBUS, 0x00000002, FtdiBus.NT.AddService
|
||||||
|
|
||||||
|
[FtdiBus.NT.AddService]
|
||||||
|
DisplayName = %SvcDesc%
|
||||||
|
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
||||||
|
StartType = 3 ; SERVICE_DEMAND_START
|
||||||
|
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
||||||
|
ServiceBinary = %10%\system32\drivers\ftdibus.sys
|
||||||
|
LoadOrderGroup = Base
|
||||||
|
AddReg = FtdiBus.NT.AddService.AddReg
|
||||||
|
|
||||||
|
[FtdiBus.NT.AddReg]
|
||||||
|
HKR,,DevLoader,,*ntkern
|
||||||
|
HKR,,NTMPDriver,,ftdibus.sys
|
||||||
|
HKR,,EnumPropPages32,,"ftbusui.dll,FTBUSUIPropPageProvider"
|
||||||
|
|
||||||
|
[FtdiBus.NT.AddService.AddReg]
|
||||||
|
;HKR,Parameters,"LocIds",1,31,00,00,00,32,00,00,00,00
|
||||||
|
;HKR,Parameters,"RetryResetCount",0x10001,50
|
||||||
|
|
||||||
|
|
||||||
|
[FtdiBus.NT.Copy]
|
||||||
|
ftdibus.sys
|
||||||
|
|
||||||
|
[FtdiBus.NT.Copy2]
|
||||||
|
ftbusui.dll
|
||||||
|
ftd2xx.dll
|
||||||
|
FTLang.dll
|
||||||
|
|
||||||
|
[FtdiBus.NTamd64.Copy]
|
||||||
|
ftdibus.sys
|
||||||
|
|
||||||
|
[FtdiBus.NTamd64.Copy2]
|
||||||
|
ftbusui.dll
|
||||||
|
ftd2xx.dll,ftd2xx64.dll
|
||||||
|
FTLang.dll
|
||||||
|
|
||||||
|
[FtdiBus.NTamd64.Copy3]
|
||||||
|
ftd2xx.dll
|
||||||
|
|
||||||
|
[Strings]
|
||||||
|
Ftdi="FTDI"
|
||||||
|
DESC="CDM Driver Package - Bus/D2XX Driver"
|
||||||
|
DriversDisk="FTDI USB Drivers Disk"
|
||||||
|
USB\VID_0403&PID_6001.DeviceDesc="USB Serial Converter"
|
||||||
|
USB\VID_0403&PID_6010&MI_00.DeviceDesc="USB Serial Converter A"
|
||||||
|
USB\VID_0403&PID_6010&MI_01.DeviceDesc="USB Serial Converter B"
|
||||||
|
USB\VID_0403&PID_6011&MI_00.DeviceDesc="USB Serial Converter A"
|
||||||
|
USB\VID_0403&PID_6011&MI_01.DeviceDesc="USB Serial Converter B"
|
||||||
|
USB\VID_0403&PID_6011&MI_02.DeviceDesc="USB Serial Converter C"
|
||||||
|
USB\VID_0403&PID_6011&MI_03.DeviceDesc="USB Serial Converter D"
|
||||||
|
USB\VID_0403&PID_6014.DeviceDesc="USB Serial Converter"
|
||||||
|
SvcDesc="USB Serial Converter Driver"
|
||||||
|
ClassName="USB"
|
BIN
build/windows/dist/drivers/FTDI USB Drivers/ftdiport.cat
vendored
Executable file → Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/ftdiport.cat
vendored
Executable file → Normal file
Binary file not shown.
164
build/windows/dist/drivers/FTDI USB Drivers/ftdiport.inf
vendored
Normal file
164
build/windows/dist/drivers/FTDI USB Drivers/ftdiport.inf
vendored
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
; FTDIPORT.INF
|
||||||
|
;
|
||||||
|
; Copyright © 2000-2011 Future Technology Devices International Limited
|
||||||
|
;
|
||||||
|
; USB serial port driver installation file for Windows 2000, XP, Server 2003, Vista, Server 2008,
|
||||||
|
; Windows 7 and Server 2008 R2 (x86 and x64).
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED ``AS IS'' AND ANY EXPRESS
|
||||||
|
; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
; FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED
|
||||||
|
; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
; BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||||
|
; THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
; FTDI DRIVERS MAY BE USED ONLY IN CONJUNCTION WITH PRODUCTS BASED ON FTDI PARTS.
|
||||||
|
|
||||||
|
; FTDI DRIVERS MAY BE DISTRIBUTED IN ANY FORM AS LONG AS LICENSE INFORMATION IS NOT MODIFIED.
|
||||||
|
|
||||||
|
; IF A CUSTOM VENDOR ID AND/OR PRODUCT ID OR DESCRIPTION STRING ARE USED, IT IS THE RESPONSIBILITY OF
|
||||||
|
; THE PRODUCT MANUFACTURER TO MAINTAIN ANY CHANGES AND SUBSEQUENT WHQL RE-CERTIFICATION AS A RESULT OF
|
||||||
|
; MAKING THESE CHANGES.
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
[Version]
|
||||||
|
Signature="$Windows NT$"
|
||||||
|
DriverPackageType=PlugAndPlay
|
||||||
|
DriverPackageDisplayName=%DESC%
|
||||||
|
Class=Ports
|
||||||
|
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
|
||||||
|
Provider=%FTDI%
|
||||||
|
CatalogFile=ftdiport.cat
|
||||||
|
DriverVer=03/18/2011,2.08.14
|
||||||
|
|
||||||
|
[SourceDisksNames]
|
||||||
|
1=%DriversDisk%,,,
|
||||||
|
|
||||||
|
[SourceDisksFiles]
|
||||||
|
ftser2k.sys=1,i386
|
||||||
|
ftserui2.dll=1,i386
|
||||||
|
ftcserco.dll = 1,i386
|
||||||
|
|
||||||
|
[SourceDisksFiles.amd64]
|
||||||
|
ftser2k.sys=1,amd64
|
||||||
|
ftserui2.dll=1,amd64
|
||||||
|
ftcserco.dll = 1,amd64
|
||||||
|
|
||||||
|
[DestinationDirs]
|
||||||
|
FtdiPort.NT.Copy=10,system32\drivers
|
||||||
|
FtdiPort.NT.CopyUI=10,system32
|
||||||
|
FtdiPort.NT.CopyCoInst=10,system32
|
||||||
|
|
||||||
|
[ControlFlags]
|
||||||
|
ExcludeFromSelect=*
|
||||||
|
|
||||||
|
[Manufacturer]
|
||||||
|
%FTDI%=FtdiHw,NTamd64
|
||||||
|
|
||||||
|
[FtdiHw]
|
||||||
|
%VID_0403&PID_6001.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0403&PID_6001
|
||||||
|
%VID_0403&PID_6010.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0403&PID_6010
|
||||||
|
%VID_0403&PID_6011.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0403&PID_6011
|
||||||
|
%VID_0403&PID_6014.DeviceDesc%=FtdiPort.NT,FTDIBUS\COMPORT&VID_0403&PID_6014
|
||||||
|
|
||||||
|
[FtdiHw.NTamd64]
|
||||||
|
%VID_0403&PID_6001.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0403&PID_6001
|
||||||
|
%VID_0403&PID_6010.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0403&PID_6010
|
||||||
|
%VID_0403&PID_6011.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0403&PID_6011
|
||||||
|
%VID_0403&PID_6014.DeviceDesc%=FtdiPort.NTamd64,FTDIBUS\COMPORT&VID_0403&PID_6014
|
||||||
|
|
||||||
|
[FtdiPort.NT.AddService]
|
||||||
|
DisplayName = %SvcDesc%
|
||||||
|
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
||||||
|
StartType = 3 ; SERVICE_DEMAND_START
|
||||||
|
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
||||||
|
ServiceBinary = %10%\system32\drivers\ftser2k.sys
|
||||||
|
LoadOrderGroup = Base
|
||||||
|
|
||||||
|
|
||||||
|
; -------------- Serenum Driver install section
|
||||||
|
[SerEnum_AddService]
|
||||||
|
DisplayName = %SerEnum.SvcDesc%
|
||||||
|
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
||||||
|
StartType = 3 ; SERVICE_DEMAND_START
|
||||||
|
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
||||||
|
ServiceBinary = %12%\serenum.sys
|
||||||
|
LoadOrderGroup = PNP Filter
|
||||||
|
|
||||||
|
[FtdiPort.NT.AddReg]
|
||||||
|
HKR,,EnumPropPages32,,"ftserui2.dll,SerialPortPropPageProvider"
|
||||||
|
|
||||||
|
[FtdiPort.NT.Copy]
|
||||||
|
ftser2k.sys
|
||||||
|
|
||||||
|
[FtdiPort.NT.CopyUI]
|
||||||
|
ftserui2.dll
|
||||||
|
|
||||||
|
[FtdiPort.NT.CopyCoInst]
|
||||||
|
ftcserco.dll
|
||||||
|
|
||||||
|
[FtdiPort.NT]
|
||||||
|
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
|
||||||
|
AddReg=FtdiPort.NT.AddReg
|
||||||
|
|
||||||
|
[FtdiPort.NTamd64]
|
||||||
|
CopyFiles=FtdiPort.NT.Copy,FtdiPort.NT.CopyUI
|
||||||
|
AddReg=FtdiPort.NT.AddReg
|
||||||
|
|
||||||
|
[FtdiPort.NT.HW]
|
||||||
|
AddReg=FtdiPort.NT.HW.AddReg
|
||||||
|
|
||||||
|
[FtdiPort.NTamd64.HW]
|
||||||
|
AddReg=FtdiPort.NT.HW.AddReg
|
||||||
|
|
||||||
|
|
||||||
|
[FtdiPort.NT.Services]
|
||||||
|
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
|
||||||
|
AddService = Serenum,,SerEnum_AddService
|
||||||
|
DelService = FTSERIAL
|
||||||
|
|
||||||
|
[FtdiPort.NTamd64.Services]
|
||||||
|
AddService = FTSER2K, 0x00000002, FtdiPort.NT.AddService
|
||||||
|
AddService = Serenum,,SerEnum_AddService
|
||||||
|
DelService = FTSERIAL
|
||||||
|
|
||||||
|
|
||||||
|
[FtdiPort.NT.HW.AddReg]
|
||||||
|
HKR,,"UpperFilters",0x00010000,"serenum"
|
||||||
|
HKR,,"ConfigData",1,11,00,3F,3F,10,27,00,00,88,13,00,00,C4,09,00,00,E2,04,00,00,71,02,00,00,38,41,00,00,9C,80,00,00,4E,C0,00,00,34,00,00,00,1A,00,00,00,0D,00,00,00,06,40,00,00,03,80,00,00,00,00,00,00,D0,80,00,00
|
||||||
|
HKR,,"MinReadTimeout",0x00010001,0
|
||||||
|
HKR,,"MinWriteTimeout",0x00010001,0
|
||||||
|
HKR,,"LatencyTimer",0x00010001,16
|
||||||
|
|
||||||
|
|
||||||
|
[FtdiPort.NT.CoInstallers]
|
||||||
|
AddReg=FtdiPort.NT.CoInstallers.AddReg
|
||||||
|
CopyFiles=FtdiPort.NT.CopyCoInst
|
||||||
|
|
||||||
|
[FtdiPort.NTamd64.CoInstallers]
|
||||||
|
AddReg=FtdiPort.NT.CoInstallers.AddReg
|
||||||
|
CopyFiles=FtdiPort.NT.CopyCoInst
|
||||||
|
|
||||||
|
[FtdiPort.NT.CoInstallers.AddReg]
|
||||||
|
HKR,,CoInstallers32,0x00010000,"ftcserco.Dll,FTCSERCoInstaller"
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------------------;
|
||||||
|
|
||||||
|
[Strings]
|
||||||
|
FTDI="FTDI"
|
||||||
|
DESC="CDM Driver Package - VCP Driver"
|
||||||
|
DriversDisk="FTDI USB Drivers Disk"
|
||||||
|
PortsClassName = "Ports (COM & LPT)"
|
||||||
|
VID_0403&PID_6001.DeviceDesc="USB Serial Port"
|
||||||
|
VID_0403&PID_6010.DeviceDesc="USB Serial Port"
|
||||||
|
VID_0403&PID_6011.DeviceDesc="USB Serial Port"
|
||||||
|
VID_0403&PID_6014.DeviceDesc="USB Serial Port"
|
||||||
|
SvcDesc="USB Serial Port Driver"
|
||||||
|
SerEnum.SvcDesc="Serenum Filter Driver"
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftbusui.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftbusui.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftcserco.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftcserco.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftd2xx.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftd2xx.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftd2xx.lib
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftd2xx.lib
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftdibus.sys
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftdibus.sys
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftlang.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftlang.dll
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftser2k.sys
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftser2k.sys
vendored
Normal file
Binary file not shown.
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftserui2.dll
vendored
Normal file
BIN
build/windows/dist/drivers/FTDI USB Drivers/i386/ftserui2.dll
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user