30 #ifndef __USB_CDC_CORE_H_ 31 #define __USB_CDC_CORE_H_ 48 #define USB_CDC_CONFIG_DESC_SIZ (67) 49 #define USB_CDC_DESC_SIZ (67-9) 51 #define DEVICE_CLASS_CDC 0x02 52 #define DEVICE_SUBCLASS_CDC 0x00 55 #define USB_DEVICE_DESCRIPTOR_TYPE 0x01 56 #define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02 57 #define USB_STRING_DESCRIPTOR_TYPE 0x03 58 #define USB_INTERFACE_DESCRIPTOR_TYPE 0x04 59 #define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05 61 #define STANDARD_ENDPOINT_DESC_SIZE 0x09 63 #define CDC_DATA_IN_PACKET_SIZE CDC_DATA_MAX_PACKET_SIZE 65 #define CDC_DATA_OUT_PACKET_SIZE CDC_DATA_MAX_PACKET_SIZE 74 #define SEND_ENCAPSULATED_COMMAND 0x00 75 #define GET_ENCAPSULATED_RESPONSE 0x01 76 #define SET_COMM_FEATURE 0x02 77 #define GET_COMM_FEATURE 0x03 78 #define CLEAR_COMM_FEATURE 0x04 79 #define SET_LINE_CODING 0x20 80 #define GET_LINE_CODING 0x21 81 #define SET_CONTROL_LINE_STATE 0x22 82 #define SEND_BREAK 0x23 97 uint16_t (*
pIf_Ctrl) (uint32_t Cmd, uint8_t* Buf, uint32_t Len);
98 uint16_t (*
pIf_DataTx) (
const uint8_t* Buf, uint32_t Len);
struct _CDC_IF_PROP CDC_IF_Prop_TypeDef
USBD_Class_cb_TypeDef USBD_CDC_cb
uint16_t(* pIf_DeInit)(void)
uint16_t(* pIf_DataRx)(uint8_t *Buf, uint32_t Len)
uint16_t(* pIf_DataTx)(const uint8_t *Buf, uint32_t Len)
uint16_t(* pIf_Ctrl)(uint32_t Cmd, uint8_t *Buf, uint32_t Len)
header file for the usbd_ioreq.c file
uint16_t(* pIf_Init)(void)