X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi%2Fftdi.h;h=6fa8a60d4708fd81a1844f651aa4260d84989d58;hp=ea78d3c23c22a97d392529eaa92dd744bf9542cb;hb=545820ceb5da92df4e4f3094e161c5fd4c0f56fe;hpb=4ece2c24d8ffb3ce77ae94effa657e49c1f536c2 diff --git a/ftdi/ftdi.h b/ftdi/ftdi.h index ea78d3c..6fa8a60 100644 --- a/ftdi/ftdi.h +++ b/ftdi/ftdi.h @@ -22,7 +22,8 @@ struct ftdi_context { // USB specific struct usb_dev_handle *usb_dev; - int usb_timeout; + int usb_read_timeout; + int usb_write_timeout; // FTDI specific int baudrate; @@ -32,16 +33,25 @@ struct ftdi_context { unsigned int readbuffer_remaining; unsigned int readbuffer_chunksize; unsigned int writebuffer_chunksize; - + + // FTDI FT2232C requirecments + int interface; // 0 or 1 + int index; // 1 or 2 + // Endpoints + int in_ep; + int out_ep; // 1 or 2 + + int reading; // 0 or 1 - for performance increase in SPI mode + // misc char *error_str; }; struct ftdi_eeprom { - int vendor_id; + int vendor_id; int product_id; - int self_powered; + int self_powered; int remote_wakeup; int BM_type_chip; @@ -53,7 +63,7 @@ struct ftdi_eeprom { int change_usb_version; int usb_version; int max_power; - + char *manufacturer; char *product; char *serial;