X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.h;h=d3ccf2b3cc9c69d29107fc4ac1a0c0c1228c1c22;hb=2cde7c524141286c424de68e46710f9e3dbf838d;hp=5cc3fe575f525c38043eaf7d80ad6d01f4c7c7df;hpb=a02587d5f941d4e7fe8397e3615325251162dedd;p=libftdi diff --git a/src/ftdi.h b/src/ftdi.h index 5cc3fe5..d3ccf2b 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -197,8 +197,6 @@ struct ftdi_eeprom /** use serial */ int use_serial; - /** fake usb version */ - int change_usb_version; /** usb version */ int usb_version; /** maximum power */ @@ -223,9 +221,11 @@ struct ftdi_eeprom /* Special function of FT232R devices (and possibly others as well) */ /** CBUS pin function. See CBUS_xxx defines. */ int cbus_function[5]; - /** Select hight current drive. */ + /** Select hight current drive on R devices. */ + int high_current; + /** Select hight current drive on A channel (2232C */ int high_current_a; - /** Select hight current drive on B port (2232C). */ + /** Select hight current drive on B channel (2232C). */ int high_current_b; /** Select inversion of data lines (bitmask). */ int invert; @@ -325,34 +325,10 @@ struct ftdi_device_list }; #define USE_SERIAL_NUM 0x08 - -/** TXDEN */ -#define CBUS_TXDEN 0 -/** PWREN# */ -#define CBUS_PWREN 1 -/** RXLED# */ -#define CBUS_RXLED 2 -/** TXLED#*/ -#define CBUS_TXLED 3 -/** RXLED# & TXLED# */ -#define CBUS_TXRXLED 4 -/** SLEEP# */ -#define CBUS_SLEEP 5 -/** 48 MHz clock */ -#define CBUS_CLK48 6 -/** 24 MHz clock */ -#define CBUS_CLK24 7 -/** 12 MHz clock */ -#define CBUS_CLK12 8 -/** 6 MHz clock */ -#define CBUS_CLK6 9 -/** Bitbang IO Mode*/ -#define CBUS_IOMODE 10 -/** Bitbang IO WR#*/ -#define CBUS_BB_WR 11 -/** Bitbang IO RD#*/ -#define CBUS_BB_RD 12 - +enum ftdi_cbus_func {/* FIXME: Recheck value, especially the last */ + 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 = 10, CBUS_BB_WR = 11, CBUS_BB_RD = 12, CBUS_BB_RXF = 13, CBUS_BB_TXE = 14}; /** Invert TXD# */ #define INVERT_TXD 0x01 @@ -390,7 +366,8 @@ struct ftdi_device_list #define SUSPEND_DBUS7 0x80 /** High current drive. */ -#define HIGH_CURRENT_DRIVE 0x10 +#define HIGH_CURRENT_DRIVE 0x10 +#define HIGH_CURRENT_DRIVE_R 0x04 /** \brief Progress Info for streaming read