.. | .. |
---|
35 | 35 | #define FTDI_SIO_SET_EVENT_CHAR 6 /* Set the event character */ |
---|
36 | 36 | #define FTDI_SIO_SET_ERROR_CHAR 7 /* Set the error character */ |
---|
37 | 37 | #define FTDI_SIO_SET_LATENCY_TIMER 9 /* Set the latency timer */ |
---|
38 | | -#define FTDI_SIO_GET_LATENCY_TIMER 10 /* Get the latency timer */ |
---|
| 38 | +#define FTDI_SIO_GET_LATENCY_TIMER 0x0a /* Get the latency timer */ |
---|
| 39 | +#define FTDI_SIO_SET_BITMODE 0x0b /* Set bitbang mode */ |
---|
| 40 | +#define FTDI_SIO_READ_PINS 0x0c /* Read immediate value of pins */ |
---|
| 41 | +#define FTDI_SIO_READ_EEPROM 0x90 /* Read EEPROM */ |
---|
39 | 42 | |
---|
40 | 43 | /* Interface indices for FT2232, FT2232H and FT4232H devices */ |
---|
41 | 44 | #define INTERFACE_A 1 |
---|
.. | .. |
---|
299 | 302 | /* |
---|
300 | 303 | * FTDI_SIO_GET_LATENCY_TIMER |
---|
301 | 304 | * |
---|
302 | | - * Set the timeout interval. The FTDI collects data from the slave |
---|
| 305 | + * Set the timeout interval. The FTDI collects data from the |
---|
303 | 306 | * device, transmitting it to the host when either A) 62 bytes are |
---|
304 | 307 | * received, or B) the timeout interval has elapsed and the buffer |
---|
305 | 308 | * contains at least 1 byte. Setting this value to a small number |
---|
.. | .. |
---|
321 | 324 | /* |
---|
322 | 325 | * FTDI_SIO_SET_LATENCY_TIMER |
---|
323 | 326 | * |
---|
324 | | - * Set the timeout interval. The FTDI collects data from the slave |
---|
| 327 | + * Set the timeout interval. The FTDI collects data from the |
---|
325 | 328 | * device, transmitting it to the host when either A) 62 bytes are |
---|
326 | 329 | * received, or B) the timeout interval has elapsed and the buffer |
---|
327 | 330 | * contains at least 1 byte. Setting this value to a small number |
---|
.. | .. |
---|
433 | 436 | * 1 = active |
---|
434 | 437 | */ |
---|
435 | 438 | |
---|
| 439 | +/* FTDI_SIO_SET_BITMODE */ |
---|
| 440 | +#define FTDI_SIO_SET_BITMODE_REQUEST_TYPE 0x40 |
---|
| 441 | +#define FTDI_SIO_SET_BITMODE_REQUEST FTDI_SIO_SET_BITMODE |
---|
| 442 | + |
---|
| 443 | +/* Possible bitmodes for FTDI_SIO_SET_BITMODE_REQUEST */ |
---|
| 444 | +#define FTDI_SIO_BITMODE_RESET 0x00 |
---|
| 445 | +#define FTDI_SIO_BITMODE_CBUS 0x20 |
---|
| 446 | + |
---|
| 447 | +/* FTDI_SIO_READ_PINS */ |
---|
| 448 | +#define FTDI_SIO_READ_PINS_REQUEST_TYPE 0xc0 |
---|
| 449 | +#define FTDI_SIO_READ_PINS_REQUEST FTDI_SIO_READ_PINS |
---|
| 450 | + |
---|
| 451 | +/* |
---|
| 452 | + * FTDI_SIO_READ_EEPROM |
---|
| 453 | + * |
---|
| 454 | + * EEPROM format found in FTDI AN_201, "FT-X MTP memory Configuration", |
---|
| 455 | + * http://www.ftdichip.com/Support/Documents/AppNotes/AN_201_FT-X%20MTP%20Memory%20Configuration.pdf |
---|
| 456 | + */ |
---|
| 457 | +#define FTDI_SIO_READ_EEPROM_REQUEST_TYPE 0xc0 |
---|
| 458 | +#define FTDI_SIO_READ_EEPROM_REQUEST FTDI_SIO_READ_EEPROM |
---|
| 459 | + |
---|
| 460 | +#define FTDI_FTX_CBUS_MUX_GPIO 0x8 |
---|
| 461 | +#define FTDI_FT232R_CBUS_MUX_GPIO 0xa |
---|
436 | 462 | |
---|
437 | 463 | |
---|
438 | 464 | /* Descriptors returned by the device |
---|