libftdi 0.19
ftdi.h
Go to the documentation of this file.
1/***************************************************************************
2 ftdi.h - description
3 -------------------
4 begin : Fri Apr 4 2003
5 copyright : (C) 2003 by Intra2net AG
6 email : opensource@intra2net.com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU Lesser General Public License *
13 * version 2.1 as published by the Free Software Foundation; *
14 * *
15 ***************************************************************************/
16
17#ifndef __libftdi_h__
18#define __libftdi_h__
19
20#include <usb.h>
21
22#define FTDI_DEFAULT_EEPROM_SIZE 128
23
27enum ftdi_parity_type { NONE=0, ODD=1, EVEN=2, MARK=3, SPACE=4 };
34
37{
42 BITMODE_MCU = 0x08,
43 /* CPU-style fifo mode gets set via EEPROM */
44 BITMODE_OPTO = 0x10,
45 BITMODE_CBUS = 0x20,
47};
48
58
65
66/* Shifting commands IN MPSSE Mode*/
67#define MPSSE_WRITE_NEG 0x01 /* Write TDI/DO on negative TCK/SK edge*/
68#define MPSSE_BITMODE 0x02 /* Write bits, not bytes */
69#define MPSSE_READ_NEG 0x04 /* Sample TDO/DI on negative TCK/SK edge */
70#define MPSSE_LSB 0x08 /* LSB first */
71#define MPSSE_DO_WRITE 0x10 /* Write TDI/DO */
72#define MPSSE_DO_READ 0x20 /* Read TDO/DI */
73#define MPSSE_WRITE_TMS 0x40 /* Write TMS/CS */
74
75/* FTDI MPSSE commands */
76#define SET_BITS_LOW 0x80
77/*BYTE DATA*/
78/*BYTE Direction*/
79#define SET_BITS_HIGH 0x82
80/*BYTE DATA*/
81/*BYTE Direction*/
82#define GET_BITS_LOW 0x81
83#define GET_BITS_HIGH 0x83
84#define LOOPBACK_START 0x84
85#define LOOPBACK_END 0x85
86#define TCK_DIVISOR 0x86
87/* Value Low */
88/* Value HIGH */ /*rate is 12000000/((1+value)*2) */
89#define DIV_VALUE(rate) (rate > 6000000)?0:((6000000/rate -1) > 0xffff)? 0xffff: (6000000/rate -1)
90
91/* Commands in MPSSE and Host Emulation Mode */
92#define SEND_IMMEDIATE 0x87
93#define WAIT_ON_HIGH 0x88
94#define WAIT_ON_LOW 0x89
95
96/* Commands in Host Emulation Mode */
97#define READ_SHORT 0x90
98/* Address_Low */
99#define READ_EXTENDED 0x91
100/* Address High */
101/* Address Low */
102#define WRITE_SHORT 0x92
103/* Address_Low */
104#define WRITE_EXTENDED 0x93
105/* Address High */
106/* Address Low */
107
108/* Definitions for flow control */
109#define SIO_RESET 0 /* Reset the port */
110#define SIO_MODEM_CTRL 1 /* Set the modem control register */
111#define SIO_SET_FLOW_CTRL 2 /* Set flow control register */
112#define SIO_SET_BAUD_RATE 3 /* Set baud rate */
113#define SIO_SET_DATA 4 /* Set the data characteristics of the port */
114
115#define FTDI_DEVICE_OUT_REQTYPE (USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT)
116#define FTDI_DEVICE_IN_REQTYPE (USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN)
117
118/* Requests */
119#define SIO_RESET_REQUEST SIO_RESET
120#define SIO_SET_BAUDRATE_REQUEST SIO_SET_BAUD_RATE
121#define SIO_SET_DATA_REQUEST SIO_SET_DATA
122#define SIO_SET_FLOW_CTRL_REQUEST SIO_SET_FLOW_CTRL
123#define SIO_SET_MODEM_CTRL_REQUEST SIO_MODEM_CTRL
124#define SIO_POLL_MODEM_STATUS_REQUEST 0x05
125#define SIO_SET_EVENT_CHAR_REQUEST 0x06
126#define SIO_SET_ERROR_CHAR_REQUEST 0x07
127#define SIO_SET_LATENCY_TIMER_REQUEST 0x09
128#define SIO_GET_LATENCY_TIMER_REQUEST 0x0A
129#define SIO_SET_BITMODE_REQUEST 0x0B
130#define SIO_READ_PINS_REQUEST 0x0C
131#define SIO_READ_EEPROM_REQUEST 0x90
132#define SIO_WRITE_EEPROM_REQUEST 0x91
133#define SIO_ERASE_EEPROM_REQUEST 0x92
134
135
136#define SIO_RESET_SIO 0
137#define SIO_RESET_PURGE_RX 1
138#define SIO_RESET_PURGE_TX 2
139
140#define SIO_DISABLE_FLOW_CTRL 0x0
141#define SIO_RTS_CTS_HS (0x1 << 8)
142#define SIO_DTR_DSR_HS (0x2 << 8)
143#define SIO_XON_XOFF_HS (0x4 << 8)
144
145#define SIO_SET_DTR_MASK 0x1
146#define SIO_SET_DTR_HIGH ( 1 | ( SIO_SET_DTR_MASK << 8))
147#define SIO_SET_DTR_LOW ( 0 | ( SIO_SET_DTR_MASK << 8))
148#define SIO_SET_RTS_MASK 0x2
149#define SIO_SET_RTS_HIGH ( 2 | ( SIO_SET_RTS_MASK << 8 ))
150#define SIO_SET_RTS_LOW ( 0 | ( SIO_SET_RTS_MASK << 8 ))
151
152#define SIO_RTS_CTS_HS (0x1 << 8)
153
154/* marker for unused usb urb structures
155 (taken from libusb) */
156#define FTDI_URB_USERCONTEXT_COOKIE ((void *)0x1)
157
158#ifdef __GNUC__
159 #define DEPRECATED(func) func __attribute__ ((deprecated))
160#elif defined(_MSC_VER)
161 #define DEPRECATED(func) __declspec(deprecated) func
162#else
163 #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
164 #define DEPRECATED(func) func
165#endif
166
167
174{
175 /* USB specific */
182
183 /* FTDI specific */
189 unsigned char bitbang_enabled;
191 unsigned char *readbuffer;
193 unsigned int readbuffer_offset;
201 unsigned int max_packet_size;
202
203 /* FTDI FT2232C requirecments */
205 int interface; /* 0 or 1 */
207 int index; /* 1 or 2 */
208 /* Endpoints */
210 int in_ep;
211 int out_ep; /* 1 or 2 */
212
214 unsigned char bitbang_mode;
215
218
221
226
229};
230
235{
239 struct usb_device *dev;
240};
241
242
244#define CBUS_TXDEN 0
246#define CBUS_PWREN 1
248#define CBUS_RXLED 2
250#define CBUS_TXLED 3
252#define CBUS_TXRXLED 4
254#define CBUS_SLEEP 5
256#define CBUS_CLK48 6
258#define CBUS_CLK24 7
260#define CBUS_CLK12 8
262#define CBUS_CLK6 9
264#define CBUS_IOMODE 10
266#define CBUS_BB_WR 11
268#define CBUS_BB_RD 12
269
270
272#define INVERT_TXD 0x01
274#define INVERT_RXD 0x02
276#define INVERT_RTS 0x04
278#define INVERT_CTS 0x08
280#define INVERT_DTR 0x10
282#define INVERT_DSR 0x20
284#define INVERT_DCD 0x40
286#define INVERT_RI 0x80
287
289#define HIGH_CURRENT_DRIVE 0x04
290
295{
300
307
314
323
327 char *product;
329 char *serial;
330
331 /* Special function of FT232R devices (and possibly others as well) */
338
341 int size;
342};
343
344#ifdef __cplusplus
345extern "C"
346{
347#endif
348
349 int ftdi_init(struct ftdi_context *ftdi);
350 struct ftdi_context *ftdi_new(void);
352
353 void ftdi_deinit(struct ftdi_context *ftdi);
354 void ftdi_free(struct ftdi_context *ftdi);
355 void ftdi_set_usbdev (struct ftdi_context *ftdi, usb_dev_handle *usbdev);
356
357 int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devlist,
358 int vendor, int product);
359 void ftdi_list_free(struct ftdi_device_list **devlist);
360 void ftdi_list_free2(struct ftdi_device_list *devlist);
361 int ftdi_usb_get_strings(struct ftdi_context *ftdi, struct usb_device *dev,
362 char * manufacturer, int mnf_len,
363 char * description, int desc_len,
364 char * serial, int serial_len);
365
366 int ftdi_usb_open(struct ftdi_context *ftdi, int vendor, int product);
367 int ftdi_usb_open_desc(struct ftdi_context *ftdi, int vendor, int product,
368 const char* description, const char* serial);
369 int ftdi_usb_open_desc_index(struct ftdi_context *ftdi, int vendor, int product,
370 const char* description, const char* serial, unsigned int index);
371 int ftdi_usb_open_dev(struct ftdi_context *ftdi, struct usb_device *dev);
372 int ftdi_usb_open_string(struct ftdi_context *ftdi, const char* description);
373
374 int ftdi_usb_close(struct ftdi_context *ftdi);
375 int ftdi_usb_reset(struct ftdi_context *ftdi);
376 int ftdi_usb_purge_rx_buffer(struct ftdi_context *ftdi);
377 int ftdi_usb_purge_tx_buffer(struct ftdi_context *ftdi);
378 int ftdi_usb_purge_buffers(struct ftdi_context *ftdi);
379
380 int ftdi_set_baudrate(struct ftdi_context *ftdi, int baudrate);
381 int ftdi_set_line_property(struct ftdi_context *ftdi, enum ftdi_bits_type bits,
382 enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity);
383 int ftdi_set_line_property2(struct ftdi_context *ftdi, enum ftdi_bits_type bits,
384 enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity,
385 enum ftdi_break_type break_type);
386
387 int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size);
388 int ftdi_read_data_set_chunksize(struct ftdi_context *ftdi, unsigned int chunksize);
389 int ftdi_read_data_get_chunksize(struct ftdi_context *ftdi, unsigned int *chunksize);
390
391 int ftdi_write_data(struct ftdi_context *ftdi, unsigned char *buf, int size);
392 int ftdi_write_data_set_chunksize(struct ftdi_context *ftdi, unsigned int chunksize);
393 int ftdi_write_data_get_chunksize(struct ftdi_context *ftdi, unsigned int *chunksize);
394
395 int ftdi_write_data_async(struct ftdi_context *ftdi, unsigned char *buf, int size);
396 void ftdi_async_complete(struct ftdi_context *ftdi, int wait_for_more);
397
398 int DEPRECATED(ftdi_enable_bitbang(struct ftdi_context *ftdi, unsigned char bitmask));
399 int ftdi_disable_bitbang(struct ftdi_context *ftdi);
400 int ftdi_set_bitmode(struct ftdi_context *ftdi, unsigned char bitmask, unsigned char mode);
401 int ftdi_read_pins(struct ftdi_context *ftdi, unsigned char *pins);
402
403 int ftdi_set_latency_timer(struct ftdi_context *ftdi, unsigned char latency);
404 int ftdi_get_latency_timer(struct ftdi_context *ftdi, unsigned char *latency);
405
406 int ftdi_poll_modem_status(struct ftdi_context *ftdi, unsigned short *status);
407
408 /* flow control */
409 int ftdi_setflowctrl(struct ftdi_context *ftdi, int flowctrl);
410 int ftdi_setdtr_rts(struct ftdi_context *ftdi, int dtr, int rts);
411 int ftdi_setdtr(struct ftdi_context *ftdi, int state);
412 int ftdi_setrts(struct ftdi_context *ftdi, int state);
413
414 int ftdi_set_event_char(struct ftdi_context *ftdi, unsigned char eventch, unsigned char enable);
415 int ftdi_set_error_char(struct ftdi_context *ftdi, unsigned char errorch, unsigned char enable);
416
417 /* set eeprom size */
418 void ftdi_eeprom_setsize(struct ftdi_context *ftdi, struct ftdi_eeprom *eeprom, int size);
419
420 /* init and build eeprom from ftdi_eeprom structure */
421 void ftdi_eeprom_initdefaults(struct ftdi_eeprom *eeprom);
422 void ftdi_eeprom_free(struct ftdi_eeprom *eeprom);
423 int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output);
424 int ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *output, int size);
425
426 /* "eeprom" needs to be valid 128 byte eeprom (generated by the eeprom generator)
427 the checksum of the eeprom is valided */
428 int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom);
429 int ftdi_read_chipid(struct ftdi_context *ftdi, unsigned int *chipid);
430 int ftdi_read_eeprom_getsize(struct ftdi_context *ftdi, unsigned char *eeprom, int maxsize);
431 int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom);
432 int ftdi_erase_eeprom(struct ftdi_context *ftdi);
433
434 int ftdi_read_eeprom_location (struct ftdi_context *ftdi, int eeprom_addr, unsigned short *eeprom_val);
435 int ftdi_write_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, unsigned short eeprom_val);
436
437 char *ftdi_get_error_string(struct ftdi_context *ftdi);
438
439#ifdef __cplusplus
440}
441#endif
442
443#endif /* __libftdi_h__ */
int ftdi_enable_bitbang(struct ftdi_context *ftdi, unsigned char bitmask)
Definition ftdi.c:1712
ftdi_chip_type
Definition ftdi.h:25
@ TYPE_2232H
Definition ftdi.h:25
@ TYPE_BM
Definition ftdi.h:25
@ TYPE_R
Definition ftdi.h:25
@ TYPE_2232C
Definition ftdi.h:25
@ TYPE_4232H
Definition ftdi.h:25
@ TYPE_AM
Definition ftdi.h:25
int ftdi_set_line_property(struct ftdi_context *ftdi, enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity)
Definition ftdi.c:1145
void ftdi_set_usbdev(struct ftdi_context *ftdi, usb_dev_handle *usbdev)
Definition ftdi.c:242
int ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *output, int size)
Definition ftdi.c:2413
int ftdi_usb_purge_tx_buffer(struct ftdi_context *ftdi)
Definition ftdi.c:887
int ftdi_init(struct ftdi_context *ftdi)
Definition ftdi.c:85
ftdi_mpsse_mode
Definition ftdi.h:37
@ BITMODE_MCU
Definition ftdi.h:42
@ BITMODE_SYNCBB
Definition ftdi.h:41
@ BITMODE_CBUS
Definition ftdi.h:45
@ BITMODE_SYNCFF
Definition ftdi.h:46
@ BITMODE_RESET
Definition ftdi.h:38
@ BITMODE_BITBANG
Definition ftdi.h:39
@ BITMODE_OPTO
Definition ftdi.h:44
@ BITMODE_MPSSE
Definition ftdi.h:40
int ftdi_usb_purge_rx_buffer(struct ftdi_context *ftdi)
Definition ftdi.c:861
int ftdi_erase_eeprom(struct ftdi_context *ftdi)
Definition ftdi.c:2797
int ftdi_usb_reset(struct ftdi_context *ftdi)
Definition ftdi.c:835
int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devlist, int vendor, int product)
Definition ftdi.c:265
int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom)
Definition ftdi.c:2757
char * ftdi_get_error_string(struct ftdi_context *ftdi)
Definition ftdi.c:2815
int ftdi_usb_purge_buffers(struct ftdi_context *ftdi)
Definition ftdi.c:910
void ftdi_eeprom_initdefaults(struct ftdi_eeprom *eeprom)
Definition ftdi.c:2114
void ftdi_list_free(struct ftdi_device_list **devlist)
Definition ftdi.c:308
int ftdi_poll_modem_status(struct ftdi_context *ftdi, unsigned short *status)
Definition ftdi.c:1899
ftdi_stopbits_type
Definition ftdi.h:29
@ STOP_BIT_1
Definition ftdi.h:29
@ STOP_BIT_2
Definition ftdi.h:29
@ STOP_BIT_15
Definition ftdi.h:29
int ftdi_usb_open_desc_index(struct ftdi_context *ftdi, int vendor, int product, const char *description, const char *serial, unsigned int index)
Definition ftdi.c:636
void ftdi_free(struct ftdi_context *ftdi)
Definition ftdi.c:230
int ftdi_set_latency_timer(struct ftdi_context *ftdi, unsigned char latency)
Definition ftdi.c:1818
int ftdi_disable_bitbang(struct ftdi_context *ftdi)
Definition ftdi.c:1741
int ftdi_setdtr(struct ftdi_context *ftdi, int state)
Definition ftdi.c:1948
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)
Definition ftdi.c:1164
int ftdi_setrts(struct ftdi_context *ftdi, int state)
Definition ftdi.c:1978
int ftdi_write_data_get_chunksize(struct ftdi_context *ftdi, unsigned int *chunksize)
Definition ftdi.c:1510
int ftdi_setdtr_rts(struct ftdi_context *ftdi, int dtr, int rts)
Definition ftdi.c:2009
int ftdi_write_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, unsigned short eeprom_val)
Definition ftdi.c:2734
int ftdi_read_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, unsigned short *eeprom_val)
Definition ftdi.c:2598
int ftdi_read_data_set_chunksize(struct ftdi_context *ftdi, unsigned int chunksize)
Definition ftdi.c:1660
int ftdi_set_interface(struct ftdi_context *ftdi, enum ftdi_interface interface)
Definition ftdi.c:165
int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output)
Definition ftdi.c:2189
int ftdi_set_event_char(struct ftdi_context *ftdi, unsigned char eventch, unsigned char enable)
Definition ftdi.c:2045
void ftdi_deinit(struct ftdi_context *ftdi)
Definition ftdi.c:205
int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size)
Definition ftdi.c:1535
void ftdi_async_complete(struct ftdi_context *ftdi, int wait_for_more)
Definition ftdi.c:1362
ftdi_bits_type
Definition ftdi.h:31
@ BITS_7
Definition ftdi.h:31
@ BITS_8
Definition ftdi.h:31
int ftdi_set_bitmode(struct ftdi_context *ftdi, unsigned char bitmask, unsigned char mode)
Definition ftdi.c:1765
int ftdi_write_data_set_chunksize(struct ftdi_context *ftdi, unsigned int chunksize)
Definition ftdi.c:1492
int ftdi_usb_open_desc(struct ftdi_context *ftdi, int vendor, int product, const char *description, const char *serial)
Definition ftdi.c:606
int ftdi_usb_close(struct ftdi_context *ftdi)
Definition ftdi.c:940
int ftdi_usb_open(struct ftdi_context *ftdi, int vendor, int product)
Definition ftdi.c:579
ftdi_interface
Definition ftdi.h:51
@ INTERFACE_C
Definition ftdi.h:55
@ INTERFACE_D
Definition ftdi.h:56
@ INTERFACE_B
Definition ftdi.h:54
@ INTERFACE_ANY
Definition ftdi.h:52
@ INTERFACE_A
Definition ftdi.h:53
int ftdi_usb_open_dev(struct ftdi_context *ftdi, struct usb_device *dev)
Definition ftdi.c:457
void ftdi_list_free2(struct ftdi_device_list *devlist)
Definition ftdi.c:327
int ftdi_write_data(struct ftdi_context *ftdi, unsigned char *buf, int size)
Definition ftdi.c:1234
int ftdi_usb_open_string(struct ftdi_context *ftdi, const char *description)
Definition ftdi.c:737
void ftdi_eeprom_free(struct ftdi_eeprom *eeprom)
Definition ftdi.c:2155
#define DEPRECATED(func)
Definition ftdi.h:164
ftdi_parity_type
Definition ftdi.h:27
@ EVEN
Definition ftdi.h:27
@ ODD
Definition ftdi.h:27
@ MARK
Definition ftdi.h:27
@ SPACE
Definition ftdi.h:27
@ NONE
Definition ftdi.h:27
int ftdi_read_data_get_chunksize(struct ftdi_context *ftdi, unsigned int *chunksize)
Definition ftdi.c:1689
struct ftdi_context * ftdi_new(void)
Definition ftdi.c:137
int ftdi_read_pins(struct ftdi_context *ftdi, unsigned char *pins)
Definition ftdi.c:1792
int ftdi_read_chipid(struct ftdi_context *ftdi, unsigned int *chipid)
Definition ftdi.c:2662
int ftdi_usb_get_strings(struct ftdi_context *ftdi, struct usb_device *dev, char *manufacturer, int mnf_len, char *description, int desc_len, char *serial, int serial_len)
Definition ftdi.c:358
int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom)
Definition ftdi.c:2619
int ftdi_setflowctrl(struct ftdi_context *ftdi, int flowctrl)
Definition ftdi.c:1925
int ftdi_get_latency_timer(struct ftdi_context *ftdi, unsigned char *latency)
Definition ftdi.c:1845
ftdi_module_detach_mode
Definition ftdi.h:61
@ AUTO_DETACH_SIO_MODULE
Definition ftdi.h:62
@ DONT_DETACH_SIO_MODULE
Definition ftdi.h:63
int ftdi_write_data_async(struct ftdi_context *ftdi, unsigned char *buf, int size)
Definition ftdi.c:1454
ftdi_break_type
Definition ftdi.h:33
@ BREAK_OFF
Definition ftdi.h:33
@ BREAK_ON
Definition ftdi.h:33
int ftdi_set_baudrate(struct ftdi_context *ftdi, int baudrate)
Definition ftdi.c:1099
int ftdi_set_error_char(struct ftdi_context *ftdi, unsigned char errorch, unsigned char enable)
Definition ftdi.c:2074
void ftdi_eeprom_setsize(struct ftdi_context *ftdi, struct ftdi_eeprom *eeprom, int size)
Definition ftdi.c:2100
int ftdi_read_eeprom_getsize(struct ftdi_context *ftdi, unsigned char *eeprom, int maxsize)
Definition ftdi.c:2698
Main context structure for all libftdi functions.
Definition ftdi.h:174
unsigned char bitbang_mode
Definition ftdi.h:214
enum ftdi_module_detach_mode module_detach_mode
Definition ftdi.h:228
int out_ep
Definition ftdi.h:211
unsigned int writebuffer_chunksize
Definition ftdi.h:199
unsigned char bitbang_enabled
Definition ftdi.h:189
struct usb_dev_handle * usb_dev
Definition ftdi.h:177
enum ftdi_chip_type type
Definition ftdi.h:185
unsigned int async_usb_buffer_size
Definition ftdi.h:225
char * async_usb_buffer
Definition ftdi.h:223
unsigned int max_packet_size
Definition ftdi.h:201
unsigned char * readbuffer
Definition ftdi.h:191
unsigned int readbuffer_chunksize
Definition ftdi.h:197
int in_ep
Definition ftdi.h:210
int index
Definition ftdi.h:207
int baudrate
Definition ftdi.h:187
unsigned int readbuffer_remaining
Definition ftdi.h:195
int interface
Definition ftdi.h:205
unsigned int readbuffer_offset
Definition ftdi.h:193
char * error_str
Definition ftdi.h:220
int eeprom_size
Definition ftdi.h:217
int usb_write_timeout
Definition ftdi.h:181
int usb_read_timeout
Definition ftdi.h:179
list of usb devices created by ftdi_usb_find_all()
Definition ftdi.h:235
struct usb_device * dev
Definition ftdi.h:239
struct ftdi_device_list * next
Definition ftdi.h:237
FTDI eeprom structure.
Definition ftdi.h:295
int self_powered
Definition ftdi.h:302
int chip_type
Definition ftdi.h:306
int cbus_function[5]
Definition ftdi.h:333
int change_usb_version
Definition ftdi.h:318
int invert
Definition ftdi.h:337
int in_is_isochronous
Definition ftdi.h:309
int size
Definition ftdi.h:341
int suspend_pull_downs
Definition ftdi.h:313
int usb_version
Definition ftdi.h:320
int max_power
Definition ftdi.h:322
int remote_wakeup
Definition ftdi.h:304
char * product
Definition ftdi.h:327
char * serial
Definition ftdi.h:329
int product_id
Definition ftdi.h:299
int out_is_isochronous
Definition ftdi.h:311
int use_serial
Definition ftdi.h:316
char * manufacturer
Definition ftdi.h:325
int high_current
Definition ftdi.h:335
int vendor_id
Definition ftdi.h:297