libftdi1 1.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ftdi_i.h
Go to the documentation of this file.
1 /***************************************************************************
2 ftdi_i.h - description
3 -------------------
4 begin : Don Sep 9 2011
5 copyright : (C) 2003-2013 by Intra2net AG and the libftdi developers
6 email : opensource@intra2net.com
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
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; *
14 * *
15 ***************************************************************************
16
17 Non public definitions here
18
19 */
20
21 /* Even on 93xx66 at max 256 bytes are used (AN_121)*/
22 #define FTDI_MAX_EEPROM_SIZE 256
23
25 #define MAX_POWER_MILLIAMP_PER_UNIT 2
26
30 struct ftdi_eeprom
31 {
33 int vendor_id;
35 int product_id;
36
39 int initialized_for_connected_device;
40
42 int self_powered;
44 int remote_wakeup;
45
46 int is_not_pnp;
47
48 /* Suspend on DBUS7 Low */
49 int suspend_dbus7;
50
52 int in_is_isochronous;
54 int out_is_isochronous;
56 int suspend_pull_downs;
57
59 int use_serial;
61 int usb_version;
63 int use_usb_version;
65 int max_power;
66
68 char *manufacturer;
70 char *product;
72 char *serial;
73
74 /* 2232D/H specific */
75 /* Hardware type, 0 = RS232 Uart, 1 = 245 FIFO, 2 = CPU FIFO,
76 4 = OPTO Isolate */
77 int channel_a_type;
78 int channel_b_type;
79 /* Driver Type, 1 = VCP */
80 int channel_a_driver;
81 int channel_b_driver;
82 int channel_c_driver;
83 int channel_d_driver;
84 /* 4232H specific */
85 int channel_a_rs485enable;
86 int channel_b_rs485enable;
87 int channel_c_rs485enable;
88 int channel_d_rs485enable;
89
90 /* Special function of FT232R/FT232H devices (and possibly others as well) */
92 int cbus_function[10];
94 int high_current;
96 int high_current_a;
98 int high_current_b;
100 int invert;
101
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*/
107 int group0_drive;
108 int group0_schmitt;
109 int group0_slew;
110 int group1_drive;
111 int group1_schmitt;
112 int group1_slew;
113 int group2_drive;
114 int group2_schmitt;
115 int group2_slew;
116 int group3_drive;
117 int group3_schmitt;
118 int group3_slew;
119
120 int powersave;
121
122 int clock_polarity;
123 int data_order;
124 int flow_control;
125
128 int size;
129 /* EEPROM Type 0x46 for 93xx46, 0x56 for 93xx56 and 0x66 for 93xx66*/
130 int chip;
131 unsigned char buf[FTDI_MAX_EEPROM_SIZE];
132 };
133