APM:Libraries
Macros
Usbd_cdc_Exported_Defines
Collaboration diagram for Usbd_cdc_Exported_Defines:

Macros

#define USB_CDC_CONFIG_DESC_SIZ   (67)
 
#define USB_CDC_DESC_SIZ   (67-9)
 
#define CDC_DESCRIPTOR_TYPE   0x21
 
#define DEVICE_CLASS_CDC   0x02
 
#define DEVICE_SUBCLASS_CDC   0x00
 
#define USB_DEVICE_DESCRIPTOR_TYPE   0x01
 
#define USB_CONFIGURATION_DESCRIPTOR_TYPE   0x02
 
#define USB_STRING_DESCRIPTOR_TYPE   0x03
 
#define USB_INTERFACE_DESCRIPTOR_TYPE   0x04
 
#define USB_ENDPOINT_DESCRIPTOR_TYPE   0x05
 
#define STANDARD_ENDPOINT_DESC_SIZE   0x09
 
#define CDC_DATA_IN_PACKET_SIZE   CDC_DATA_MAX_PACKET_SIZE
 
#define CDC_DATA_OUT_PACKET_SIZE   CDC_DATA_MAX_PACKET_SIZE
 
#define SEND_ENCAPSULATED_COMMAND   0x00
 
#define GET_ENCAPSULATED_RESPONSE   0x01
 
#define SET_COMM_FEATURE   0x02
 
#define GET_COMM_FEATURE   0x03
 
#define CLEAR_COMM_FEATURE   0x04
 
#define SET_LINE_CODING   0x20
 
#define GET_LINE_CODING   0x21
 
#define SET_CONTROL_LINE_STATE   0x22
 
#define SEND_BREAK   0x23
 
#define NO_CMD   0xFF
 

Detailed Description

Macro Definition Documentation

◆ CDC_DATA_IN_PACKET_SIZE

#define CDC_DATA_IN_PACKET_SIZE   CDC_DATA_MAX_PACKET_SIZE

Definition at line 65 of file usbd_cdc_core.h.

Referenced by schedule_cdc_in(), usbd_cdc_DataIn(), and usbd_cdc_Init().

◆ CDC_DATA_OUT_PACKET_SIZE

#define CDC_DATA_OUT_PACKET_SIZE   CDC_DATA_MAX_PACKET_SIZE

Definition at line 67 of file usbd_cdc_core.h.

Referenced by try_start_rx(), and usbd_cdc_Init().

◆ CDC_DESCRIPTOR_TYPE

#define CDC_DESCRIPTOR_TYPE   0x21

Definition at line 51 of file usbd_cdc_core.h.

Referenced by usbd_cdc_Setup().

◆ CLEAR_COMM_FEATURE

#define CLEAR_COMM_FEATURE   0x04

Definition at line 80 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ DEVICE_CLASS_CDC

#define DEVICE_CLASS_CDC   0x02

Definition at line 53 of file usbd_cdc_core.h.

Referenced by usbd_cdc_Init().

◆ DEVICE_SUBCLASS_CDC

#define DEVICE_SUBCLASS_CDC   0x00

Definition at line 54 of file usbd_cdc_core.h.

Referenced by usbd_cdc_Init().

◆ GET_COMM_FEATURE

#define GET_COMM_FEATURE   0x03

Definition at line 79 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ GET_ENCAPSULATED_RESPONSE

#define GET_ENCAPSULATED_RESPONSE   0x01

Definition at line 77 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ GET_LINE_CODING

#define GET_LINE_CODING   0x21

Definition at line 82 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ NO_CMD

#define NO_CMD   0xFF

Definition at line 85 of file usbd_cdc_core.h.

Referenced by usbd_cdc_EP0_RxReady().

◆ SEND_BREAK

#define SEND_BREAK   0x23

Definition at line 84 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ SEND_ENCAPSULATED_COMMAND

#define SEND_ENCAPSULATED_COMMAND   0x00

Definition at line 76 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ SET_COMM_FEATURE

#define SET_COMM_FEATURE   0x02

Definition at line 78 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ SET_CONTROL_LINE_STATE

#define SET_CONTROL_LINE_STATE   0x22

Definition at line 83 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ SET_LINE_CODING

#define SET_LINE_CODING   0x20

Definition at line 81 of file usbd_cdc_core.h.

Referenced by VCP_Ctrl().

◆ STANDARD_ENDPOINT_DESC_SIZE

#define STANDARD_ENDPOINT_DESC_SIZE   0x09

Definition at line 63 of file usbd_cdc_core.h.

◆ USB_CDC_CONFIG_DESC_SIZ

#define USB_CDC_CONFIG_DESC_SIZ   (67)

Definition at line 48 of file usbd_cdc_core.h.

◆ USB_CDC_DESC_SIZ

#define USB_CDC_DESC_SIZ   (67-9)

Definition at line 49 of file usbd_cdc_core.h.

Referenced by usbd_cdc_Setup().

◆ USB_CONFIGURATION_DESCRIPTOR_TYPE

#define USB_CONFIGURATION_DESCRIPTOR_TYPE   0x02

Definition at line 58 of file usbd_cdc_core.h.

◆ USB_DEVICE_DESCRIPTOR_TYPE

#define USB_DEVICE_DESCRIPTOR_TYPE   0x01

Definition at line 57 of file usbd_cdc_core.h.

◆ USB_ENDPOINT_DESCRIPTOR_TYPE

#define USB_ENDPOINT_DESCRIPTOR_TYPE   0x05

Definition at line 61 of file usbd_cdc_core.h.

◆ USB_INTERFACE_DESCRIPTOR_TYPE

#define USB_INTERFACE_DESCRIPTOR_TYPE   0x04

Definition at line 60 of file usbd_cdc_core.h.

◆ USB_STRING_DESCRIPTOR_TYPE

#define USB_STRING_DESCRIPTOR_TYPE   0x03

Definition at line 59 of file usbd_cdc_core.h.