49 #define UNUSED(x) (void)(x) 108 #ifdef USB_OTG_HS_CORE 109 uint8_t *USBD_MSC_GetOtherCfgDesc (uint8_t speed,
142 #ifdef USB_OTG_HS_CORE 143 USBD_MSC_GetOtherCfgDesc,
147 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 148 #if defined ( __ICCARM__ ) 149 #pragma data_alignment=4 195 #ifdef USB_OTG_HS_CORE 196 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 197 #if defined ( __ICCARM__ ) 198 #pragma data_alignment=4 244 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 245 #if defined ( __ICCARM__ ) 246 #pragma data_alignment=4 251 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 252 #if defined ( __ICCARM__ ) 253 #pragma data_alignment=4 340 if(USBD_MSC_MaxLun > 0)
390 USBD_MSC_AltSet = (uint8_t)(req->
wValue);
400 if((((uint8_t)req->
wIndex) & 0x80) == 0x80)
477 #ifdef USB_OTG_HS_CORE 478 uint8_t *USBD_MSC_GetOtherCfgDesc (uint8_t speed,
481 *length =
sizeof (USBD_MSC_OtherCfgDesc);
482 return USBD_MSC_OtherCfgDesc;
void USBD_CtlError(USB_OTG_CORE_HANDLE *pdev, USB_SETUP_REQ *req)
USBD_CtlError Handle USB low level Error.
#define USB_REQ_TYPE_STANDARD
uint8_t USBD_MSC_DeInit(void *pdev, uint8_t cfgidx)
USBD_MSC_DeInit DeInitilaize the mass storage configuration.
header file for the usbd_req.c file
uint32_t DCD_EP_Close(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
called when an EP is disabled
void MSC_BOT_DeInit(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_DeInit Uninitialize the BOT Machine.
uint8_t USBD_MSC_Init(void *pdev, uint8_t cfgidx)
USBD_MSC_Init Initialize the mass storage configuration.
#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.
#define USB_REQ_SET_INTERFACE
#define USB_REQ_GET_INTERFACE
uint32_t DCD_EP_Flush(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
This Function flushes the FIFOs.
header for the STORAGE DISK file file
header for the usbd_msc_core.c file
void MSC_BOT_Reset(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_Reset Reset the BOT Machine.
uint8_t USBD_MSC_CfgDesc[USB_MSC_CONFIG_DESC_SIZ]
uint8_t USBD_MSC_DataIn(void *pdev, uint8_t epnum)
USBD_MSC_DataIn handle data IN Stage.
uint8_t USBD_MSC_DataOut(void *pdev, uint8_t epnum)
USBD_MSC_DataOut handle data OUT Stage.
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.
int8_t(* GetMaxLun)(void)
#define USB_REQ_CLEAR_FEATURE
USBD_Class_cb_TypeDef USBD_MSC_cb
void MSC_BOT_DataIn(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_DataIn Handle BOT IN data stage.
USBD_STORAGE_cb_TypeDef * USBD_STORAGE_fops
void MSC_BOT_CplClrFeature(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_CplClrFeature Complete the clear feature request.
uint8_t USBD_MSC_Setup(void *pdev, USB_SETUP_REQ *req)
USBD_MSC_Setup Handle the MSC specific requests.
#define USB_MSC_CONFIG_DESC_SIZ
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION
#define USB_DESC_TYPE_CONFIGURATION
#define USB_REQ_TYPE_MASK
__ALIGN_BEGIN uint8_t USBD_MSC_CfgDesc[USB_MSC_CONFIG_DESC_SIZ] __ALIGN_END
header for the usbd_msc_bot.c file
void MSC_BOT_Init(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_Init Initialize the BOT Process.
void MSC_BOT_DataOut(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_DataOut Proccess MSC OUT data.
uint8_t * USBD_MSC_GetCfgDesc(uint8_t speed, uint16_t *length)
USBD_MSC_GetCfgDesc return configuration descriptor.