|
enum | ftdi_chip_type {
TYPE_AM =0,
TYPE_BM =1,
TYPE_2232C =2,
TYPE_R =3,
TYPE_2232H =4,
TYPE_4232H =5,
TYPE_232H =6,
TYPE_230X =7
} |
|
enum | ftdi_parity_type {
NONE =0,
ODD =1,
EVEN =2,
MARK =3,
SPACE =4
} |
|
enum | ftdi_stopbits_type { STOP_BIT_1 =0,
STOP_BIT_15 =1,
STOP_BIT_2 =2
} |
|
enum | ftdi_bits_type { BITS_7 =7,
BITS_8 =8
} |
|
enum | ftdi_break_type { BREAK_OFF =0,
BREAK_ON =1
} |
|
enum | ftdi_mpsse_mode {
BITMODE_RESET = 0x00,
BITMODE_BITBANG = 0x01,
BITMODE_MPSSE = 0x02,
BITMODE_SYNCBB = 0x04,
BITMODE_MCU = 0x08,
BITMODE_OPTO = 0x10,
BITMODE_CBUS = 0x20,
BITMODE_SYNCFF = 0x40,
BITMODE_FT1284 = 0x80
} |
|
enum | ftdi_interface {
INTERFACE_ANY = 0,
INTERFACE_A = 1,
INTERFACE_B = 2,
INTERFACE_C = 3,
INTERFACE_D = 4
} |
|
enum | ftdi_module_detach_mode { AUTO_DETACH_SIO_MODULE = 0,
DONT_DETACH_SIO_MODULE = 1
} |
|
enum | ftdi_eeprom_value {
VENDOR_ID = 0,
PRODUCT_ID = 1,
SELF_POWERED = 2,
REMOTE_WAKEUP = 3,
IS_NOT_PNP = 4,
SUSPEND_DBUS7 = 5,
IN_IS_ISOCHRONOUS = 6,
OUT_IS_ISOCHRONOUS = 7,
SUSPEND_PULL_DOWNS = 8,
USE_SERIAL = 9,
USB_VERSION = 10,
USE_USB_VERSION = 11,
MAX_POWER = 12,
CHANNEL_A_TYPE = 13,
CHANNEL_B_TYPE = 14,
CHANNEL_A_DRIVER = 15,
CHANNEL_B_DRIVER = 16,
CBUS_FUNCTION_0 = 17,
CBUS_FUNCTION_1 = 18,
CBUS_FUNCTION_2 = 19,
CBUS_FUNCTION_3 = 20,
CBUS_FUNCTION_4 = 21,
CBUS_FUNCTION_5 = 22,
CBUS_FUNCTION_6 = 23,
CBUS_FUNCTION_7 = 24,
CBUS_FUNCTION_8 = 25,
CBUS_FUNCTION_9 = 26,
HIGH_CURRENT = 27,
HIGH_CURRENT_A = 28,
HIGH_CURRENT_B = 29,
INVERT = 30,
GROUP0_DRIVE = 31,
GROUP0_SCHMITT = 32,
GROUP0_SLEW = 33,
GROUP1_DRIVE = 34,
GROUP1_SCHMITT = 35,
GROUP1_SLEW = 36,
GROUP2_DRIVE = 37,
GROUP2_SCHMITT = 38,
GROUP2_SLEW = 39,
GROUP3_DRIVE = 40,
GROUP3_SCHMITT = 41,
GROUP3_SLEW = 42,
CHIP_SIZE = 43,
CHIP_TYPE = 44,
POWER_SAVE = 45,
CLOCK_POLARITY = 46,
DATA_ORDER = 47,
FLOW_CONTROL = 48,
CHANNEL_C_DRIVER = 49,
CHANNEL_D_DRIVER = 50,
CHANNEL_A_RS485 = 51,
CHANNEL_B_RS485 = 52,
CHANNEL_C_RS485 = 53,
CHANNEL_D_RS485 = 54,
RELEASE_NUMBER = 55,
EXTERNAL_OSCILLATOR = 56,
USER_DATA_ADDR = 57
} |
|
enum | ftdi_cbus_func {
CBUS_TXDEN = 0,
CBUS_PWREN = 1,
CBUS_RXLED = 2,
CBUS_TXLED = 3,
CBUS_TXRXLED = 4,
CBUS_SLEEP = 5,
CBUS_CLK48 = 6,
CBUS_CLK24 = 7,
CBUS_CLK12 = 8,
CBUS_CLK6 = 9,
CBUS_IOMODE = 0xa,
CBUS_BB_WR = 0xb,
CBUS_BB_RD = 0xc
} |
|
enum | ftdi_cbush_func {
CBUSH_TRISTATE = 0,
CBUSH_TXLED = 1,
CBUSH_RXLED = 2,
CBUSH_TXRXLED = 3,
CBUSH_PWREN = 4,
CBUSH_SLEEP = 5,
CBUSH_DRIVE_0 = 6,
CBUSH_DRIVE1 = 7,
CBUSH_IOMODE = 8,
CBUSH_TXDEN = 9,
CBUSH_CLK30 = 10,
CBUSH_CLK15 = 11,
CBUSH_CLK7_5 = 12
} |
|
enum | ftdi_cbusx_func {
CBUSX_TRISTATE = 0,
CBUSX_TXLED = 1,
CBUSX_RXLED = 2,
CBUSX_TXRXLED = 3,
CBUSX_PWREN = 4,
CBUSX_SLEEP = 5,
CBUSX_DRIVE_0 = 6,
CBUSX_DRIVE1 = 7,
CBUSX_IOMODE = 8,
CBUSX_TXDEN = 9,
CBUSX_CLK24 = 10,
CBUSX_CLK12 = 11,
CBUSX_CLK6 = 12,
CBUSX_BAT_DETECT = 13,
CBUSX_BAT_DETECT_NEG = 14,
CBUSX_I2C_TXE = 15,
CBUSX_I2C_RXF = 16,
CBUSX_VBUS_SENSE = 17,
CBUSX_BB_WR = 18,
CBUSX_BB_RD = 19,
CBUSX_TIME_STAMP = 20,
CBUSX_AWAKE = 21
} |
|
|
int | ftdi_init (struct ftdi_context *ftdi) |
|
struct ftdi_context * | ftdi_new (void) |
|
int | ftdi_set_interface (struct ftdi_context *ftdi, enum ftdi_interface interface) |
|
void | ftdi_deinit (struct ftdi_context *ftdi) |
|
void | ftdi_free (struct ftdi_context *ftdi) |
|
void | ftdi_set_usbdev (struct ftdi_context *ftdi, struct libusb_device_handle *usbdev) |
|
struct ftdi_version_info | ftdi_get_library_version (void) |
| Get libftdi library version. More...
|
|
int | ftdi_usb_find_all (struct ftdi_context *ftdi, struct ftdi_device_list **devlist, int vendor, int product) |
|
void | ftdi_list_free (struct ftdi_device_list **devlist) |
|
void | ftdi_list_free2 (struct ftdi_device_list *devlist) |
|
int | ftdi_usb_get_strings (struct ftdi_context *ftdi, struct libusb_device *dev, char *manufacturer, int mnf_len, char *description, int desc_len, char *serial, int serial_len) |
|
int | ftdi_usb_get_strings2 (struct ftdi_context *ftdi, struct libusb_device *dev, char *manufacturer, int mnf_len, char *description, int desc_len, char *serial, int serial_len) |
|
int | ftdi_eeprom_get_strings (struct ftdi_context *ftdi, char *manufacturer, int mnf_len, char *product, int prod_len, char *serial, int serial_len) |
|
int | ftdi_eeprom_set_strings (struct ftdi_context *ftdi, char *manufacturer, char *product, char *serial) |
|
int | ftdi_usb_open (struct ftdi_context *ftdi, int vendor, int product) |
|
int | ftdi_usb_open_desc (struct ftdi_context *ftdi, int vendor, int product, const char *description, const char *serial) |
|
int | ftdi_usb_open_desc_index (struct ftdi_context *ftdi, int vendor, int product, const char *description, const char *serial, unsigned int index) |
|
int | ftdi_usb_open_bus_addr (struct ftdi_context *ftdi, uint8_t bus, uint8_t addr) |
|
int | ftdi_usb_open_dev (struct ftdi_context *ftdi, struct libusb_device *dev) |
|
int | ftdi_usb_open_string (struct ftdi_context *ftdi, const char *description) |
|
int | ftdi_usb_close (struct ftdi_context *ftdi) |
|
int | ftdi_usb_reset (struct ftdi_context *ftdi) |
|
int | ftdi_usb_purge_rx_buffer (struct ftdi_context *ftdi) |
|
int | ftdi_usb_purge_tx_buffer (struct ftdi_context *ftdi) |
|
int | ftdi_usb_purge_buffers (struct ftdi_context *ftdi) |
|
int | ftdi_set_baudrate (struct ftdi_context *ftdi, int baudrate) |
|
int | ftdi_set_line_property (struct ftdi_context *ftdi, enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity) |
|
int | ftdi_set_line_property2 (struct ftdi_context *ftdi, enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity, enum ftdi_break_type break_type) |
|
int | ftdi_read_data (struct ftdi_context *ftdi, unsigned char *buf, int size) |
|
int | ftdi_read_data_set_chunksize (struct ftdi_context *ftdi, unsigned int chunksize) |
|
int | ftdi_read_data_get_chunksize (struct ftdi_context *ftdi, unsigned int *chunksize) |
|
int | ftdi_write_data (struct ftdi_context *ftdi, const unsigned char *buf, int size) |
|
int | ftdi_write_data_set_chunksize (struct ftdi_context *ftdi, unsigned int chunksize) |
|
int | ftdi_write_data_get_chunksize (struct ftdi_context *ftdi, unsigned int *chunksize) |
|
int | ftdi_readstream (struct ftdi_context *ftdi, FTDIStreamCallback *callback, void *userdata, int packetsPerTransfer, int numTransfers) |
|
struct ftdi_transfer_control * | ftdi_write_data_submit (struct ftdi_context *ftdi, unsigned char *buf, int size) |
|
struct ftdi_transfer_control * | ftdi_read_data_submit (struct ftdi_context *ftdi, unsigned char *buf, int size) |
|
int | ftdi_transfer_data_done (struct ftdi_transfer_control *tc) |
|
void | ftdi_transfer_data_cancel (struct ftdi_transfer_control *tc, struct timeval *to) |
|
int | ftdi_set_bitmode (struct ftdi_context *ftdi, unsigned char bitmask, unsigned char mode) |
|
int | ftdi_disable_bitbang (struct ftdi_context *ftdi) |
|
int | ftdi_read_pins (struct ftdi_context *ftdi, unsigned char *pins) |
|
int | ftdi_set_latency_timer (struct ftdi_context *ftdi, unsigned char latency) |
|
int | ftdi_get_latency_timer (struct ftdi_context *ftdi, unsigned char *latency) |
|
int | ftdi_poll_modem_status (struct ftdi_context *ftdi, unsigned short *status) |
|
int | ftdi_setflowctrl (struct ftdi_context *ftdi, int flowctrl) |
|
int | ftdi_setdtr_rts (struct ftdi_context *ftdi, int dtr, int rts) |
|
int | ftdi_setdtr (struct ftdi_context *ftdi, int state) |
|
int | ftdi_setrts (struct ftdi_context *ftdi, int state) |
|
int | ftdi_set_event_char (struct ftdi_context *ftdi, unsigned char eventch, unsigned char enable) |
|
int | ftdi_set_error_char (struct ftdi_context *ftdi, unsigned char errorch, unsigned char enable) |
|
int | ftdi_eeprom_initdefaults (struct ftdi_context *ftdi, char *manufacturer, char *product, char *serial) |
|
int | ftdi_eeprom_build (struct ftdi_context *ftdi) |
|
int | ftdi_eeprom_decode (struct ftdi_context *ftdi, int verbose) |
|
int | ftdi_get_eeprom_value (struct ftdi_context *ftdi, enum ftdi_eeprom_value value_name, int *value) |
|
int | ftdi_set_eeprom_value (struct ftdi_context *ftdi, enum ftdi_eeprom_value value_name, int value) |
|
int | ftdi_get_eeprom_buf (struct ftdi_context *ftdi, unsigned char *buf, int size) |
|
int | ftdi_set_eeprom_buf (struct ftdi_context *ftdi, const unsigned char *buf, int size) |
|
int | ftdi_set_eeprom_user_data (struct ftdi_context *ftdi, const char *buf, int size) |
|
int | ftdi_read_eeprom (struct ftdi_context *ftdi) |
|
int | ftdi_read_chipid (struct ftdi_context *ftdi, unsigned int *chipid) |
|
int | ftdi_write_eeprom (struct ftdi_context *ftdi) |
|
int | ftdi_erase_eeprom (struct ftdi_context *ftdi) |
|
int | ftdi_read_eeprom_location (struct ftdi_context *ftdi, int eeprom_addr, unsigned short *eeprom_val) |
|
int | ftdi_write_eeprom_location (struct ftdi_context *ftdi, int eeprom_addr, unsigned short eeprom_val) |
|
const char * | ftdi_get_error_string (struct ftdi_context *ftdi) |
|