Prusa MINI Firmware overview
|
Go to the documentation of this file.
52 #define CDC_IN_EP 0x81
53 #define CDC_OUT_EP 0x01
54 #define CDC_CMD_EP 0x82
57 #define CDC_DATA_HS_MAX_PACKET_SIZE 512
58 #define CDC_DATA_FS_MAX_PACKET_SIZE 64
59 #define CDC_CMD_PACKET_SIZE 8
61 #define USB_CDC_CONFIG_DESC_SIZ 67
62 #define CDC_DATA_HS_IN_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE
63 #define CDC_DATA_HS_OUT_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE
65 #define CDC_DATA_FS_IN_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
66 #define CDC_DATA_FS_OUT_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
71 #define CDC_SEND_ENCAPSULATED_COMMAND 0x00
72 #define CDC_GET_ENCAPSULATED_RESPONSE 0x01
73 #define CDC_SET_COMM_FEATURE 0x02
74 #define CDC_GET_COMM_FEATURE 0x03
75 #define CDC_CLEAR_COMM_FEATURE 0x04
76 #define CDC_SET_LINE_CODING 0x20
77 #define CDC_GET_LINE_CODING 0x21
78 #define CDC_SET_CONTROL_LINE_STATE 0x22
79 #define CDC_SEND_BREAK 0x23
141 #define USBD_CDC_CLASS &USBD_CDC
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
Definition: usbd_cdc.c:810
uint32_t bitrate
Definition: usbd_cdc.h:95
int8_t(* Control)(uint8_t, uint8_t *, uint16_t)
Definition: usbd_cdc.h:105
uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev)
USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.
Definition: usbd_cdc.c:883
__IO uint32_t RxState
Definition: usbd_cdc.h:122
struct _USBD_CDC_Itf USBD_CDC_ItfTypeDef
uint8_t * RxBuffer
Definition: usbd_cdc.h:116
uint8_t data[8]
Definition: masstorage.h:49
uint8_t format
Definition: usbd_cdc.h:96
uint8_t CmdLength
Definition: usbd_cdc.h:115
__IO uint32_t TxState
Definition: usbd_cdc.h:121
int8_t(* DeInit)(void)
Definition: usbd_cdc.h:104
Definition: usbd_def.h:225
uint8_t paritytype
Definition: usbd_cdc.h:97
USBD_ClassTypeDef USBD_CDC
Definition: usbd_cdc.c:159
void
Definition: png.h:1083
Definition: usbd_def.h:160
Definition: usbd_cdc.h:101
Header file for the usbd_ioreq.c file.
Definition: usbd_cdc.h:111
const uint8_t[]
Definition: 404_html.c:3
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev)
USBD_CDC_DataOut Data received on non-control Out endpoint.
Definition: usbd_cdc.c:846
#define CDC_DATA_HS_MAX_PACKET_SIZE
Definition: usbd_cdc.h:57
uint8_t USBD_CDC_RegisterInterface(USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
USBD_CDC_RegisterInterface.
Definition: usbd_cdc.c:790
uint8_t * TxBuffer
Definition: usbd_cdc.h:117
uint32_t RxLength
Definition: usbd_cdc.h:118
uint8_t USBD_CDC_SetRxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff)
USBD_CDC_SetRxBuffer.
Definition: usbd_cdc.c:829
uint8_t CmdOpCode
Definition: usbd_cdc.h:114
png_uint_32 length
Definition: png.c:2247
uint32_t TxLength
Definition: usbd_cdc.h:119
Definition: usbd_cdc.h:93
uint8_t datatype
Definition: usbd_cdc.h:98
int8_t(* Receive)(uint8_t *, uint32_t *)
Definition: usbd_cdc.h:106
int8_t(* Init)(void)
Definition: usbd_cdc.h:103