1 /***************************************************************************
5 copyright : (C) 2003-2011 by Intra2net AG and the libftdi developers
6 email : opensource@intra2net.com
7 ***************************************************************************/
9 /***************************************************************************
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; *
15 ***************************************************************************
17 Non public definitions here
21 /* Even on 93xx66 at max 256 bytes are used (AN_121)*/
22 #define FTDI_MAX_EEPROM_SIZE 256
24 /** Max Power adjustment factor. */
25 #define MAX_POWER_MILLIAMP_PER_UNIT 2
28 \brief FTDI eeprom structure
37 /** Was the eeprom structure initialized for the actual
39 int initialized_for_connected_device;
48 /* Suspend on DBUS7 Low */
51 /** input in isochronous transfer mode */
52 int in_is_isochronous;
53 /** output in isochronous transfer mode */
54 int out_is_isochronous;
55 /** suspend pull downs */
56 int suspend_pull_downs;
62 /** Use usb version on FT2232 devices*/
67 /** manufacturer name */
74 /* 2232D/H specific */
75 /* Hardware type, 0 = RS232 Uart, 1 = 245 FIFO, 2 = CPU FIFO,
79 /* Driver Type, 1 = VCP */
85 int channel_a_rs485enable;
86 int channel_b_rs485enable;
87 int channel_c_rs485enable;
88 int channel_d_rs485enable;
90 /* Special function of FT232R/FT232H devices (and possibly others as well) */
91 /** CBUS pin function. See CBUS_xxx defines. */
92 int cbus_function[10];
93 /** Select hight current drive on R devices. */
95 /** Select hight current drive on A channel (2232C */
97 /** Select hight current drive on B channel (2232C). */
99 /** Select inversion of data lines (bitmask). */
102 /*2232H/4432H Group specific values */
103 /* Group0 is AL on 2322H and A on 4232H
104 Group1 is AH on 2232H and B on 4232H
105 Group2 is BL on 2322H and C on 4232H
106 Group3 is BH on 2232H and C on 4232H*/
126 /** eeprom size in bytes. This doesn't get stored in the eeprom
127 but is the only way to pass it to ftdi_eeprom_build. */
129 /* EEPROM Type 0x46 for 93xx46, 0x56 for 93xx56 and 0x66 for 93xx66*/
131 unsigned char buf[FTDI_MAX_EEPROM_SIZE];