94 #define USB_CDC_IDLE 0 95 #define USB_CDC_BUSY 1 131 #ifdef USE_USB_OTG_HS 132 static uint8_t *USBD_cdc_GetOtherCfgDesc (uint8_t speed, uint16_t *length);
144 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 145 #if defined ( __ICCARM__ ) 146 #pragma data_alignment=4 151 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 152 #if defined ( __ICCARM__ ) 153 #pragma data_alignment=4 158 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 159 #if defined ( __ICCARM__ ) 160 #pragma data_alignment=4 165 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 166 #if defined ( __ICCARM__ ) 167 #pragma data_alignment=4 172 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 173 #if defined ( __ICCARM__ ) 174 #pragma data_alignment=4 180 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 181 #if defined ( __ICCARM__ ) 182 #pragma data_alignment=4 210 #ifdef USE_USB_OTG_HS 211 USBD_cdc_GetOtherCfgDesc,
215 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 216 #if defined ( __ICCARM__ ) 217 #pragma data_alignment=4 282 #ifdef USE_USB_OTG_HS 320 #ifdef USE_USB_OTG_HS 321 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 322 #if defined ( __ICCARM__ ) 323 #pragma data_alignment=4 469 (uint8_t*)(USB_Rx_Buffer),
569 (uint8_t *)&usbd_cdc_AltSet,
576 usbd_cdc_AltSet = (uint8_t)(req->
wValue);
623 uint16_t USB_Tx_length;
692 APP_FOPS.
pIf_DataRx(USB_Rx_Buffer, USB_Rx_Cnt);
697 (uint8_t*)(USB_Rx_Buffer),
712 static uint32_t FrameCount = 0;
735 uint16_t USB_Tx_length;
760 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 807 *length =
sizeof (usbd_cdc_CfgDesc);
808 return usbd_cdc_CfgDesc;
818 #ifdef USE_USB_OTG_HS 819 static uint8_t *USBD_cdc_GetOtherCfgDesc (uint8_t speed, uint16_t *length)
821 *length =
sizeof (usbd_cdc_OtherCfgDesc);
822 return usbd_cdc_OtherCfgDesc;
#define DEVICE_SUBCLASS_CDC
uint8_t usbd_cdc_DataOut(void *pdev, uint8_t epnum)
usbd_cdc_DataOut Data received on non-control Out endpoint
void USBD_CtlError(USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
USBD_CtlError Handle USB low level Error.
#define USB_REQ_TYPE_STANDARD
header file for the usbd_req.c file
uint32_t DCD_EP_Tx(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t buf_len)
Transmit data over USB.
uint32_t DCD_EP_Close(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
called when an EP is disabled
uint16_t(* pIf_DeInit)(void)
uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC]
#define USB_REQ_TYPE_CLASS
USBD_Status USBD_CtlSendData(USB_OTG_CORE_HANDLE *pdev, uint8_t *buf, uint16_t len)
USBD_CtlSendData send data on the ctl pipe.
uint8_t usbd_cdc_DataIn(void *pdev, uint8_t epnum)
usbd_audio_DataIn Data sent on non-control IN endpoint
#define USB_REQ_SET_INTERFACE
#define USB_REQ_GET_INTERFACE
uint16_t(* pIf_DataRx)(uint8_t *Buf, uint32_t Len)
uint8_t usbd_cdc_DeInit(void *pdev, uint8_t cfgidx)
usbd_cdc_Init DeInitialize the CDC layer
#define CDC_IN_FRAME_INTERVAL
static uint8_t * USBD_cdc_GetCfgDesc(uint8_t speed, uint16_t *length)
USBD_cdc_GetCfgDesc Return configuration descriptor.
header file for the usbd_cdc_core.c file.
#define CDC_DATA_OUT_PACKET_SIZE
#define USB_CONFIGURATION_DESCRIPTOR_TYPE
USBD_Class_cb_TypeDef USBD_CDC_cb
#define CDC_DATA_MAX_PACKET_SIZE
#define USB_CDC_CONFIG_DESC_SIZ
uint32_t DCD_EP_Open(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type)
Configure an EP.
USBD_Status USBD_CtlPrepareRx(USB_OTG_CORE_HANDLE *pdev, uint8_t *pbuf, uint16_t len)
USBD_CtlPrepareRx receive data on the ctl pipe.
uint16_t(* pIf_Ctrl)(uint32_t Cmd, uint8_t *Buf, uint32_t Len)
CDC_IF_Prop_TypeDef APP_FOPS
#define USB_SIZ_DEVICE_DESC
#define USB_INTERFACE_DESCRIPTOR_TYPE
#define USB_REQ_GET_DESCRIPTOR
uint8_t usbd_cdc_EP0_RxReady(void *pdev)
usbd_cdc_EP0_RxReady Data received on control endpoint
uint32_t DCD_EP_PrepareRx(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t buf_len)
DCD_EP_PrepareRx.
#define CDC_DATA_IN_PACKET_SIZE
static void Handle_USBAsynchXfer(void *pdev)
Handle_USBAsynchXfer Send data to USB.
#define CDC_CMD_PACKET_SZE
uint8_t usbd_cdc_SOF(void *pdev)
usbd_audio_SOF Start Of Frame event management
uint8_t usbd_cdc_Setup(void *pdev, USB_SETUP_REQ *req)
usbd_cdc_Setup Handle the CDC specific requests
#define USB_ENDPOINT_DESCRIPTOR_TYPE
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION
#define USB_REQ_TYPE_MASK
uint16_t(* pIf_Init)(void)
uint8_t usbd_cdc_Init(void *pdev, uint8_t cfgidx)
usbd_cdc_Init Initialize the CDC interface
__ALIGN_BEGIN uint8_t usbd_cdc_CfgDesc[USB_CDC_CONFIG_DESC_SIZ] __ALIGN_END
header file for the usbd_desc.c file