USB Device CDC API#

USB Device CDC API.

Modules#

sl_usbd_cdc_subclass_driver_t

Typedefs#

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)

Async comm callback.

Functions#

sl_status_t

FUNCTION PROTOTYPES.

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.

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.

sl_status_t
sl_usbd_cdc_is_enabled(uint8_t class_nbr, bool *p_enabled)

Get the CDC class enable state.

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.

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.

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.

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.

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.

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.

Macros#

#define
#define

COMMUNICATIONS CLASS SUBCLASS CODES DEFINES.

#define

COMMUNICATION CLASS PROTOCOL CODES DEFINES.

#define

DATA INTERFACE CLASS PROTOCOL CODES DEFINES.

#define

MANAGEMENT ELEMENTS REQUESTS DEFINES.

#define

CDC FUNCTIONAL DESCRIPTOR TYPE DEFINES.

#define

CDC FUNCTIONAL DESCRIPTOR SUBTYPE DEFINES.

#define

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.


Definition at line 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.

Parameters
N/A

CDC FUNCTIONS

Initializes CDC class.

Returns

  • Returns SL_STATUS_OK on success or another SL_STATUS code on failure.


Definition at line 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.

Parameters
N/Asubclass

Communication class subclass subcode (see Note #1).

N/Ap_subclass_drv

Pointer to the CDC subclass driver.

N/Ap_subclass_arg

Pointer to the CDC subclass driver argument.

N/Aprotocol

Communication class protocol code.

N/Anotify_en

Notification enabled : true Enable CDC class notifications. false Disable CDC class notifications.

N/Anotify_interval

Notification interval in milliseconds (must be a power of 2).

N/Ap_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'.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Aconfig_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Aisoc_en

Data interface isochronous enable (see Note #1) :

  • true Data interface uses isochronous EPs.

  • false Data interface uses bulk EPs.

N/Aprotocol

Data interface protocol code.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Adata_if_nbr

CDC data interface number.

N/Ap_buf

Pointer to the destination buffer to receive data.

N/Abuf_len

Number of octets to receive.

N/Atimeout

Timeout in milliseconds.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Adata_if_nbr

CDC data interface number.

N/Ap_buf

Pointer to the destination buffer to receive data.

N/Abuf_len

Number of octets to receive.

N/Aasync_fnct

Function that will be invoked upon completion of receive operation.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Adata_if_nbr

CDC data interface number.

N/Ap_buf

Pointer to the buffer of data that will be transmitted.

N/Abuf_len

Number of octets to transmit.

N/Atimeout

Timeout in milliseconds.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Adata_if_nbr

CDC data interface number.

N/Ap_buf

Pointer to the buffer of data that will be transmitted.

N/Abuf_len

Number of octets to transmit.

N/Aasync_fnct

Function that will be invoked upon completion of transfer operation.

N/Ap_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.


Definition at line 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.

Parameters
N/Aclass_nbr

Class instance number.

N/Anotification

Notification code.

N/Avalue

Notification value.

N/Ap_buf

Pointer to the notification buffer (see Note #1).

N/Adata_len

Length of the data portion of the notification.

N/Ap_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.


Definition at line 494 of file protocol/usb/inc/sl_usbd_class_cdc.h

Macro Definition Documentation#

SL_USBD_CDC_NBR_NONE#

#define SL_USBD_CDC_NBR_NONE
Value:
255u

MODULE.

INCLUDE FILES DEFINES CDC INVALID INSTANCE NUMBERS DEFINES


Definition at line 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_NONE
Value:
255u

Definition at line 58 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_RSVD#

#define SL_USBD_CDC_SUBCLASS_RSVD
Value:
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.


Definition at line 67 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_DLCM#

#define SL_USBD_CDC_SUBCLASS_DLCM
Value:
0x01u

Definition at line 68 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_ACM#

#define SL_USBD_CDC_SUBCLASS_ACM
Value:
0x02u

Definition at line 69 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_TCM#

#define SL_USBD_CDC_SUBCLASS_TCM
Value:
0x03u

Definition at line 70 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_MCCM#

#define SL_USBD_CDC_SUBCLASS_MCCM
Value:
0x04u

Definition at line 71 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_CAPICM#

#define SL_USBD_CDC_SUBCLASS_CAPICM
Value:
0x05u

Definition at line 72 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_ENCM#

#define SL_USBD_CDC_SUBCLASS_ENCM
Value:
0x06u

Definition at line 73 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_ATM#

#define SL_USBD_CDC_SUBCLASS_ATM
Value:
0x07u

Definition at line 74 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_WHCM#

#define SL_USBD_CDC_SUBCLASS_WHCM
Value:
0x08u

Definition at line 75 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_DEV_MGMT#

#define SL_USBD_CDC_SUBCLASS_DEV_MGMT
Value:
0x09u

Definition at line 76 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_MDLM#

#define SL_USBD_CDC_SUBCLASS_MDLM
Value:
0x0Au

Definition at line 77 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_OBEX#

#define SL_USBD_CDC_SUBCLASS_OBEX
Value:
0x0Bu

Definition at line 78 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_EEM#

#define SL_USBD_CDC_SUBCLASS_EEM
Value:
0x0Cu

Definition at line 79 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_NCM#

#define SL_USBD_CDC_SUBCLASS_NCM
Value:
0x0Du

Definition at line 80 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_SUBCLASS_VENDOR#

#define SL_USBD_CDC_SUBCLASS_VENDOR
Value:
0xFEu

Definition at line 81 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_COMM_PROTOCOL_NONE#

#define SL_USBD_CDC_COMM_PROTOCOL_NONE
Value:
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.


Definition at line 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_V250
Value:
0x01u

Definition at line 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_101
Value:
0x02u

Definition at line 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_ANNEX
Value:
0x03u

Definition at line 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_07
Value:
0x04u

Definition at line 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_07
Value:
0x05u

Definition at line 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_CDMA
Value:
0x06u

Definition at line 96 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_COMM_PROTOCOL_EEM#

#define SL_USBD_CDC_COMM_PROTOCOL_EEM
Value:
0x07u

Definition at line 97 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_COMM_PROTOCOL_EXT#

#define SL_USBD_CDC_COMM_PROTOCOL_EXT
Value:
0xFEu

Definition at line 99 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_COMM_PROTOCOL_VENDOR#

#define SL_USBD_CDC_COMM_PROTOCOL_VENDOR
Value:
0xFFu

Definition at line 100 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_NONE#

#define SL_USBD_CDC_DATA_PROTOCOL_NONE
Value:
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.


Definition at line 109 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_NTB#

#define SL_USBD_CDC_DATA_PROTOCOL_NTB
Value:
0x01u

Definition at line 110 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_PHY#

#define SL_USBD_CDC_DATA_PROTOCOL_PHY
Value:
0x30u

Definition at line 111 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_HDLC#

#define SL_USBD_CDC_DATA_PROTOCOL_HDLC
Value:
0x31u

Definition at line 112 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_TRANS#

#define SL_USBD_CDC_DATA_PROTOCOL_TRANS
Value:
0x32u

Definition at line 113 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_Q921M#

#define SL_USBD_CDC_DATA_PROTOCOL_Q921M
Value:
0x50u

Definition at line 114 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_Q921#

#define SL_USBD_CDC_DATA_PROTOCOL_Q921
Value:
0x51u

Definition at line 115 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_Q921TM#

#define SL_USBD_CDC_DATA_PROTOCOL_Q921TM
Value:
0x52u

Definition at line 116 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_COMPRES#

#define SL_USBD_CDC_DATA_PROTOCOL_COMPRES
Value:
0x90u

Definition at line 117 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_Q9131#

#define SL_USBD_CDC_DATA_PROTOCOL_Q9131
Value:
0x91u

Definition at line 118 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_V24#

#define SL_USBD_CDC_DATA_PROTOCOL_V24
Value:
0x92u

Definition at line 119 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_CAPI#

#define SL_USBD_CDC_DATA_PROTOCOL_CAPI
Value:
0x93u

Definition at line 120 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_HOST#

#define SL_USBD_CDC_DATA_PROTOCOL_HOST
Value:
0xFDu

Definition at line 121 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_CDC#

#define SL_USBD_CDC_DATA_PROTOCOL_CDC
Value:
0xFEu

Definition at line 125 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DATA_PROTOCOL_VENDOR#

#define SL_USBD_CDC_DATA_PROTOCOL_VENDOR
Value:
0xFFu

Definition at line 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_COMM
Value:
0x00u

MANAGEMENT ELEMENTS REQUESTS DEFINES.

Note(s) : (1) Management elements requests are defined in table 19 from the CDC specification revision 1.2.


Definition at line 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_RESP
Value:
0x01u

Definition at line 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_FEATURE
Value:
0x02u

Definition at line 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_FEATURE
Value:
0x03u

Definition at line 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_FEATURE
Value:
0x04u

Definition at line 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_STATE
Value:
0x10u

Definition at line 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_STATE
Value:
0x11u

Definition at line 141 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_REQ_PULSE_SETUP#

#define SL_USBD_CDC_REQ_PULSE_SETUP
Value:
0x12u

Definition at line 142 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_REQ_SEND_PULSE#

#define SL_USBD_CDC_REQ_SEND_PULSE
Value:
0x13u

Definition at line 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_TIME
Value:
0x14u

Definition at line 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_JACK
Value:
0x15u

Definition at line 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_CODING
Value:
0x20u

Definition at line 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_CODING
Value:
0x21u

Definition at line 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_STATE
Value:
0x22u

Definition at line 148 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_REQ_SEND_BREAK#

#define SL_USBD_CDC_REQ_SEND_BREAK
Value:
0x23u

Definition at line 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_PAARMS
Value:
0x30u

Definition at line 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_PARAMS
Value:
0x31u

Definition at line 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_PARAMS
Value:
0x32u

Definition at line 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_PARAMS
Value:
0x33u

Definition at line 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_PARAMS
Value:
0x34u

Definition at line 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_PARAMS
Value:
0x35u

Definition at line 155 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_REQ_DIAL_DIGITS#

#define SL_USBD_CDC_REQ_DIAL_DIGITS
Value:
0x36u

Definition at line 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_PARAM
Value:
0x37u

Definition at line 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_PARAM
Value:
0x38u

Definition at line 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_PARAM
Value:
0x39u

Definition at line 159 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_REQ_GET_PROFILE#

#define SL_USBD_CDC_REQ_GET_PROFILE
Value:
0x3Au

Definition at line 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_FILTER
Value:
0x40u

Definition at line 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_FILTER
Value:
0x41u

Definition at line 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_FILTER
Value:
0x42u

Definition at line 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_FILTER
Value:
0x43u

Definition at line 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_STAT
Value:
0x44u

Definition at line 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_FMT
Value:
0x50u

Definition at line 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_FMT
Value:
0x51u

Definition at line 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_STAT
Value:
0x52u

Definition at line 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_VC
Value:
0x53u

Definition at line 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_STAT
Value:
0x54u

Definition at line 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_PARAM2
Value:
0x80u

Definition at line 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_ADDR
Value:
0x81u

Definition at line 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_ADDR
Value:
0x82u

Definition at line 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_FMT
Value:
0x83u

Definition at line 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_FMT
Value:
0x84u

Definition at line 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_SIZE
Value:
0x85u

Definition at line 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_SIZE
Value:
0x86u

Definition at line 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_SIZE
Value:
0x87u

Definition at line 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_SIZE
Value:
0x88u

Definition at line 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_MODE
Value:
0x89u

Definition at line 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_MODE
Value:
0x8Au

Definition at line 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_IF
Value:
0x24u

CDC FUNCTIONAL DESCRIPTOR TYPE DEFINES.

Note(s) : (1) Functional descriptors types are defined in table 12 from the CDC specification revision 1.2.


Definition at line 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_EP
Value:
0x25u

Definition at line 191 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_HEADER#

#define SL_USBD_CDC_DESC_SUBTYPE_HEADER
Value:
0x00u

CDC FUNCTIONAL DESCRIPTOR SUBTYPE DEFINES.

Note(s) : (1) Functional descriptors subtypes are defined in table 13 from the CDC specification revision 1.2.


Definition at line 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_MGMT
Value:
0x01u

Definition at line 203 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_ACM#

#define SL_USBD_CDC_DESC_SUBTYPE_ACM
Value:
0x02u

Definition at line 204 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_DLM#

#define SL_USBD_CDC_DESC_SUBTYPE_DLM
Value:
0x03u

Definition at line 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_RINGER
Value:
0x04u

Definition at line 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_LINE
Value:
0x05u

Definition at line 209 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_UNION#

#define SL_USBD_CDC_DESC_SUBTYPE_UNION
Value:
0x06u

Definition at line 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_SEL
Value:
0x07u

Definition at line 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_OPERA
Value:
0x08u

Definition at line 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_TERM
Value:
0x09u

Definition at line 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_TERM
Value:
0x0Au

Definition at line 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_UNIT
Value:
0x0Bu

Definition at line 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_UNIT
Value:
0x0Cu

Definition at line 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_MGMT
Value:
0x0Du

Definition at line 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_CTRL
Value:
0x0Eu

Definition at line 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_NET
Value:
0x0Fu

Definition at line 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_NET
Value:
0x10u

Definition at line 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_CTRL
Value:
0x11u

Definition at line 221 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_MOBILE#

#define SL_USBD_CDC_DESC_SUBTYPE_MOBILE
Value:
DLM              0x12u

Definition at line 222 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_DETAIL#

#define SL_USBD_CDC_DESC_SUBTYPE_DETAIL
Value:
0x13u

Definition at line 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_MGMT
Value:
0x14u

Definition at line 224 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_OBEX#

#define SL_USBD_CDC_DESC_SUBTYPE_OBEX
Value:
0x15u

Definition at line 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_SET
Value:
0x16u

Definition at line 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_DETAIL
Value:
0x17u

Definition at line 227 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_TCM#

#define SL_USBD_CDC_DESC_SUBTYPE_TCM
Value:
0x18u

Definition at line 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_SERV
Value:
0x19u

Definition at line 229 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_NCM#

#define SL_USBD_CDC_DESC_SUBTYPE_NCM
Value:
0x1Au

Definition at line 230 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_DESC_SUBTYPE_VENDOR#

#define SL_USBD_CDC_DESC_SUBTYPE_VENDOR
Value:
0xFEu

Definition at line 231 of file protocol/usb/inc/sl_usbd_class_cdc.h

SL_USBD_CDC_NOTIFICATION_HEADER#

#define SL_USBD_CDC_NOTIFICATION_HEADER
Value:
8u

CDC NOTIFICATION DEFINES.


Definition at line 237 of file protocol/usb/inc/sl_usbd_class_cdc.h