Go to the documentation of this file.
22 #define FTDI_DEFAULT_EEPROM_SIZE 128
67 #define MPSSE_WRITE_NEG 0x01
68 #define MPSSE_BITMODE 0x02
69 #define MPSSE_READ_NEG 0x04
70 #define MPSSE_LSB 0x08
71 #define MPSSE_DO_WRITE 0x10
72 #define MPSSE_DO_READ 0x20
73 #define MPSSE_WRITE_TMS 0x40
76 #define SET_BITS_LOW 0x80
79 #define SET_BITS_HIGH 0x82
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
88 #define DIS_DIV_5 0x8a
90 #define EN_3_PHASE 0x8c
91 #define DIS_3_PHASE 0x8d
93 #define CLK_BYTES 0x8f
94 #define CLK_WAIT_HIGH 0x94
95 #define CLK_WAIT_LOW 0x95
96 #define EN_ADAPTIVE 0x96
97 #define DIS_ADAPTIVE 0x97
98 #define CLK_BYTES_OR_HIGH 0x9c
99 #define CLK_BYTES_OR_LOW 0x0d
101 #define DRIVE_OPEN_COLLECTOR 0x9e
104 #define DIV_VALUE(rate) (rate > 6000000)?0:((6000000/rate -1) > 0xffff)? 0xffff: (6000000/rate -1)
107 #define SEND_IMMEDIATE 0x87
108 #define WAIT_ON_HIGH 0x88
109 #define WAIT_ON_LOW 0x89
112 #define READ_SHORT 0x90
114 #define READ_EXTENDED 0x91
117 #define WRITE_SHORT 0x92
119 #define WRITE_EXTENDED 0x93
125 #define SIO_MODEM_CTRL 1
126 #define SIO_SET_FLOW_CTRL 2
127 #define SIO_SET_BAUD_RATE 3
128 #define SIO_SET_DATA 4
130 #define FTDI_DEVICE_OUT_REQTYPE (USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT)
131 #define FTDI_DEVICE_IN_REQTYPE (USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN)
134 #define SIO_RESET_REQUEST SIO_RESET
135 #define SIO_SET_BAUDRATE_REQUEST SIO_SET_BAUD_RATE
136 #define SIO_SET_DATA_REQUEST SIO_SET_DATA
137 #define SIO_SET_FLOW_CTRL_REQUEST SIO_SET_FLOW_CTRL
138 #define SIO_SET_MODEM_CTRL_REQUEST SIO_MODEM_CTRL
139 #define SIO_POLL_MODEM_STATUS_REQUEST 0x05
140 #define SIO_SET_EVENT_CHAR_REQUEST 0x06
141 #define SIO_SET_ERROR_CHAR_REQUEST 0x07
142 #define SIO_SET_LATENCY_TIMER_REQUEST 0x09
143 #define SIO_GET_LATENCY_TIMER_REQUEST 0x0A
144 #define SIO_SET_BITMODE_REQUEST 0x0B
145 #define SIO_READ_PINS_REQUEST 0x0C
146 #define SIO_READ_EEPROM_REQUEST 0x90
147 #define SIO_WRITE_EEPROM_REQUEST 0x91
148 #define SIO_ERASE_EEPROM_REQUEST 0x92
151 #define SIO_RESET_SIO 0
152 #define SIO_RESET_PURGE_RX 1
153 #define SIO_RESET_PURGE_TX 2
155 #define SIO_DISABLE_FLOW_CTRL 0x0
156 #define SIO_RTS_CTS_HS (0x1 << 8)
157 #define SIO_DTR_DSR_HS (0x2 << 8)
158 #define SIO_XON_XOFF_HS (0x4 << 8)
160 #define SIO_SET_DTR_MASK 0x1
161 #define SIO_SET_DTR_HIGH ( 1 | ( SIO_SET_DTR_MASK << 8))
162 #define SIO_SET_DTR_LOW ( 0 | ( SIO_SET_DTR_MASK << 8))
163 #define SIO_SET_RTS_MASK 0x2
164 #define SIO_SET_RTS_HIGH ( 2 | ( SIO_SET_RTS_MASK << 8 ))
165 #define SIO_SET_RTS_LOW ( 0 | ( SIO_SET_RTS_MASK << 8 ))
167 #define SIO_RTS_CTS_HS (0x1 << 8)
171 #define FTDI_URB_USERCONTEXT_COOKIE ((void *)0x1)
174 #define DEPRECATED(func) func __attribute__ ((deprecated))
175 #elif defined(_MSC_VER)
176 #define DEPRECATED(func) __declspec(deprecated) func
178 #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
179 #define DEPRECATED(func) func
267 #define CBUS_TXRXLED 4
279 #define CBUS_IOMODE 10
281 #define CBUS_BB_WR 11
283 #define CBUS_BB_RD 12
287 #define INVERT_TXD 0x01
289 #define INVERT_RXD 0x02
291 #define INVERT_RTS 0x04
293 #define INVERT_CTS 0x08
295 #define INVERT_DTR 0x10
297 #define INVERT_DSR 0x20
299 #define INVERT_DCD 0x40
301 #define INVERT_RI 0x80
304 #define HIGH_CURRENT_DRIVE 0x04
373 int vendor,
int product);
377 char * manufacturer,
int mnf_len,
378 char * description,
int desc_len,
379 char * serial,
int serial_len);
383 const char* description,
const char* serial);
385 const char* description,
const char* serial,
unsigned int index);
Generated for libftdi by
1.8.4