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 105 int8_t (*
Control) (uint8_t, uint8_t * , uint16_t);
141 #define USBD_CDC_CLASS &USBD_CDC uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev)
USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev)
USBD_CDC_DataOut Data received on non-control Out endpoint.
uint8_t USBD_CDC_SetRxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff)
USBD_CDC_SetRxBuffer.
USBD_ClassTypeDef USBD_CDC
Header file for the usbd_ioreq.c file.
uint8_t USBD_CDC_RegisterInterface(USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
USBD_CDC_RegisterInterface.
#define CDC_DATA_HS_MAX_PACKET_SIZE
int8_t(* Control)(uint8_t, uint8_t *, uint16_t)
struct _USBD_CDC_Itf USBD_CDC_ItfTypeDef
int8_t(* Receive)(uint8_t *, uint32_t *)