34 #define UNUSED(x) (void)(x) 78 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 79 #if defined ( __ICCARM__ ) 80 #pragma data_alignment=4 85 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 86 #if defined ( __ICCARM__ ) 87 #pragma data_alignment=4 92 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 93 #if defined ( __ICCARM__ ) 94 #pragma data_alignment=4
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.
void MSC_BOT_CplClrFeature(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_CplClrFeature Complete the clear feature request.
void MSC_BOT_Reset(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_Reset Reset the BOT Machine.
int8_t SCSI_ProcessCmd(USB_OTG_CORE_HANDLE *pdev, uint8_t lun, uint8_t *cmd)
SCSI_ProcessCmd Process SCSI commands.
uint32_t DCD_EP_Flush(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
This Function flushes the FIFOs.
static void MSC_BOT_SendData(USB_OTG_CORE_HANDLE *pdev, uint8_t *pbuf, uint16_t len)
MSC_BOT_SendData Send the requested data.
void MSC_BOT_DataOut(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_DataOut Proccess MSC OUT data.
uint32_t DCD_EP_Stall(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
Stall an endpoint.
header for the STORAGE DISK file file
#define BOT_CSW_SIGNATURE
uint16_t USBD_GetRxCount(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
USBD_GetRxCount returns the received data length.
void MSC_BOT_DataIn(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
MSC_BOT_DataIn Handle BOT IN data stage.
#define BOT_STATE_RECOVERY
#define BOT_CBW_SIGNATURE
header for the usbd_msc_scsi.c file
__ALIGN_BEGIN uint8_t MSC_BOT_Data[MSC_MEDIA_PACKET] __ALIGN_END
uint32_t DCD_EP_PrepareRx(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t buf_len)
DCD_EP_PrepareRx.
header file for the usbd_ioreq.c file
void MSC_BOT_DeInit(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_DeInit Uninitialize the BOT Machine.
static void MSC_BOT_CBW_Decode(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_CBW_Decode Decode the CBW command and set the BOT state machine accordingtly.
USBD_STORAGE_cb_TypeDef * USBD_STORAGE_fops
MSC_BOT_CBW_TypeDef MSC_BOT_cbw
void SCSI_SenseCode(uint8_t lun, uint8_t sKey, uint8_t ASC)
SCSI_SenseCode Load the last error code in the error list.
MSC_BOT_CSW_TypeDef MSC_BOT_csw
void MSC_BOT_SendCSW(USB_OTG_CORE_HANDLE *pdev, uint8_t CSW_Status)
MSC_BOT_SendCSW Send the Command Status Wrapper.
int8_t(* Init)(uint8_t lun)
header for the usbd_msc_bot.c file
void MSC_BOT_Init(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_Init Initialize the BOT Process.
static void MSC_BOT_Abort(USB_OTG_CORE_HANDLE *pdev)
MSC_BOT_Abort Abort the current transfer.