- library_version
- FT_BITMODE_ASYNC_BITBANG
- FT_BITMODE_CBUS_BITBANG
- FT_BITMODE_FAST_SERIAL
- FT_BITMODE_MCU_HOST
- FT_BITMODE_MPSSE
- FT_BITMODE_RESET
- FT_BITMODE_SYNC_BITBANG
- FT_BITMODE_SYNC_FIFO
- FT_BITS_7
- FT_BITS_8
- FT_FLOW_DTR_DSR
- FT_FLOW_NONE
- FT_FLOW_RTS_CTS
- FT_FLOW_XON_XOFF
- FT_PARITY_EVEN
- FT_PARITY_MARK
- FT_PARITY_NONE
- FT_PARITY_ODD
- FT_PARITY_SPACE
- FT_PURGE_RX
- FT_PURGE_TX
- FT_STOP_BITS_1
- FT_STOP_BITS_2
• Const
library_version: string
Current D2XX library version number
readonly
▸ getDeviceInfoList(): Promise
<FTDI_DeviceInfo
[]>
Get the list of FTDI devices connected to the system
Promise
<FTDI_DeviceInfo
[]>
▸ openDevice(identifier
): Promise
<FTDI_Device
>
Try to open a device
Name | Type | Description |
---|---|---|
identifier |
string | { description? : string ; serial_number? : string ; usb_loc_id? : number } |
Device serial number (string), or an object containing either its serial_number (string), its usb_loc_id (number) or its description (string) property |
Promise
<FTDI_Device
>
Device object
▸ setVIDPID(vid
, pid
): Promise
<void
>
This allows the driver to load only for the specified VID and PID combination.
IMPORTANT: On Windows platforms, this function forces a reload of the driver. Please note that this function will not work correctly on 64-bit Windows when called from a 32-bit application.
Name | Type | Description |
---|---|---|
vid |
number |
Device Vendor ID (VID) |
pid |
number |
Device Product ID (PID) |
Promise
<void
>