26 #define CDC_V1_10 0x0110
30 #define CDC_COMMUNICATION_INTERFACE_CLASS 0x02
34 #define CDC_DIRECT_LINE_CONTROL_MODEL 0x01
35 #define CDC_ABSTRACT_CONTROL_MODEL 0x02
36 #define CDC_TELEPHONE_CONTROL_MODEL 0x03
37 #define CDC_MULTI_CHANNEL_CONTROL_MODEL 0x04
38 #define CDC_CAPI_CONTROL_MODEL 0x05
39 #define CDC_ETHERNET_NETWORKING_CONTROL_MODEL 0x06
40 #define CDC_ATM_NETWORKING_CONTROL_MODEL 0x07
44 #define CDC_PROTOCOL_COMMON_AT_COMMANDS 0x01
48 #define CDC_DATA_INTERFACE_CLASS 0x0A
52 #define CDC_PROTOCOL_ISDN_BRI 0x30
53 #define CDC_PROTOCOL_HDLC 0x31
54 #define CDC_PROTOCOL_TRANSPARENT 0x32
55 #define CDC_PROTOCOL_Q921_MANAGEMENT 0x50
56 #define CDC_PROTOCOL_Q921_DATA_LINK 0x51
57 #define CDC_PROTOCOL_Q921_MULTIPLEXOR 0x52
58 #define CDC_PROTOCOL_V42 0x90
59 #define CDC_PROTOCOL_EURO_ISDN 0x91
60 #define CDC_PROTOCOL_V24_RATE_ADAPTATION 0x92
61 #define CDC_PROTOCOL_CAPI 0x93
62 #define CDC_PROTOCOL_HOST_BASED_DRIVER 0xFD
63 #define CDC_PROTOCOL_DESCRIBED_IN_PUFD 0xFE
67 #define CDC_CS_INTERFACE 0x24
68 #define CDC_CS_ENDPOINT 0x25
72 #define CDC_HEADER 0x00
73 #define CDC_CALL_MANAGEMENT 0x01
74 #define CDC_ABSTRACT_CONTROL_MANAGEMENT 0x02
75 #define CDC_DIRECT_LINE_MANAGEMENT 0x03
76 #define CDC_TELEPHONE_RINGER 0x04
77 #define CDC_REPORTING_CAPABILITIES 0x05
78 #define CDC_UNION 0x06
79 #define CDC_COUNTRY_SELECTION 0x07
80 #define CDC_TELEPHONE_OPERATIONAL_MODES 0x08
81 #define CDC_USB_TERMINAL 0x09
82 #define CDC_NETWORK_CHANNEL 0x0A
83 #define CDC_PROTOCOL_UNIT 0x0B
84 #define CDC_EXTENSION_UNIT 0x0C
85 #define CDC_MULTI_CHANNEL_MANAGEMENT 0x0D
86 #define CDC_CAPI_CONTROL_MANAGEMENT 0x0E
87 #define CDC_ETHERNET_NETWORKING 0x0F
88 #define CDC_ATM_NETWORKING 0x10
93 #define CDC_SEND_ENCAPSULATED_COMMAND 0x00
94 #define CDC_GET_ENCAPSULATED_RESPONSE 0x01
95 #define CDC_SET_COMM_FEATURE 0x02
96 #define CDC_GET_COMM_FEATURE 0x03
97 #define CDC_CLEAR_COMM_FEATURE 0x04
98 #define CDC_SET_AUX_LINE_STATE 0x10
99 #define CDC_SET_HOOK_STATE 0x11
100 #define CDC_PULSE_SETUP 0x12
101 #define CDC_SEND_PULSE 0x13
102 #define CDC_SET_PULSE_TIME 0x14
103 #define CDC_RING_AUX_JACK 0x15
104 #define CDC_SET_LINE_CODING 0x20
105 #define CDC_GET_LINE_CODING 0x21
106 #define CDC_SET_CONTROL_LINE_STATE 0x22
107 #define CDC_SEND_BREAK 0x23
108 #define CDC_SET_RINGER_PARMS 0x30
109 #define CDC_GET_RINGER_PARMS 0x31
110 #define CDC_SET_OPERATION_PARMS 0x32
111 #define CDC_GET_OPERATION_PARMS 0x33
112 #define CDC_SET_LINE_PARMS 0x34
113 #define CDC_GET_LINE_PARMS 0x35
114 #define CDC_DIAL_DIGITS 0x36
115 #define CDC_SET_UNIT_PARAMETER 0x37
116 #define CDC_GET_UNIT_PARAMETER 0x38
117 #define CDC_CLEAR_UNIT_PARAMETER 0x39
118 #define CDC_GET_PROFILE 0x3A
119 #define CDC_SET_ETHERNET_MULTICAST_FILTERS 0x40
120 #define CDC_SET_ETHERNET_PMP_FILTER 0x41
121 #define CDC_GET_ETHERNET_PMP_FILTER 0x42
122 #define CDC_SET_ETHERNET_PACKET_FILTER 0x43
123 #define CDC_GET_ETHERNET_STATISTIC 0x44
124 #define CDC_SET_ATM_DATA_FORMAT 0x50
125 #define CDC_GET_ATM_DEVICE_STATISTICS 0x51
126 #define CDC_SET_ATM_DEFAULT_VC 0x52
127 #define CDC_GET_ATM_VC_STATISTICS 0x53
131 #define CDC_ABSTRACT_STATE 0x01
132 #define CDC_COUNTRY_SETTING 0x02
136 #define CDC_IDLE_SETTING (1 << 0)
137 #define CDC_DATA_MULTPLEXED_STATE (1 << 1)
142 #define CDC_DTE_PRESENT (1 << 0)
143 #define CDC_ACTIVATE_CARRIER (1 << 1)
148 #define CDC_NOTIFICATION_NETWORK_CONNECTION 0x00
149 #define CDC_RESPONSE_AVAILABLE 0x01
150 #define CDC_AUX_JACK_HOOK_STATE 0x08
151 #define CDC_RING_DETECT 0x09
152 #define CDC_NOTIFICATION_SERIAL_STATE 0x20
153 #define CDC_CALL_STATE_CHANGE 0x28
154 #define CDC_LINE_STATE_CHANGE 0x29
155 #define CDC_CONNECTION_SPEED_CHANGE 0x2A
159 #define CDC_SERIAL_STATE_OVERRUN (1 << 6) // receive data overrun error has occurred
160 #define CDC_SERIAL_STATE_PARITY (1 << 5) // parity error has occurred
161 #define CDC_SERIAL_STATE_FRAMING (1 << 4) // framing error has occurred
162 #define CDC_SERIAL_STATE_RING (1 << 3) // state of ring signal detection
163 #define CDC_SERIAL_STATE_BREAK (1 << 2) // state of break detection
164 #define CDC_SERIAL_STATE_TX_CARRIER (1 << 1) // state of transmission carrier
165 #define CDC_SERIAL_STATE_RX_CARRIER (1 << 0) // state of receiver carrier
201 }
__attribute__((packed)) CDC_ABSTRACT_CONTROL_MANAGEMENT_DESCRIPTOR;
uint8_t bDescriptorSubtype
uint8_t bSlaveInterfaces[1]
uint8_t bDescriptorSubtype
uint8_t bDescriptorSubtype
CDC_UNION_DESCRIPTOR sUnion
struct _CDC_HEADER_DESCRIPTOR __attribute__((packed)) CDC_HEADER_DESCRIPTOR
uint8_t bDescriptorSubtype
unsigned short int uint16_t
USB_SETUP_PACKET CDC_NOTIFICATION_HEADER