Prusa MINI Firmware overview
Usbd_cdc_Exported_Defines
Collaboration diagram for Usbd_cdc_Exported_Defines:

Macros

#define CDC_IN_EP   0x81 /* EP1 for data IN */
 
#define CDC_OUT_EP   0x01 /* EP1 for data OUT */
 
#define CDC_CMD_EP   0x82 /* EP2 for CDC commands */
 
#define CDC_DATA_HS_MAX_PACKET_SIZE   512 /* Endpoint IN & OUT Packet size */
 
#define CDC_DATA_FS_MAX_PACKET_SIZE   64 /* Endpoint IN & OUT Packet size */
 
#define CDC_CMD_PACKET_SIZE   8 /* Control Endpoint Packet size */
 
#define USB_CDC_CONFIG_DESC_SIZ   67
 
#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_SEND_ENCAPSULATED_COMMAND   0x00
 
#define CDC_GET_ENCAPSULATED_RESPONSE   0x01
 
#define CDC_SET_COMM_FEATURE   0x02
 
#define CDC_GET_COMM_FEATURE   0x03
 
#define CDC_CLEAR_COMM_FEATURE   0x04
 
#define CDC_SET_LINE_CODING   0x20
 
#define CDC_GET_LINE_CODING   0x21
 
#define CDC_SET_CONTROL_LINE_STATE   0x22
 
#define CDC_SEND_BREAK   0x23
 

Detailed Description

Macro Definition Documentation

◆ CDC_IN_EP

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

◆ CDC_OUT_EP

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

◆ CDC_CMD_EP

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

◆ CDC_DATA_HS_MAX_PACKET_SIZE

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

◆ CDC_DATA_FS_MAX_PACKET_SIZE

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

◆ CDC_CMD_PACKET_SIZE

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

◆ USB_CDC_CONFIG_DESC_SIZ

#define USB_CDC_CONFIG_DESC_SIZ   67

◆ CDC_DATA_HS_IN_PACKET_SIZE

#define CDC_DATA_HS_IN_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE

◆ CDC_DATA_HS_OUT_PACKET_SIZE

#define CDC_DATA_HS_OUT_PACKET_SIZE   CDC_DATA_HS_MAX_PACKET_SIZE

◆ CDC_DATA_FS_IN_PACKET_SIZE

#define CDC_DATA_FS_IN_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE

◆ CDC_DATA_FS_OUT_PACKET_SIZE

#define CDC_DATA_FS_OUT_PACKET_SIZE   CDC_DATA_FS_MAX_PACKET_SIZE

◆ CDC_SEND_ENCAPSULATED_COMMAND

#define CDC_SEND_ENCAPSULATED_COMMAND   0x00

◆ CDC_GET_ENCAPSULATED_RESPONSE

#define CDC_GET_ENCAPSULATED_RESPONSE   0x01

◆ CDC_SET_COMM_FEATURE

#define CDC_SET_COMM_FEATURE   0x02

◆ CDC_GET_COMM_FEATURE

#define CDC_GET_COMM_FEATURE   0x03

◆ CDC_CLEAR_COMM_FEATURE

#define CDC_CLEAR_COMM_FEATURE   0x04

◆ CDC_SET_LINE_CODING

#define CDC_SET_LINE_CODING   0x20

◆ CDC_GET_LINE_CODING

#define CDC_GET_LINE_CODING   0x21

◆ CDC_SET_CONTROL_LINE_STATE

#define CDC_SET_CONTROL_LINE_STATE   0x22

◆ CDC_SEND_BREAK

#define CDC_SEND_BREAK   0x23