35 #ifndef _CDCDESCRIPTORS_H_ 36 #define _CDCDESCRIPTORS_H_ 58 #define CDCGenericDescriptor_CDC1_10 0x0110 68 #define CDCGenericDescriptor_INTERFACE 0x24 70 #define CDCGenericDescriptor_ENDPOINT 0x25 83 #define CDCGenericDescriptor_HEADER 0x00 85 #define CDCGenericDescriptor_CALLMANAGEMENT 0x01 87 #define CDCGenericDescriptor_ABSTRACTCONTROLMANAGEMENT 0x02 89 #define CDCGenericDescriptor_UNION 0x06 100 #define CDCDeviceDescriptor_CLASS 0x02 102 #define CDCDeviceDescriptor_SUBCLASS 0x00 104 #define CDCDeviceDescriptor_PROTOCOL 0x00 117 #define CDCCommunicationInterfaceDescriptor_CLASS 0x02 120 #define CDCCommunicationInterfaceDescriptor_ABSTRACTCONTROLMODEL 0x02 123 #define CDCCommunicationInterfaceDescriptor_ETHERNETEMULATIONMODEL 0x0C 126 #define CDCCommunicationInterfaceDescriptor_NOPROTOCOL 0x00 129 #define CDCCommunicationInterfaceDescriptor_EEMPROTOCOL 0x07 141 #define CDCDataInterfaceDescriptor_CLASS 0x0A 143 #define CDCDataInterfaceDescriptor_SUBCLASS 0x00 146 #define CDCDataInterfaceDescriptor_NOPROTOCOL 0x00 156 #define CDCCallManagementDescriptor_SELFCALLMANAGEMENT (1 << 0) 159 #define CDCCallManagementDescriptor_DATACALLMANAGEMENT (1 << 1) 174 #define CDCAbstractControlManagementDescriptor_COMMFEATURE (1 << 0) 177 #define CDCAbstractControlManagementDescriptor_LINE (1 << 1) 179 #define CDCAbstractControlManagementDescriptor_SENDBREAK (1 << 2) 181 #define CDCAbstractControlManagementDescriptor_NETWORKCONNECTION (1 << 3) 187 #define CDC_SUBCLASS_DLCM 0x01 188 #define CDC_SUBCLASS_ACM 0x02 189 #define CDC_SUBCLASS_TCM 0x03 190 #define CDC_SUBCLASS_MCCM 0x04 191 #define CDC_SUBCLASS_CCM 0x05 192 #define CDC_SUBCLASS_ETH 0x06 193 #define CDC_SUBCLASS_ATM 0x07 198 #define CDC_PROTOCOL_V25TER 0x01 203 #define CDC_PROTOCOL_I430 0x30 204 #define CDC_PROTOCOL_HDLC 0x31 205 #define CDC_PROTOCOL_TRANS 0x32 206 #define CDC_PROTOCOL_Q921M 0x50 207 #define CDC_PROTOCOL_Q921 0x51 208 #define CDC_PROTOCOL_Q921TM 0x52 209 #define CDC_PROTOCOL_V42BIS 0x90 210 #define CDC_PROTOCOL_Q931 0x91 211 #define CDC_PROTOCOL_V120 0x92 212 #define CDC_PROTOCOL_CAPI20 0x93 213 #define CDC_PROTOCOL_HOST 0xFD 218 #define CDC_PROTOCOL_PUFD 0xFE 224 #if defined ( __CC_ARM ) 225 #elif defined ( __ICCARM__ ) 226 #define __attribute__(...) 227 #define __packed__ packed 228 #elif defined ( __GNUC__ ) 229 #define __packed__ aligned(1) 308 }
__attribute__ ((__packed__)) CDCAbstractControlManagementDescriptor;
struct _CDCHeaderDescriptor __attribute__((__packed__)) CDCHeaderDescriptor
uint8_t bDescriptorSubtype
uint8_t bDescriptorSubtype
uint8_t bDescriptorSubtype