libftdi1  1.5
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-2020 by Intra2net AG and the libftdi developers
6  email : opensource@intra2net.com
7  SPDX-License-Identifier: LGPL-2.1-only
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU Lesser General Public License *
14  * version 2.1 as published by the Free Software Foundation; *
15  * *
16  ***************************************************************************
17 
18  Non public definitions here
19 
20 */
21 
22 /* Even on 93xx66 at max 256 bytes are used (AN_121)*/
23 #define FTDI_MAX_EEPROM_SIZE 256
24 
26 #define MAX_POWER_MILLIAMP_PER_UNIT 2
27 
32 {
34  int vendor_id;
37 
41 
46 
48 
49  /* Suspend on DBUS7 Low */
51 
58 
66  int max_power;
67 
69  char *manufacturer;
71  char *product;
73  char *serial;
74 
75  /* 2232D/H specific */
76  /* Hardware type, 0 = RS232 Uart, 1 = 245 FIFO, 2 = CPU FIFO,
77  4 = OPTO Isolate */
80  /* Driver Type, 1 = VCP */
85  /* 4232H specific */
90 
91  /* Special function of FT232R/FT232H devices (and possibly others as well) */
93  int cbus_function[10];
101  int invert;
104 
105  /*2232H/4432H Group specific values */
106  /* Group0 is AL on 2322H and A on 4232H
107  Group1 is AH on 2232H and B on 4232H
108  Group2 is BL on 2322H and C on 4232H
109  Group3 is BH on 2232H and C on 4232H*/
122 
124 
128 
132  const char *user_data;
133 
136  int size;
137  /* EEPROM Type 0x46 for 93xx46, 0x56 for 93xx56 and 0x66 for 93xx66*/
138  int chip;
139  unsigned char buf[FTDI_MAX_EEPROM_SIZE];
140 
143 };
144 
int powersave
Definition: ftdi_i.h:123
int out_is_isochronous
Definition: ftdi_i.h:55
int usb_version
Definition: ftdi_i.h:62
int external_oscillator
Definition: ftdi_i.h:103
int clock_polarity
Definition: ftdi_i.h:125
int remote_wakeup
Definition: ftdi_i.h:45
int channel_b_driver
Definition: ftdi_i.h:82
int group3_drive
Definition: ftdi_i.h:119
int channel_c_driver
Definition: ftdi_i.h:83
int group3_schmitt
Definition: ftdi_i.h:120
int max_power
Definition: ftdi_i.h:66
int group1_schmitt
Definition: ftdi_i.h:114
int user_data_size
Definition: ftdi_i.h:131
char * serial
Definition: ftdi_i.h:73
int channel_b_rs485enable
Definition: ftdi_i.h:87
int cbus_function[10]
Definition: ftdi_i.h:93
int size
Definition: ftdi_i.h:136
int group0_slew
Definition: ftdi_i.h:112
int vendor_id
Definition: ftdi_i.h:34
int in_is_isochronous
Definition: ftdi_i.h:53
int chip
Definition: ftdi_i.h:138
int initialized_for_connected_device
Definition: ftdi_i.h:40
int high_current_b
Definition: ftdi_i.h:99
int channel_c_rs485enable
Definition: ftdi_i.h:88
int group0_schmitt
Definition: ftdi_i.h:111
int flow_control
Definition: ftdi_i.h:127
const char * user_data
Definition: ftdi_i.h:132
unsigned char buf[FTDI_MAX_EEPROM_SIZE]
Definition: ftdi_i.h:139
int suspend_dbus7
Definition: ftdi_i.h:50
int user_data_addr
Definition: ftdi_i.h:130
#define FTDI_MAX_EEPROM_SIZE
Definition: ftdi_i.h:23
int group1_drive
Definition: ftdi_i.h:113
int channel_d_driver
Definition: ftdi_i.h:84
int high_current_a
Definition: ftdi_i.h:97
char * manufacturer
Definition: ftdi_i.h:69
int channel_b_type
Definition: ftdi_i.h:79
int group0_drive
Definition: ftdi_i.h:110
int group2_slew
Definition: ftdi_i.h:118
int suspend_pull_downs
Definition: ftdi_i.h:57
int product_id
Definition: ftdi_i.h:36
char * product
Definition: ftdi_i.h:71
int invert
Definition: ftdi_i.h:101
int channel_d_rs485enable
Definition: ftdi_i.h:89
int channel_a_type
Definition: ftdi_i.h:78
int use_serial
Definition: ftdi_i.h:60
int group2_schmitt
Definition: ftdi_i.h:117
int data_order
Definition: ftdi_i.h:126
int channel_a_rs485enable
Definition: ftdi_i.h:86
int self_powered
Definition: ftdi_i.h:43
FTDI eeprom structure.
Definition: ftdi_i.h:31
int high_current
Definition: ftdi_i.h:95
int channel_a_driver
Definition: ftdi_i.h:81
int release_number
Definition: ftdi_i.h:142
int group3_slew
Definition: ftdi_i.h:121
int group1_slew
Definition: ftdi_i.h:115
int group2_drive
Definition: ftdi_i.h:116
int is_not_pnp
Definition: ftdi_i.h:47
int use_usb_version
Definition: ftdi_i.h:64