29 #ifndef __USBH_MSC_BOT_H 30 #define __USBH_MSC_BOT_H 140 uint8_t Reserved2[3];
154 #define BOT_CBW_SIGNATURE 0x43425355 155 #define BOT_CBW_TAG 0x20304050 156 #define BOT_CSW_SIGNATURE 0x53425355 157 #define BOT_CBW_LENGTH 31 158 #define BOT_CSW_LENGTH 13 162 #define BOT_SEND_CSW_DISABLE 0 163 #define BOT_SEND_CSW_ENABLE 1 166 #define BOT_DIR_OUT 1 167 #define BOT_DIR_BOTH 2 169 #define BOT_PAGE_LENGTH 512 172 #define BOT_CBW_CB_LENGTH 16 175 #define USB_REQ_BOT_RESET 0xFF 176 #define USB_REQ_GET_MAX_LUN 0xFE 178 #define MAX_BULK_STALL_COUNT_LIMIT 0x04 USBH_StatusTypeDef USBH_MSC_BOT_Init(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_Init The function Initializes the BOT protocol.
Header file for usbh_core.c.
Header file for usbh_msc_bot.c.
USBH_StatusTypeDef USBH_MSC_BOT_Process(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_BOT_Process The function handle the BOT protocol.
BOT_StateTypeDef prev_state
USBH_StatusTypeDef USBH_MSC_BOT_REQ_GetMaxLUN(USBH_HandleTypeDef *phost, uint8_t *Maxlun)
USBH_MSC_BOT_REQ_GetMaxLUN The function the MSC BOT GetMaxLUN request.
BOT_CMDStateTypeDef cmd_state
USBH_StatusTypeDef USBH_MSC_BOT_Error(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_StatusTypeDef USBH_MSC_BOT_REQ_Reset(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_REQ_Reset The function the MSC BOT Reset request.
uint32_t DataTransferLength