104 static uint8_t *USBD_TEMPLATE_GetCfgDesc (uint16_t *length);
106 static uint8_t *USBD_TEMPLATE_GetDeviceQualifierDesc (uint16_t *length);
118 static uint8_t USBD_TEMPLATE_IsoINIncomplete (
USBD_HandleTypeDef *pdev, uint8_t epnum);
120 static uint8_t USBD_TEMPLATE_IsoOutIncomplete (
USBD_HandleTypeDef *pdev, uint8_t epnum);
133 USBD_TEMPLATE_DeInit,
135 USBD_TEMPLATE_EP0_TxReady,
136 USBD_TEMPLATE_EP0_RxReady,
137 USBD_TEMPLATE_DataIn,
138 USBD_TEMPLATE_DataOut,
140 USBD_TEMPLATE_IsoINIncomplete,
141 USBD_TEMPLATE_IsoOutIncomplete,
142 USBD_TEMPLATE_GetCfgDesc,
143 USBD_TEMPLATE_GetCfgDesc,
144 USBD_TEMPLATE_GetCfgDesc,
145 USBD_TEMPLATE_GetDeviceQualifierDesc,
148 #if defined ( __ICCARM__ ) 149 #pragma data_alignment=4 170 #if defined ( __ICCARM__ ) 171 #pragma data_alignment=4 268 static uint8_t *USBD_TEMPLATE_GetCfgDesc (uint16_t *length)
270 *length =
sizeof (USBD_TEMPLATE_CfgDesc);
271 return USBD_TEMPLATE_CfgDesc;
282 *length =
sizeof (USBD_TEMPLATE_DeviceQualifierDesc);
283 return USBD_TEMPLATE_DeviceQualifierDesc;
341 static uint8_t USBD_TEMPLATE_IsoINIncomplete (
USBD_HandleTypeDef *pdev, uint8_t epnum)
353 static uint8_t USBD_TEMPLATE_IsoOutIncomplete (
USBD_HandleTypeDef *pdev, uint8_t epnum)
378 uint8_t *USBD_TEMPLATE_GetDeviceQualifierDesc (uint16_t *length)
380 *length =
sizeof (USBD_TEMPLATE_DeviceQualifierDesc);
381 return USBD_TEMPLATE_DeviceQualifierDesc;
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION
#define USB_LEN_DEV_QUALIFIER_DESC
#define USB_TEMPLATE_CONFIG_DESC_SIZ
uint8_t * USBD_TEMPLATE_DeviceQualifierDescriptor(uint16_t *length)
DeviceQualifierDescriptor return Device Qualifier descriptor.
void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
USBD_CtlError Handle USB low level Error.
#define USB_REQ_TYPE_CLASS
#define USB_REQ_TYPE_STANDARD
#define USB_DESC_TYPE_DEVICE_QUALIFIER
#define USB_REQ_TYPE_MASK
USBD_ClassTypeDef USBD_TEMPLATE_ClassDriver