124 static uint8_t *USBD_CDC_GetFSCfgDesc (uint16_t *length);
126 static uint8_t *USBD_CDC_GetHSCfgDesc (uint16_t *length);
128 static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length);
130 static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length);
165 USBD_CDC_EP0_RxReady,
171 USBD_CDC_GetHSCfgDesc,
172 USBD_CDC_GetFSCfgDesc,
173 USBD_CDC_GetOtherSpeedCfgDesc,
603 static uint8_t ifalt = 0;
613 (uint8_t *)hcdc->
data,
616 (uint8_t *)hcdc->
data,
625 (uint8_t *)hcdc->
data,
725 (uint8_t *)hcdc->
data,
740 static uint8_t *USBD_CDC_GetFSCfgDesc (uint16_t *length)
742 *length =
sizeof (USBD_CDC_CfgFSDesc);
743 return USBD_CDC_CfgFSDesc;
753 static uint8_t *USBD_CDC_GetHSCfgDesc (uint16_t *length)
755 *length =
sizeof (USBD_CDC_CfgHSDesc);
756 return USBD_CDC_CfgHSDesc;
766 static uint8_t *USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length)
768 *length =
sizeof (USBD_CDC_OtherSpeedCfgDesc);
769 return USBD_CDC_OtherSpeedCfgDesc;
780 *length =
sizeof (USBD_CDC_DeviceQualifierDesc);
781 return USBD_CDC_DeviceQualifierDesc;
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION
#define USB_CDC_CONFIG_DESC_SIZ
USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Closes an endpoint of the Low Level Driver.
#define CDC_DATA_HS_OUT_PACKET_SIZE
#define USB_LEN_DEV_QUALIFIER_DESC
uint8_t USBD_CDC_RegisterInterface(USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
USBD_CDC_RegisterInterface.
uint32_t USBD_LL_GetRxDataSize(USBD_HandleTypeDef *pdev, uint8_t ep_addr)
Returns the last transferred packet size.
USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Transmits data over an endpoint.
uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev)
USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.
#define CDC_DATA_FS_OUT_PACKET_SIZE
uint32_t data[CDC_DATA_HS_MAX_PACKET_SIZE/4]
uint8_t * USBD_CDC_GetDeviceQualifierDescriptor(uint16_t *length)
DeviceQualifierDescriptor return Device Qualifier descriptor.
#define USB_REQ_GET_INTERFACE
USBD_SpeedTypeDef dev_speed
USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size)
Prepares an 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.
#define USB_REQ_SET_INTERFACE
#define USB_DESC_TYPE_ENDPOINT
#define CDC_DATA_HS_IN_PACKET_SIZE
#define USB_DESC_TYPE_INTERFACE
#define USBD_EP_TYPE_BULK
#define USB_REQ_TYPE_CLASS
#define USB_DESC_TYPE_CONFIGURATION
#define USBD_EP_TYPE_INTR
#define USB_REQ_TYPE_STANDARD
#define CDC_CMD_PACKET_SIZE
USBD_StatusTypeDef USBD_CtlPrepareRx(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint16_t len)
USBD_CtlPrepareRx receive data on the ctl pipe.
#define CDC_DATA_HS_MAX_PACKET_SIZE
USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, uint8_t *buf, uint16_t len)
USBD_CtlSendData send data on the ctl pipe.
#define USB_DESC_TYPE_DEVICE_QUALIFIER
header file for the usbd_cdc.c file.
#define CDC_DATA_FS_MAX_PACKET_SIZE
#define USB_REQ_TYPE_MASK
USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps)
Opens an endpoint of the Low Level Driver.
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
USBD_CDC_SetTxBuffer.
#define CDC_DATA_FS_IN_PACKET_SIZE
USBD_ClassTypeDef USBD_CDC