USB Device CDC API#
USB Device CDC API.
Modules#
Typedefs#
Async comm callback.
Functions#
FUNCTION PROTOTYPES.
Add a new instance of the CDC class.
Add a CDC instance into the USB device configuration.
Get the CDC class enable state.
Add a data interface class to the CDC communication interface class.
Receive data on the CDC data interface.
Receive data on the CDC data interface asynchronously.
Send data on the CDC data interface.
Send data on the CDC data interface asynchronously.
Send a communication interface class notification to the host.
Macros#
MODULE.
COMMUNICATIONS CLASS SUBCLASS CODES DEFINES.
COMMUNICATION CLASS PROTOCOL CODES DEFINES.
DATA INTERFACE CLASS PROTOCOL CODES DEFINES.
MANAGEMENT ELEMENTS REQUESTS DEFINES.
CDC FUNCTIONAL DESCRIPTOR TYPE DEFINES.
CDC FUNCTIONAL DESCRIPTOR SUBTYPE DEFINES.
CDC NOTIFICATION DEFINES.
Typedef Documentation#
sl_usbd_cdc_async_function_t#
typedef void(* sl_usbd_cdc_async_function_t) (uint8_t class_nbr, void *p_buf, uint32_t buf_len, uint32_t xfer_len, void *p_callback_arg, sl_status_t status) )(uint8_t class_nbr, void *p_buf, uint32_t buf_len, uint32_t xfer_len, void *p_callback_arg, sl_status_t status)
Async comm callback.
262
of file protocol/usb/inc/sl_usbd_class_cdc.h
Function Documentation#
sl_usbd_cdc_init#
sl_status_t sl_usbd_cdc_init (void )
FUNCTION PROTOTYPES.
N/A |
CDC FUNCTIONS
Initializes CDC class.
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
288
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_create_instance#
sl_status_t sl_usbd_cdc_create_instance (uint8_t subclass, sl_usbd_cdc_subclass_driver_t * p_subclass_drv, void * p_subclass_arg, uint8_t protocol, bool notify_en, uint16_t notify_interval, uint8_t * p_class_nbr)
Add a new instance of the CDC class.
N/A | subclass | Communication class subclass subcode (see Note #1). |
N/A | p_subclass_drv | Pointer to the CDC subclass driver. |
N/A | p_subclass_arg | Pointer to the CDC subclass driver argument. |
N/A | protocol | Communication class protocol code. |
N/A | notify_en | Notification enabled : true Enable CDC class notifications. false Disable CDC class notifications. |
N/A | notify_interval | Notification interval in milliseconds (must be a power of 2). |
N/A | p_class_nbr | Pointer to a variable that will receive class instance number. The variable is set to CDC class instance number if no errors are returned., otherwise it is set to SL_USBD_CDC_NBR_NONE. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
Note
(1) Communication class subclass codes are defined in 'sl_usbd_class_cdc.h' 'SL_USBD_CDC_SUBCLASS_XXXX'.
316
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_add_to_configuration#
sl_status_t sl_usbd_cdc_add_to_configuration (uint8_t class_nbr, uint8_t config_nbr)
Add a CDC instance into the USB device configuration.
N/A | class_nbr | Class instance number. |
N/A | config_nbr | Configuration index to which to add the new CDC class interface. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
333
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_is_enabled#
sl_status_t sl_usbd_cdc_is_enabled (uint8_t class_nbr, bool * p_enabled)
Get the CDC class enable state.
N/A | class_nbr | Class instance number. |
N/A | p_enabled | Pointer to a boolean variable that will receive enable state. The variable is set to true if CDC class is enabled. The variable is set to false if CDC class is not enabled. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
347
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_add_data_interface#
sl_status_t sl_usbd_cdc_add_data_interface (uint8_t class_nbr, bool isoc_en, uint8_t protocol, uint8_t * p_if_nbr)
Add a data interface class to the CDC communication interface class.
N/A | class_nbr | Class instance number. |
N/A | isoc_en | Data interface isochronous enable (see Note #1) :
|
N/A | protocol | Data interface protocol code. |
N/A | p_if_nbr | Pointer to a variable that will receive data interface number. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
Note
(1) The value of 'isoc_en' must be false. Isochronous EPs are not supported.
367
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_read_data#
sl_status_t sl_usbd_cdc_read_data (uint8_t class_nbr, uint8_t data_if_nbr, uint8_t * p_buf, uint32_t buf_len, uint16_t timeout, uint32_t * p_xfer_len)
Receive data on the CDC data interface.
N/A | class_nbr | Class instance number. |
N/A | data_if_nbr | CDC data interface number. |
N/A | p_buf | Pointer to the destination buffer to receive data. |
N/A | buf_len | Number of octets to receive. |
N/A | timeout | Timeout in milliseconds. |
N/A | p_xfer_len | Pointer to a variable that will receive transfer length. If no errors are returned, the variable is set to number of octets received, otherwise it is set to 0. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
391
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_read_data_async#
sl_status_t sl_usbd_cdc_read_data_async (uint8_t class_nbr, uint8_t data_if_nbr, uint8_t * p_buf, uint32_t buf_len, sl_usbd_cdc_async_function_t async_fnct, void * p_async_arg)
Receive data on the CDC data interface asynchronously.
N/A | class_nbr | Class instance number. |
N/A | data_if_nbr | CDC data interface number. |
N/A | p_buf | Pointer to the destination buffer to receive data. |
N/A | buf_len | Number of octets to receive. |
N/A | async_fnct | Function that will be invoked upon completion of receive operation. |
N/A | p_async_arg | Pointer to the argument that will be passed as parameter of 'async_fnct'. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
415
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_write_data#
sl_status_t sl_usbd_cdc_write_data (uint8_t class_nbr, uint8_t data_if_nbr, uint8_t * p_buf, uint32_t buf_len, uint16_t timeout, uint32_t * p_xfer_len)
Send data on the CDC data interface.
N/A | class_nbr | Class instance number. |
N/A | data_if_nbr | CDC data interface number. |
N/A | p_buf | Pointer to the buffer of data that will be transmitted. |
N/A | buf_len | Number of octets to transmit. |
N/A | timeout | Timeout in milliseconds. |
N/A | p_xfer_len | Pointer to a variable that will receive transfer length. If no errors are returned, the variable is set to number of octets transmitted, otherwise it is set to 0. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
441
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_write_data_async#
sl_status_t sl_usbd_cdc_write_data_async (uint8_t class_nbr, uint8_t data_if_nbr, uint8_t * p_buf, uint32_t buf_len, sl_usbd_cdc_async_function_t async_fnct, void * p_async_arg)
Send data on the CDC data interface asynchronously.
N/A | class_nbr | Class instance number. |
N/A | data_if_nbr | CDC data interface number. |
N/A | p_buf | Pointer to the buffer of data that will be transmitted. |
N/A | buf_len | Number of octets to transmit. |
N/A | async_fnct | Function that will be invoked upon completion of transfer operation. |
N/A | p_async_arg | Pointer to the argument that will be passed as parameter of 'async_fnct'. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
465
of file protocol/usb/inc/sl_usbd_class_cdc.h
sl_usbd_cdc_notify_host#
sl_status_t sl_usbd_cdc_notify_host (uint8_t class_nbr, uint8_t notification, uint16_t value, uint8_t * p_buf, uint16_t data_len, bool * p_result)
Send a communication interface class notification to the host.
N/A | class_nbr | Class instance number. |
N/A | notification | Notification code. |
N/A | value | Notification value. |
N/A | p_buf | Pointer to the notification buffer (see Note #1). |
N/A | data_len | Length of the data portion of the notification. |
N/A | p_result | Pointer to a boolean variable that will receive the result of the operation. The variable is set to true if no errors are encountered, otherwise it is set to false. |
Returns
Returns SL_STATUS_OK on success or another SL_STATUS code on failure.
Note
(1) The notification buffer MUST contain space for the notification header 'SL_USBD_CDC_NOTIFICATION_HEADER' plus the variable-length data portion.
494
of file protocol/usb/inc/sl_usbd_class_cdc.h
Macro Definition Documentation#
SL_USBD_CDC_NBR_NONE#
#define SL_USBD_CDC_NBR_NONEValue:
255u
MODULE.
INCLUDE FILES DEFINES CDC INVALID INSTANCE NUMBERS DEFINES
57
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_IF_NBR_NONE#
#define SL_USBD_CDC_DATA_IF_NBR_NONEValue:
255u
58
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_RSVD#
#define SL_USBD_CDC_SUBCLASS_RSVDValue:
0x00u
COMMUNICATIONS CLASS SUBCLASS CODES DEFINES.
Note(s) : (1) Communication class subclass codes are defined in table 4 from the CDC specification revision 1.2.
67
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_DLCM#
#define SL_USBD_CDC_SUBCLASS_DLCMValue:
0x01u
68
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_ACM#
#define SL_USBD_CDC_SUBCLASS_ACMValue:
0x02u
69
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_TCM#
#define SL_USBD_CDC_SUBCLASS_TCMValue:
0x03u
70
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_MCCM#
#define SL_USBD_CDC_SUBCLASS_MCCMValue:
0x04u
71
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_CAPICM#
#define SL_USBD_CDC_SUBCLASS_CAPICMValue:
0x05u
72
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_ENCM#
#define SL_USBD_CDC_SUBCLASS_ENCMValue:
0x06u
73
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_ATM#
#define SL_USBD_CDC_SUBCLASS_ATMValue:
0x07u
74
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_WHCM#
#define SL_USBD_CDC_SUBCLASS_WHCMValue:
0x08u
75
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_DEV_MGMT#
#define SL_USBD_CDC_SUBCLASS_DEV_MGMTValue:
0x09u
76
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_MDLM#
#define SL_USBD_CDC_SUBCLASS_MDLMValue:
0x0Au
77
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_OBEX#
#define SL_USBD_CDC_SUBCLASS_OBEXValue:
0x0Bu
78
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_EEM#
#define SL_USBD_CDC_SUBCLASS_EEMValue:
0x0Cu
79
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_NCM#
#define SL_USBD_CDC_SUBCLASS_NCMValue:
0x0Du
80
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_SUBCLASS_VENDOR#
#define SL_USBD_CDC_SUBCLASS_VENDORValue:
0xFEu
81
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_NONE#
#define SL_USBD_CDC_COMM_PROTOCOL_NONEValue:
0x00u
COMMUNICATION CLASS PROTOCOL CODES DEFINES.
Note(s) : (1) Communication class protocol codes are defined in table 5 from the CDC specification revision 1.2.
90
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_V250#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_V250Value:
0x01u
91
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_PCCA_101#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_PCCA_101Value:
0x02u
92
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_PCCA_101_ANNEX#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_PCCA_101_ANNEXValue:
0x03u
93
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_GSM_7_07#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_GSM_7_07Value:
0x04u
94
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_3GPP_27_07#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_3GPP_27_07Value:
0x05u
95
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_AT_TIA_CDMA#
#define SL_USBD_CDC_COMM_PROTOCOL_AT_TIA_CDMAValue:
0x06u
96
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_EEM#
#define SL_USBD_CDC_COMM_PROTOCOL_EEMValue:
0x07u
97
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_EXT#
#define SL_USBD_CDC_COMM_PROTOCOL_EXTValue:
0xFEu
99
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_COMM_PROTOCOL_VENDOR#
#define SL_USBD_CDC_COMM_PROTOCOL_VENDORValue:
0xFFu
100
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_NONE#
#define SL_USBD_CDC_DATA_PROTOCOL_NONEValue:
0x00u
DATA INTERFACE CLASS PROTOCOL CODES DEFINES.
Note(s) : (1) Data interface class protocol codes are defined in table 7 from the CDC specification revision 1.2.
109
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_NTB#
#define SL_USBD_CDC_DATA_PROTOCOL_NTBValue:
0x01u
110
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_PHY#
#define SL_USBD_CDC_DATA_PROTOCOL_PHYValue:
0x30u
111
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_HDLC#
#define SL_USBD_CDC_DATA_PROTOCOL_HDLCValue:
0x31u
112
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_TRANS#
#define SL_USBD_CDC_DATA_PROTOCOL_TRANSValue:
0x32u
113
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_Q921M#
#define SL_USBD_CDC_DATA_PROTOCOL_Q921MValue:
0x50u
114
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_Q921#
#define SL_USBD_CDC_DATA_PROTOCOL_Q921Value:
0x51u
115
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_Q921TM#
#define SL_USBD_CDC_DATA_PROTOCOL_Q921TMValue:
0x52u
116
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_COMPRES#
#define SL_USBD_CDC_DATA_PROTOCOL_COMPRESValue:
0x90u
117
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_Q9131#
#define SL_USBD_CDC_DATA_PROTOCOL_Q9131Value:
0x91u
118
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_V24#
#define SL_USBD_CDC_DATA_PROTOCOL_V24Value:
0x92u
119
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_CAPI#
#define SL_USBD_CDC_DATA_PROTOCOL_CAPIValue:
0x93u
120
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_HOST#
#define SL_USBD_CDC_DATA_PROTOCOL_HOSTValue:
0xFDu
121
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_CDC#
#define SL_USBD_CDC_DATA_PROTOCOL_CDCValue:
0xFEu
125
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DATA_PROTOCOL_VENDOR#
#define SL_USBD_CDC_DATA_PROTOCOL_VENDORValue:
0xFFu
126
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SEND_ENCAP_COMM#
#define SL_USBD_CDC_REQ_SEND_ENCAP_COMMValue:
0x00u
MANAGEMENT ELEMENTS REQUESTS DEFINES.
Note(s) : (1) Management elements requests are defined in table 19 from the CDC specification revision 1.2.
135
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ENCAP_RESP#
#define SL_USBD_CDC_REQ_GET_ENCAP_RESPValue:
0x01u
136
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_COMM_FEATURE#
#define SL_USBD_CDC_REQ_SET_COMM_FEATUREValue:
0x02u
137
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_COMM_FEATURE#
#define SL_USBD_CDC_REQ_GET_COMM_FEATUREValue:
0x03u
138
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_CLR_COMM_FEATURE#
#define SL_USBD_CDC_REQ_CLR_COMM_FEATUREValue:
0x04u
139
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_AUX_LINE_STATE#
#define SL_USBD_CDC_REQ_SET_AUX_LINE_STATEValue:
0x10u
140
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_HOOK_STATE#
#define SL_USBD_CDC_REQ_SET_HOOK_STATEValue:
0x11u
141
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_PULSE_SETUP#
#define SL_USBD_CDC_REQ_PULSE_SETUPValue:
0x12u
142
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SEND_PULSE#
#define SL_USBD_CDC_REQ_SEND_PULSEValue:
0x13u
143
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_PULSE_TIME#
#define SL_USBD_CDC_REQ_SET_PULSE_TIMEValue:
0x14u
144
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_RING_AUX_JACK#
#define SL_USBD_CDC_REQ_RING_AUX_JACKValue:
0x15u
145
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_LINE_CODING#
#define SL_USBD_CDC_REQ_SET_LINE_CODINGValue:
0x20u
146
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_LINE_CODING#
#define SL_USBD_CDC_REQ_GET_LINE_CODINGValue:
0x21u
147
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_CTRL_LINE_STATE#
#define SL_USBD_CDC_REQ_SET_CTRL_LINE_STATEValue:
0x22u
148
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SEND_BREAK#
#define SL_USBD_CDC_REQ_SEND_BREAKValue:
0x23u
149
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_RINGER_PAARMS#
#define SL_USBD_CDC_REQ_SET_RINGER_PAARMSValue:
0x30u
150
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_RINGER_PARAMS#
#define SL_USBD_CDC_REQ_GET_RINGER_PARAMSValue:
0x31u
151
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_OPERATION_PARAMS#
#define SL_USBD_CDC_REQ_SET_OPERATION_PARAMSValue:
0x32u
152
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_OPERATION_PARAMS#
#define SL_USBD_CDC_REQ_GET_OPERATION_PARAMSValue:
0x33u
153
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_LINE_PARAMS#
#define SL_USBD_CDC_REQ_SET_LINE_PARAMSValue:
0x34u
154
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_LINE_PARAMS#
#define SL_USBD_CDC_REQ_GET_LINE_PARAMSValue:
0x35u
155
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_DIAL_DIGITS#
#define SL_USBD_CDC_REQ_DIAL_DIGITSValue:
0x36u
156
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_UNIT_PARAM#
#define SL_USBD_CDC_REQ_SET_UNIT_PARAMValue:
0x37u
157
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_UNIT_PARAM#
#define SL_USBD_CDC_REQ_GET_UNIT_PARAMValue:
0x38u
158
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_CLR_UNUT_PARAM#
#define SL_USBD_CDC_REQ_CLR_UNUT_PARAMValue:
0x39u
159
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_PROFILE#
#define SL_USBD_CDC_REQ_GET_PROFILEValue:
0x3Au
160
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_ETHER_MULTI_FILTER#
#define SL_USBD_CDC_REQ_SET_ETHER_MULTI_FILTERValue:
0x40u
161
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_ETHER_PWR_MGT_FILTER#
#define SL_USBD_CDC_REQ_SET_ETHER_PWR_MGT_FILTERValue:
0x41u
162
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ETHER_PWR_MGT_FILTER#
#define SL_USBD_CDC_REQ_GET_ETHER_PWR_MGT_FILTERValue:
0x42u
163
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_ETHER_PKT_FILTER#
#define SL_USBD_CDC_REQ_SET_ETHER_PKT_FILTERValue:
0x43u
164
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ETHER_STAT#
#define SL_USBD_CDC_REQ_GET_ETHER_STATValue:
0x44u
165
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_ATM_DATA_FMT#
#define SL_USBD_CDC_REQ_SET_ATM_DATA_FMTValue:
0x50u
166
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ATM_DATA_FMT#
#define SL_USBD_CDC_REQ_GET_ATM_DATA_FMTValue:
0x51u
167
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ATM_DEV_STAT#
#define SL_USBD_CDC_REQ_GET_ATM_DEV_STATValue:
0x52u
168
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_ATM_DFLT_VC#
#define SL_USBD_CDC_REQ_SET_ATM_DFLT_VCValue:
0x53u
169
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_ATM_VC_STAT#
#define SL_USBD_CDC_REQ_GET_ATM_VC_STATValue:
0x54u
170
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_NTB_PARAM2#
#define SL_USBD_CDC_REQ_GET_NTB_PARAM2Value:
0x80u
171
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_NET_ADDR#
#define SL_USBD_CDC_REQ_GET_NET_ADDRValue:
0x81u
172
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_NET_ADDR#
#define SL_USBD_CDC_REQ_SET_NET_ADDRValue:
0x82u
173
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_NTB_FMT#
#define SL_USBD_CDC_REQ_GET_NTB_FMTValue:
0x83u
174
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_NTB_FMT#
#define SL_USBD_CDC_REQ_SET_NTB_FMTValue:
0x84u
175
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_NTB_INPUT_SIZE#
#define SL_USBD_CDC_REQ_GET_NTB_INPUT_SIZEValue:
0x85u
176
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_NTB_INPUT_SIZE#
#define SL_USBD_CDC_REQ_SET_NTB_INPUT_SIZEValue:
0x86u
177
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_MAX_DATAGRAM_SIZE#
#define SL_USBD_CDC_REQ_GET_MAX_DATAGRAM_SIZEValue:
0x87u
178
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_MAX_DATAGRAM_SIZE#
#define SL_USBD_CDC_REQ_SET_MAX_DATAGRAM_SIZEValue:
0x88u
179
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_GET_CRC_MODE#
#define SL_USBD_CDC_REQ_GET_CRC_MODEValue:
0x89u
180
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_REQ_SET_CRC_MODE#
#define SL_USBD_CDC_REQ_SET_CRC_MODEValue:
0x8Au
181
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_TYPE_CS_IF#
#define SL_USBD_CDC_DESC_TYPE_CS_IFValue:
0x24u
CDC FUNCTIONAL DESCRIPTOR TYPE DEFINES.
Note(s) : (1) Functional descriptors types are defined in table 12 from the CDC specification revision 1.2.
190
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_TYPE_CS_EP#
#define SL_USBD_CDC_DESC_TYPE_CS_EPValue:
0x25u
191
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_HEADER#
#define SL_USBD_CDC_DESC_SUBTYPE_HEADERValue:
0x00u
CDC FUNCTIONAL DESCRIPTOR SUBTYPE DEFINES.
Note(s) : (1) Functional descriptors subtypes are defined in table 13 from the CDC specification revision 1.2.
202
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_CALL_MGMT#
#define SL_USBD_CDC_DESC_SUBTYPE_CALL_MGMTValue:
0x01u
203
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_ACM#
#define SL_USBD_CDC_DESC_SUBTYPE_ACMValue:
0x02u
204
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_DLM#
#define SL_USBD_CDC_DESC_SUBTYPE_DLMValue:
0x03u
205
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_TEL_RINGER#
#define SL_USBD_CDC_DESC_SUBTYPE_TEL_RINGERValue:
0x04u
206
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_TEL_CALL_LINE#
#define SL_USBD_CDC_DESC_SUBTYPE_TEL_CALL_LINEValue:
0x05u
209
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_UNION#
#define SL_USBD_CDC_DESC_SUBTYPE_UNIONValue:
0x06u
210
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_COUNTRY_SEL#
#define SL_USBD_CDC_DESC_SUBTYPE_COUNTRY_SELValue:
0x07u
211
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_TEL_OPERA#
#define SL_USBD_CDC_DESC_SUBTYPE_TEL_OPERAValue:
0x08u
212
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_USB_TERM#
#define SL_USBD_CDC_DESC_SUBTYPE_USB_TERMValue:
0x09u
213
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_NET_CH_TERM#
#define SL_USBD_CDC_DESC_SUBTYPE_NET_CH_TERMValue:
0x0Au
214
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_PROTOCOL_UNIT#
#define SL_USBD_CDC_DESC_SUBTYPE_PROTOCOL_UNITValue:
0x0Bu
215
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_EXT_UNIT#
#define SL_USBD_CDC_DESC_SUBTYPE_EXT_UNITValue:
0x0Cu
216
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_MULTI_CH_MGMT#
#define SL_USBD_CDC_DESC_SUBTYPE_MULTI_CH_MGMTValue:
0x0Du
217
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_CAPI_CTRL#
#define SL_USBD_CDC_DESC_SUBTYPE_CAPI_CTRLValue:
0x0Eu
218
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_ETHER_NET#
#define SL_USBD_CDC_DESC_SUBTYPE_ETHER_NETValue:
0x0Fu
219
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_ATM_NET#
#define SL_USBD_CDC_DESC_SUBTYPE_ATM_NETValue:
0x10u
220
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_WIRELESS_CTRL#
#define SL_USBD_CDC_DESC_SUBTYPE_WIRELESS_CTRLValue:
0x11u
221
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_MOBILE#
#define SL_USBD_CDC_DESC_SUBTYPE_MOBILEValue:
DLM 0x12u
222
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_DETAIL#
#define SL_USBD_CDC_DESC_SUBTYPE_DETAILValue:
0x13u
223
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_DEV_MGMT#
#define SL_USBD_CDC_DESC_SUBTYPE_DEV_MGMTValue:
0x14u
224
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_OBEX#
#define SL_USBD_CDC_DESC_SUBTYPE_OBEXValue:
0x15u
225
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_CMD_SET#
#define SL_USBD_CDC_DESC_SUBTYPE_CMD_SETValue:
0x16u
226
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_CMD_SET_DETAIL#
#define SL_USBD_CDC_DESC_SUBTYPE_CMD_SET_DETAILValue:
0x17u
227
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_TCM#
#define SL_USBD_CDC_DESC_SUBTYPE_TCMValue:
0x18u
228
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_OBEX_SERV#
#define SL_USBD_CDC_DESC_SUBTYPE_OBEX_SERVValue:
0x19u
229
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_NCM#
#define SL_USBD_CDC_DESC_SUBTYPE_NCMValue:
0x1Au
230
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_DESC_SUBTYPE_VENDOR#
#define SL_USBD_CDC_DESC_SUBTYPE_VENDORValue:
0xFEu
231
of file protocol/usb/inc/sl_usbd_class_cdc.h
SL_USBD_CDC_NOTIFICATION_HEADER#
#define SL_USBD_CDC_NOTIFICATION_HEADERValue:
8u
CDC NOTIFICATION DEFINES.
237
of file protocol/usb/inc/sl_usbd_class_cdc.h