51 CDC_COMM_SUBCLASS_DIRECT_LINE_CONTROL_MODEL = 0x01 ,
52 CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL = 0x02 ,
53 CDC_COMM_SUBCLASS_TELEPHONE_CONTROL_MODEL = 0x03 ,
54 CDC_COMM_SUBCLASS_MULTICHANNEL_CONTROL_MODEL = 0x04 ,
55 CDC_COMM_SUBCLASS_CAPI_CONTROL_MODEL = 0x05 ,
56 CDC_COMM_SUBCLASS_ETHERNET_CONTROL_MODEL = 0x06 ,
57 CDC_COMM_SUBCLASS_ATM_NETWORKING_CONTROL_MODEL = 0x07 ,
58 CDC_COMM_SUBCLASS_WIRELESS_HANDSET_CONTROL_MODEL = 0x08 ,
59 CDC_COMM_SUBCLASS_DEVICE_MANAGEMENT = 0x09 ,
60 CDC_COMM_SUBCLASS_MOBILE_DIRECT_LINE_MODEL = 0x0A ,
61 CDC_COMM_SUBCLASS_OBEX = 0x0B ,
62 CDC_COMM_SUBCLASS_ETHERNET_EMULATION_MODEL = 0x0C ,
63 CDC_COMM_SUBCLASS_NETWORK_CONTROL_MODEL = 0x0D
64} cdc_comm_sublcass_type_t;
196#define CDC_LINE_CONDING_STOP_BITS_1 CDC_LINE_CODING_STOP_BITS_1
197#define CDC_LINE_CONDING_STOP_BITS_1_5 CDC_LINE_CODING_STOP_BITS_1_5
198#define CDC_LINE_CONDING_STOP_BITS_2 CDC_LINE_CODING_STOP_BITS_2
231TU_ATTR_BIT_FIELD_ORDER_BEGIN
252#define cdc_desc_func_union_n_t(no_slave)\
253 struct TU_ATTR_PACKED { \
255 uint8_t bDescriptorType ;\
256 uint8_t bDescriptorSubType ;\
257 uint8_t bControlInterface ;\
258 uint8_t bSubordinateInterface[no_slave] ;\
271#define cdc_desc_func_country_selection_n_t(no_country) \
272 struct TU_ATTR_PACKED { \
274 uint8_t bDescriptorType ;\
275 uint8_t bDescriptorSubType ;\
276 uint8_t iCountryCodeRelDate ;\
277 uint16_t wCountryCode[no_country] ;\
416TU_ATTR_BIT_FIELD_ORDER_END
TU_ATTR_PACKED_BEGIN TU_ATTR_BIT_FIELD_ORDER_BEGIN struct TU_ATTR_PACKED cdc_desc_func_header_t
Header Functional Descriptor (Communication Interface)
struct TU_ATTR_PACKED cdc_desc_func_telephone_operational_modes_t
Telephone Operational Modes Functional Descriptor.
TU_VERIFY_STATIC(sizeof(cdc_acm_capability_t)==1, "mostly problem with compiler")
cdc_management_request_t
Communication Interface Management Element Request Codes.
struct TU_ATTR_PACKED cdc_desc_func_union_t
Union Functional Descriptor (Communication Interface)
struct TU_ATTR_PACKED cdc_acm_capability_t
struct TU_ATTR_PACKED cdc_desc_func_telephone_call_state_reporting_capabilities_t
Telephone Call and Line State Reporting Capabilities Descriptor.
cdc_line_coding_stopbits_t
struct TU_ATTR_PACKED cdc_desc_func_direct_line_management_t
Direct Line Management Functional Descriptor.
struct TU_ATTR_PACKED cdc_desc_func_telephone_ringer_t
Telephone Ringer Functional Descriptor.
cdc_comm_protocol_type_t
Communication Interface Protocol Codes.
struct TU_ATTR_PACKED cdc_desc_func_call_management_t
Call Management Functional Descriptor.
struct TU_ATTR_PACKED cdc_line_coding_t
struct TU_ATTR_PACKED cdc_line_control_state_t
struct TU_ATTR_PACKED cdc_desc_func_acm_t
struct TU_ATTR_PACKED cdc_desc_func_country_selection_t
Country Selection Functional Descriptor (Communication Interface)
static uint8_t cdc_functional_desc_typeof(uint8_t const *p_desc)
cdc_func_desc_type_t
Communication Interface SubType Descriptor.
cdc_notification_request_t
6.3 Notification Codes
@ CDC_DATA_PROTOCOL_IN_PROTOCOL_UNIT_FUNCTIONAL_DESCRIPTOR
The protocol(s) are described using a ProtocolUnit Functional Descriptors on Communications Class Int...
@ CDC_DATA_PROTOCOL_EURO_ISDN
Euro-ISDN protocol control.
@ CDC_DATA_PROTOCOL_V42BIS_DATA_COMPRESSION
Data compression procedures.
@ CDC_DATA_PROTOCOL_CAPI_COMMAND
CAPI Commands.
@ CDC_DATA_PROTOCOL_Q921_DATA_LINK
Data link protocol for Q.931.
@ CDC_DATA_PROTOCOL_HDLC
HDLC.
@ CDC_DATA_PROTOCOL_Q921_MANAGEMENT
Management protocol for Q.921 data link protocol.
@ CDC_DATA_PROTOCOL_V24_RATE_ADAPTION_TO_ISDN
V.24 rate adaptation to ISDN.
@ CDC_DATA_PROTOCOL_ISDN_BRI
Physical interface protocol for ISDN BRI.
@ CDC_DATA_PROTOCOL_Q921_TEI_MULTIPLEXOR
TEI-multiplexor for Q.921 data link protocol.
@ CDC_DATA_PROTOCOL_TRANSPARENT
Transparent.
@ CDC_DATA_PROTOCOL_HOST_BASED_DRIVER
Host based driver. Note: This protocol code should only be used in messages between host and device t...
@ CDC_REQUEST_DIAL_DIGITS
@ CDC_REQUEST_SET_ATM_DEFAULT_VC
@ CDC_REQUEST_SET_ETHERNET_PACKET_FILTER
@ CDC_REQUEST_SET_UNIT_PARAMETER
@ CDC_REQUEST_SET_ETHERNET_MULTICAST_FILTERS
@ CDC_REQUEST_SET_LINE_PARMS
@ CDC_REQUEST_SET_LINE_CODING
@ CDC_REQUEST_CLEAR_COMM_FEATURE
@ CDC_REQUEST_SET_ATM_DATA_FORMAT
@ CDC_REQUEST_MDLM_SEMANTIC_MODEL
@ CDC_REQUEST_SET_RINGER_PARMS
@ CDC_REQUEST_GET_ATM_VC_STATISTICS
@ CDC_REQUEST_GET_ATM_DEVICE_STATISTICS
@ CDC_REQUEST_SET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER
@ CDC_REQUEST_GET_UNIT_PARAMETER
@ CDC_REQUEST_SEND_ENCAPSULATED_COMMAND
is used to issue a command in the format of the supported control protocol of the Communications Clas...
@ CDC_REQUEST_CLEAR_UNIT_PARAMETER
@ CDC_REQUEST_PULSE_SETUP
@ CDC_REQUEST_SET_AUX_LINE_STATE
@ CDC_REQUEST_SET_PULSE_TIME
@ CDC_REQUEST_GET_OPERATION_PARMS
@ CDC_REQUEST_SET_OPERATION_PARMS
@ CDC_REQUEST_GET_ENCAPSULATED_RESPONSE
is used to request a response in the format of the supported control protocol of the Communications C...
@ CDC_REQUEST_GET_LINE_PARMS
@ CDC_REQUEST_GET_RINGER_PARMS
@ CDC_REQUEST_GET_PROFILE
@ CDC_REQUEST_RING_AUX_JACK
@ CDC_REQUEST_GET_LINE_CODING
@ CDC_REQUEST_SET_HOOK_STATE
@ CDC_REQUEST_SET_COMM_FEATURE
@ CDC_REQUEST_GET_ETHERNET_STATISTIC
@ CDC_REQUEST_SET_CONTROL_LINE_STATE
@ CDC_REQUEST_GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER
@ CDC_REQUEST_GET_COMM_FEATURE
@ CDC_LINE_CODING_STOP_BITS_1
@ CDC_LINE_CODING_STOP_BITS_1_5
@ CDC_LINE_CODING_STOP_BITS_2
@ CDC_COMM_PROTOCOL_NONE
No specific protocol.
@ CDC_COMM_PROTOCOL_ATCOMMAND_GSM_707
AT Commands defined by GSM 07.07.
@ CDC_COMM_PROTOCOL_ATCOMMAND
AT Commands: V.250 etc.
@ CDC_COMM_PROTOCOL_ATCOMMAND_PCCA_101_AND_ANNEXO
AT Commands defined by PCCA-101 & Annex O.
@ CDC_COMM_PROTOCOL_ETHERNET_EMULATION_MODEL
Ethernet Emulation Model.
@ CDC_COMM_PROTOCOL_ATCOMMAND_3GPP_27007
AT Commands defined by 3GPP 27.007.
@ CDC_COMM_PROTOCOL_ATCOMMAND_PCCA_101
AT Commands defined by PCCA-101.
@ CDC_COMM_PROTOCOL_ATCOMMAND_CDMA
AT Commands defined by TIA for CDMA.
@ CDC_LINE_CODING_PARITY_MARK
@ CDC_LINE_CODING_PARITY_ODD
@ CDC_LINE_CODING_PARITY_SPACE
@ CDC_LINE_CODING_PARITY_EVEN
@ CDC_LINE_CODING_PARITY_NONE
@ CDC_FUNC_DESC_OBEX_SERVICE_IDENTIFIER
OBEX Service Identifier Functional Descriptor.
@ CDC_FUNC_DESC_MULTICHANEL_MANAGEMENT
Multi-Channel Management Functional Descriptor.
@ CDC_FUNC_DESC_OBEX
OBEX Functional Descriptor.
@ CDC_FUNC_DESC_DIRECT_LINE_MANAGEMENT
Direct Line Management Functional Descriptor.
@ CDC_FUNC_DESC_TELEPHONE_CONTROL_MODEL
Telephone Control Model Functional Descriptor.
@ CDC_FUNC_DESC_COMMAND_SET_DETAIL
Command Set Detail Functional Descriptor.
@ CDC_FUNC_DESC_UNION
Union Functional Descriptor.
@ CDC_FUNC_DESC_TELEPHONE_RINGER
Telephone Ringer Functional Descriptor.
@ CDC_FUNC_DESC_ABSTRACT_CONTROL_MANAGEMENT
Abstract Control Management Functional Descriptor.
@ CDC_FUNC_DESC_MOBILE_DIRECT_LINE_MODEL_DETAIL
MDLM Detail Functional Descriptor.
@ CDC_FUNC_DESC_CAPI_CONTROL_MANAGEMENT
CAPI Control Management Functional Descriptor.
@ CDC_FUNC_DESC_ATM_NETWORKING
ATM Networking Functional Descriptor.
@ CDC_FUNC_DESC_COMMAND_SET
Command Set Functional Descriptor.
@ CDC_FUNC_DESC_MOBILE_DIRECT_LINE_MODEL
Mobile Direct Line Model Functional Descriptor.
@ CDC_FUNC_DESC_CALL_MANAGEMENT
Call Management Functional Descriptor.
@ CDC_FUNC_DESC_HEADER
Header Functional Descriptor, which marks the beginning of the concatenated set of functional descrip...
@ CDC_FUNC_DESC_USB_TERMINAL
USB Terminal Functional Descriptor.
@ CDC_FUNC_DESC_EXTENSION_UNIT
Extension Unit Functional Descriptor.
@ CDC_FUNC_DESC_DEVICE_MANAGEMENT_MODEL
Device Management Model Functional Descriptor.
@ CDC_FUNC_DESC_COUNTRY_SELECTION
Country Selection Functional Descriptor.
@ CDC_FUNC_DESC_TELEPHONE_CALL_AND_LINE_STATE_REPORTING_CAPACITY
Telephone Call and Line State Reporting Capabilities Functional Descriptor.
@ CDC_FUNC_DESC_ETHERNET_NETWORKING
Ethernet Networking Functional Descriptor.
@ CDC_FUNC_DESC_NETWORK_CHANNEL_TERMINAL
Network Channel Terminal Descriptor.
@ CDC_FUNC_DESC_NCM
NCM Functional Descriptor.
@ CDC_FUNC_DESC_WIRELESS_HANDSET_CONTROL_MODEL
Wireless Handset Control Model Functional Descriptor.
@ CDC_FUNC_DESC_TELEPHONE_OPERATIONAL_MODES
Telephone Operational ModesFunctional Descriptor.
@ CDC_FUNC_DESC_PROTOCOL_UNIT
Protocol Unit Functional Descriptor.
@ CDC_CONTROL_LINE_STATE_DTR
@ CDC_CONTROL_LINE_STATE_RTS
@ CDC_NOTIF_CONNECTION_SPEED_CHANGE
This notification allows the device to inform the host-networking driver that a change in either the ...
@ CDC_NOTIF_CALL_STATE_CHANGE
@ CDC_NOTIF_NETWORK_CONNECTION
This notification allows the device to notify the host about network connection status.
@ CDC_NOTIF_RESPONSE_AVAILABLE
This notification allows the device to notify the hostthat a response is available....
@ CDC_NOTIF_MDLM_SEMANTIC_MODEL_NOTIFICATION
@ CDC_NOTIF_AUX_JACK_HOOK_STATE
@ CDC_NOTIF_LINE_STATE_CHANGE
AUDIO Channel Cluster Descriptor (4.1)
uint32_t dual_tone_multi_freq
0 : Cannot report dual tone multi-frequency (DTMF) digits input remotely over the telephone line....
uint8_t iCountryCodeRelDate
Index of a string giving the release date for the implemented ISO 3166 Country Codes.
uint8_t support_comm_request
Device supports the request combination of Set_Comm_Feature, Clear_Comm_Feature, and Get_Comm_Feature...
uint8_t bNumRingerPatterns
uint8_t support_send_break
Device supports the request Send_Break.
uint8_t bDescriptorSubType
Descriptor SubType. Value: AUDIO_CS_AC_INTERFACE_HEADER.
uint8_t send_recv_call
0 - Device does not handle call management itself. 1 - Device handles call management itself.
uint8_t handle_call
0 - Device sends/receives call management information only over the Communications Class interface....
uint8_t require_pulse_setup
Device requires extra Pulse_Setup request during pulse dialing sequence to disengage holding circuit.
uint16_t wCountryCode
Country code in the format as defined in [ISO3166], release date as specified inoffset 3 for the firs...
uint32_t line_state_change
0 : Does not support line state change notification. 1 : Does support line state change notification
uint8_t support_pulse_request
Device supports the request combination of Pulse_Setup, Send_Pulse, and Set_Pulse_Time.
uint8_t stop_bits
0: 1 stop bit - 1: 1.5 stop bits - 2: 2 stop bits
uint8_t support_line_request
Device supports the request combination of Set_Line_Coding, Set_Control_Line_State,...
uint32_t ringback_busy_fastbusy
0 : Reports only dialing state. 1 : Reports ringback, busy, and fast busy states.
uint8_t bControlInterface
Interface number of Communication Interface.
uint8_t computer_centric_mode
uint8_t bDescriptorType
Descriptor Type. Value: TUSB_DESC_CS_INTERFACE.
uint8_t bSubordinateInterface
Array of Interface number of Data Interface.
uint8_t bLength
Size of this descriptor in bytes: 9.
cdc_acm_capability_t bmCapabilities
uint8_t parity
0: None - 1: Odd - 2: Even - 3: Mark - 4: Space
uint8_t support_notification_network_connection
Device supports the notification Network_Connection.
struct TU_ATTR_PACKED::@5 bmCapabilities
uint32_t caller_id
0 : Does not report caller ID. 1 : Reports caller ID information.
uint8_t data_bits
can be 5, 6, 7, 8 or 16
uint16_t bcdCDC
CDC release number in Binary-Coded Decimal.
uint32_t incoming_distinctive
0 : Reports only incoming ringing. 1 : Reports incoming distinctive ringing patterns.
uint8_t support_aux_request
Device supports the request combination of Set_Aux_Line_State, Ring_Aux_Jack, and notification Aux_Ja...
uint32_t interrupted_dialtone
0 : Reports only dialtone (does not differentiate between normal and interrupted dialtone)....