Skip to content

Latest commit

 

History

History
105 lines (69 loc) · 2.25 KB

Home.md

File metadata and controls

105 lines (69 loc) · 2.25 KB

ftdi-d2xx

Table of contents

Classes

Variables

  • 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

Functions

Variables

library_version

Const library_version: string

Current D2XX library version number

readonly

Functions

getDeviceInfoList

getDeviceInfoList(): Promise<FTDI_DeviceInfo[]>

Get the list of FTDI devices connected to the system

Returns

Promise<FTDI_DeviceInfo[]>


openDevice

openDevice(identifier): Promise<FTDI_Device>

Try to open a device

Parameters

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

Returns

Promise<FTDI_Device>

Device object


setVIDPID

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.

Parameters

Name Type Description
vid number Device Vendor ID (VID)
pid number Device Product ID (PID)

Returns

Promise<void>