STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Usbd_cdc_Exported_Defines
Collaboration diagram for Usbd_cdc_Exported_Defines:

Macros

#define CDC_IN_EP   0x81U /* EP1 for data IN */
#define CDC_OUT_EP   0x01U /* EP1 for data OUT */
#define CDC_CMD_EP   0x82U /* EP2 for CDC commands */
#define CDC_HS_BINTERVAL   0x10U
#define CDC_FS_BINTERVAL   0x10U
#define CDC_CMD_PACKET_SIZE   8U /* Control Endpoint Packet size */
#define CDC_DATA_HS_MAX_PACKET_SIZE   512U /* Endpoint IN & OUT Packet size */
#define CDC_DATA_FS_MAX_PACKET_SIZE   64U /* Endpoint IN & OUT Packet size */
#define USB_CDC_CONFIG_DESC_SIZ   67U
#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
#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

Detailed Description

Macro Definition Documentation

◆ CDC_CLEAR_COMM_FEATURE

#define CDC_CLEAR_COMM_FEATURE   0x04U

Definition at line 84 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_CMD_EP

#define CDC_CMD_EP   0x82U /* EP2 for CDC commands */

◆ CDC_CMD_PACKET_SIZE

#define CDC_CMD_PACKET_SIZE   8U /* Control Endpoint Packet size */

Definition at line 62 of file usbd_cdc.h.

Referenced by USBD_CDC_Init().

◆ CDC_DATA_FS_IN_PACKET_SIZE

#define CDC_DATA_FS_IN_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE

Definition at line 73 of file usbd_cdc.h.

Referenced by USBD_CDC_Init().

◆ CDC_DATA_FS_MAX_PACKET_SIZE

#define CDC_DATA_FS_MAX_PACKET_SIZE   64U /* Endpoint IN & OUT Packet size */

Definition at line 67 of file usbd_cdc.h.

Referenced by USBD_CDC_GetFSCfgDesc(), and USBD_CDC_GetOtherSpeedCfgDesc().

◆ CDC_DATA_FS_OUT_PACKET_SIZE

#define CDC_DATA_FS_OUT_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE

Definition at line 74 of file usbd_cdc.h.

Referenced by USBD_CDC_Init(), and USBD_CDC_ReceivePacket().

◆ CDC_DATA_HS_IN_PACKET_SIZE

#define CDC_DATA_HS_IN_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE

Definition at line 70 of file usbd_cdc.h.

Referenced by USBD_CDC_Init().

◆ CDC_DATA_HS_MAX_PACKET_SIZE

#define CDC_DATA_HS_MAX_PACKET_SIZE   512U /* Endpoint IN & OUT Packet size */

Definition at line 66 of file usbd_cdc.h.

Referenced by USBD_CDC_GetHSCfgDesc().

◆ CDC_DATA_HS_OUT_PACKET_SIZE

#define CDC_DATA_HS_OUT_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE

Definition at line 71 of file usbd_cdc.h.

Referenced by USBD_CDC_Init(), and USBD_CDC_ReceivePacket().

◆ CDC_FS_BINTERVAL

#define CDC_FS_BINTERVAL   0x10U

Definition at line 58 of file usbd_cdc.h.

Referenced by USBD_CDC_GetFSCfgDesc(), USBD_CDC_GetOtherSpeedCfgDesc(), and USBD_CDC_Init().

◆ CDC_GET_COMM_FEATURE

#define CDC_GET_COMM_FEATURE   0x03U

Definition at line 83 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_GET_ENCAPSULATED_RESPONSE

#define CDC_GET_ENCAPSULATED_RESPONSE   0x01U

Definition at line 81 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_GET_LINE_CODING

#define CDC_GET_LINE_CODING   0x21U

Definition at line 86 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_HS_BINTERVAL

#define CDC_HS_BINTERVAL   0x10U

Definition at line 54 of file usbd_cdc.h.

Referenced by USBD_CDC_GetHSCfgDesc(), and USBD_CDC_Init().

◆ CDC_IN_EP

#define CDC_IN_EP   0x81U /* EP1 for data IN */

◆ CDC_OUT_EP

#define CDC_OUT_EP   0x01U /* EP1 for data OUT */

◆ CDC_REQ_MAX_DATA_SIZE

#define CDC_REQ_MAX_DATA_SIZE   0x7U

Definition at line 76 of file usbd_cdc.h.

Referenced by USBD_CDC_Setup().

◆ CDC_SEND_BREAK

#define CDC_SEND_BREAK   0x23U

Definition at line 88 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_SEND_ENCAPSULATED_COMMAND

#define CDC_SEND_ENCAPSULATED_COMMAND   0x00U

Definition at line 80 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_SET_COMM_FEATURE

#define CDC_SET_COMM_FEATURE   0x02U

Definition at line 82 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_SET_CONTROL_LINE_STATE

#define CDC_SET_CONTROL_LINE_STATE   0x22U

Definition at line 87 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ CDC_SET_LINE_CODING

#define CDC_SET_LINE_CODING   0x20U

Definition at line 85 of file usbd_cdc.h.

Referenced by CDC_Control_HS().

◆ USB_CDC_CONFIG_DESC_SIZ

#define USB_CDC_CONFIG_DESC_SIZ   67U

Definition at line 69 of file usbd_cdc.h.