155 CDC_REQUEST_SET_COMM_FEATURE = 0x02,
156 CDC_REQUEST_GET_COMM_FEATURE = 0x03,
157 CDC_REQUEST_CLEAR_COMM_FEATURE = 0x04,
159 CDC_REQUEST_SET_AUX_LINE_STATE = 0x10,
160 CDC_REQUEST_SET_HOOK_STATE = 0x11,
161 CDC_REQUEST_PULSE_SETUP = 0x12,
162 CDC_REQUEST_SEND_PULSE = 0x13,
163 CDC_REQUEST_SET_PULSE_TIME = 0x14,
164 CDC_REQUEST_RING_AUX_JACK = 0x15,
166 CDC_REQUEST_SET_LINE_CODING = 0x20,
167 CDC_REQUEST_GET_LINE_CODING = 0x21,
168 CDC_REQUEST_SET_CONTROL_LINE_STATE = 0x22,
169 CDC_REQUEST_SEND_BREAK = 0x23,
171 CDC_REQUEST_SET_RINGER_PARMS = 0x30,
172 CDC_REQUEST_GET_RINGER_PARMS = 0x31,
173 CDC_REQUEST_SET_OPERATION_PARMS = 0x32,
174 CDC_REQUEST_GET_OPERATION_PARMS = 0x33,
175 CDC_REQUEST_SET_LINE_PARMS = 0x34,
176 CDC_REQUEST_GET_LINE_PARMS = 0x35,
177 CDC_REQUEST_DIAL_DIGITS = 0x36,
178 CDC_REQUEST_SET_UNIT_PARAMETER = 0x37,
179 CDC_REQUEST_GET_UNIT_PARAMETER = 0x38,
180 CDC_REQUEST_CLEAR_UNIT_PARAMETER = 0x39,
181 CDC_REQUEST_GET_PROFILE = 0x3A,
183 CDC_REQUEST_SET_ETHERNET_MULTICAST_FILTERS = 0x40,
184 CDC_REQUEST_SET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER = 0x41,
185 CDC_REQUEST_GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER = 0x42,
186 CDC_REQUEST_SET_ETHERNET_PACKET_FILTER = 0x43,
187 CDC_REQUEST_GET_ETHERNET_STATISTIC = 0x44,
189 CDC_REQUEST_SET_ATM_DATA_FORMAT = 0x50,
190 CDC_REQUEST_GET_ATM_DEVICE_STATISTICS = 0x51,
191 CDC_REQUEST_SET_ATM_DEFAULT_VC = 0x52,
192 CDC_REQUEST_GET_ATM_VC_STATISTICS = 0x53,
194 CDC_REQUEST_MDLM_SEMANTIC_MODEL = 0x60,
205 AUX_JACK_HOOK_STATE = 0x08,
210 CALL_STATE_CHANGE = 0x28,
211 LINE_STATE_CHANGE = 0x29,
213 MDLM_SEMANTIC_MODEL_NOTIFICATION = 0x40,
220 typedef ATTR_PACKED_STRUCT(
struct) {
228 typedef ATTR_PACKED_STRUCT(
struct) {
236 #define cdc_desc_func_union_n_t(no_slave)\
237 ATTR_PACKED_STRUCT(struct) { \
239 uint8_t bDescriptorType ;\
240 uint8_t bDescriptorSubType ;\
241 uint8_t bControlInterface ;\
242 uint8_t bSubordinateInterface[no_slave] ;\
246 typedef ATTR_PACKED_STRUCT(
struct) {
251 uint16_t wCountryCode[] ;
254 #define cdc_desc_func_country_selection_n_t(no_country) \
255 ATTR_PACKED_STRUCT(struct) {\
257 uint8_t bDescriptorType ;\
258 uint8_t bDescriptorSubType ;\
259 uint8_t iCountryCodeRelDate ;\
260 uint16_t wCountryCode[no_country] ;\
269 typedef ATTR_PACKED_STRUCT(
struct) {
275 uint8_t handle_call : 1;
276 uint8_t send_recv_call : 1;
280 uint8_t bDataInterface;
284 typedef ATTR_PACKED_STRUCT(
struct) {
285 uint8_t support_comm_request : 1;
286 uint8_t support_line_request : 1;
287 uint8_t support_send_break : 1;
288 uint8_t support_notification_network_connection : 1;
296 typedef ATTR_PACKED_STRUCT(
struct) {
305 typedef ATTR_PACKED_STRUCT(
struct) {
310 uint8_t require_pulse_setup : 1;
311 uint8_t support_aux_request : 1;
312 uint8_t support_pulse_request : 1;
320 typedef ATTR_PACKED_STRUCT(
struct) {
324 uint8_t bRingerVolSteps ;
325 uint8_t bNumRingerPatterns ;
331 typedef ATTR_PACKED_STRUCT(
struct) {
336 uint8_t simple_mode : 1;
337 uint8_t standalone_mode : 1;
338 uint8_t computer_centric_mode : 1;
346 typedef ATTR_PACKED_STRUCT(
struct) {
351 uint32_t interrupted_dialtone : 1;
352 uint32_t ringback_busy_fastbusy : 1;
353 uint32_t caller_id : 1;
354 uint32_t incoming_distinctive : 1;
355 uint32_t dual_tone_multi_freq : 1;
356 uint32_t line_state_change : 1;
362 static inline uint8_t cdc_functional_desc_typeof(uint8_t
const * p_desc)
370 typedef ATTR_PACKED_STRUCT(
struct) {
379 typedef ATTR_PACKED_STRUCT(
struct) {
380 uint16_t dte_is_present : 1;
381 uint16_t half_duplex_carrier_control : 1;
uint8_t bLength
Size of this descriptor in bytes.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
Management protocol for Q.921 data link protocol.
cdc_comm_protocol_type_t
Communication Interface Protocol Codes.
Abstract Control Model [USBPSTN1.2].
Host based driver. Note: This protocol code should only be used in messages between host and device t...
uint8_t bLength
Size of this descriptor in bytes.
is used to issue a command in the format of the supported control protocol of the Communications Clas...
Command Set Functional Descriptor.
OBEX Service Identifier Functional Descriptor.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
Telephone Call and Line State Reporting Capabilities Descriptor.
USB Terminal Functional Descriptor.
AT Commands defined by PCCA-101 & Annex O.
Direct Line Control Model [USBPSTN1.2].
Multi-Channel Control Model [USBISDN1.2].
cdc_data_protocol_type_t
Data Interface Protocol Codes.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
CAPI Control Model [USBISDN1.2].
This notification allows the device to notify the host about network connection status.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
TEI-multiplexor for Q.921 data link protocol.
OBEX Functional Descriptor.
Network Channel Terminal Descriptor.
Protocol Unit Functional Descriptor.
Mobile Direct Line Model [USBWMC1.1].
#define ATTR_PURE
Many functions have no effects except the return value and their return value depends only on the par...
Header Functional Descriptor, which marks the beginning of the concatenated set of functional descrip...
This notification allows the device to inform the host-networking driver that a change in either the ...
Telephone Call and Line State Reporting Capabilities Functional Descriptor.
uint8_t iCountryCodeRelDate
Index of a string giving the release date for the implemented ISO 3166 Country Codes.
Device Management Model Functional Descriptor.
Direct Line Management Functional Descriptor.
Telephone Control Model [USBPSTN1.2].
Ethernet Networking Functional Descriptor.
Device Management [USBWMC1.1].
uint8_t bSubordinateInterface
Array of Interface number of Data Interface.
uint8_t stop_bits
0: 1 stop bit - 1: 1.5 stop bits - 2: 2 stop bits
Telephone Operational ModesFunctional Descriptor.
uint8_t bLength
Size of this descriptor in bytes.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
Telephone Control Model Functional Descriptor.
Ethernet Emulation Model.
AT Commands defined by GSM 07.07.
Extension Unit Functional Descriptor.
is used to request a response in the format of the supported control protocol of the Communications C...
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
Wireless Handset Control Model [USBWMC1.1].
Physical interface protocol for ISDN BRI.
AT Commands defined by TIA for CDMA.
The protocol(s) are described using a ProtocolUnit Functional Descriptors on Communications Class Int...
cdc_management_request_t
Communication Interface Management Element Request Codes.
Abstract Control Management Functional Descriptor.
cdc_func_desc_type_t
Communication Interface SubType Descriptor.
CAPI Control Management Functional Descriptor.
Data link protocol for Q.931.
ATM Networking Control Model [USBATM1.2].
Wireless Handset Control Model Functional Descriptor.
Union Functional Descriptor.
Call Management Functional Descriptor.
Euro-ISDN protocol control.
cdc_pipeid_t
CDC Pipe ID, used to indicate which pipe the API is addressing to (Notification, Out, In)
Call Management Functional Descriptor.
cdc_comm_sublcass_type_t
Communication Interface Subclass Codes.
Telephone Operational Modes Functional Descriptor.
Country Selection Functional Descriptor (Communication Interface)
Direct Line Management Functional Descriptor.
AT Commands defined by 3GPP 27.007.
This notification allows the device to notify the hostthat a response is available. This response can be retrieved with a subsequent CDC_REQUEST_GET_ENCAPSULATED_RESPONSE request.
Abstract Control Management Functional Descriptor.
Telephone Ringer Functional Descriptor.
Mobile Direct Line Model Functional Descriptor.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
ATM Networking Functional Descriptor.
uint8_t bLength
Size of this descriptor in bytes.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
uint8_t bDescriptorSubType
Descriptor SubType one of above CDC_FUCN_DESC_.
Command Set Detail Functional Descriptor.
Union Functional Descriptor (Communication Interface)
uint8_t bControlInterface
Interface number of Communication Interface.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
uint8_t bLength
Size of this descriptor in bytes.
Ethernet Networking Control Model [USBECM1.2].
uint8_t data_bits
can be 5, 6, 7, 8 or 16
uint8_t bLength
Size of this descriptor in bytes.
uint8_t parity
0: None - 1: Odd - 2: Even - 3: Mark - 4: Space
uint8_t bLength
Size of this descriptor in bytes.
Ethernet Emulation Model [USBEEM1.0].
#define ATTR_ALWAYS_INLINE
Generally, functions are not inlined unless optimization is specified. For functions declared inline...
Telephone Ringer Functional Descriptor.
Multi-Channel Management Functional Descriptor.
MDLM Detail Functional Descriptor.
uint8_t bDescriptorType
Descriptor Type, must be Class-Specific.
Data compression procedures.
cdc_notification_request_t
Communication Interface Management Element Notification Codes.
uint8_t bLength
Size of this descriptor in bytes.
Country Selection Functional Descriptor.
V.24 rate adaptation to ISDN.
AT Commands defined by PCCA-101.