STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
USBD CDC Exported Defines

CDC endpoint parameters, class request codes and control line state bits. More...

Macros

#define CDC_HS_BINTERVAL   0x10U
 Polling interval of the CDC command endpoint at high speed.
 
#define CDC_FS_BINTERVAL   0x10U
 Polling interval of the CDC command endpoint at full speed.
 
#define USB_CDC_CONFIG_DESC_SIZ   67U
 Size, in bytes, of the CDC configuration descriptor.
 
#define CDC_DATA_HS_IN_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE
 
#define CDC_DATA_HS_OUT_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE
 
#define CDC_DATA_FS_IN_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE
 
#define CDC_DATA_FS_OUT_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE
 
#define CDC_REQ_MAX_DATA_SIZE   0x7U
 Maximum size, in bytes, of a CDC class request data stage.
 
#define CDC_SEND_ENCAPSULATED_COMMAND   0x00U
 
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01U
 
#define CDC_SET_COMM_FEATURE   0x02U
 
#define CDC_GET_COMM_FEATURE   0x03U
 
#define CDC_CLEAR_COMM_FEATURE   0x04U
 
#define CDC_SET_LINE_CODING   0x20U
 
#define CDC_GET_LINE_CODING   0x21U
 
#define CDC_SET_CONTROL_LINE_STATE   0x22U
 
#define CDC_SEND_BREAK   0x23U
 
#define CLS_DTR   (1 << 0)
 DTR bit (Data Terminal Ready) in SET_CONTROL_LINE_STATE wValue.
 
#define CLS_RTS   (1 << 1)
 RTS bit (Request To Send) in SET_CONTROL_LINE_STATE wValue.
 

Detailed Description

CDC endpoint parameters, class request codes and control line state bits.

Macro Definition Documentation

◆ CDC_FS_BINTERVAL

#define CDC_FS_BINTERVAL   0x10U

Polling interval of the CDC command endpoint at full speed.

Can be overridden.

◆ CDC_HS_BINTERVAL

#define CDC_HS_BINTERVAL   0x10U

Polling interval of the CDC command endpoint at high speed.

Can be overridden.