96 #ifndef MAX_SUPPORTED_LUN 97 #define MAX_SUPPORTED_LUN 2 148 #define USB_REQ_BOT_RESET 0xFF 149 #define USB_REQ_GET_MAX_LUN 0xFE 153 #define USB_MSC_CLASS 0x08 157 #define MSC_TRANSPARENT 0x06 173 #define USBH_MSC_CLASS &USBH_msc USBH_StatusTypeDef USBH_MSC_Write(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_Write The function performs a Write operation.
Header file for usbh_core.c.
Header file for usbh_msc_bot.c.
struct _MSC_Process MSC_HandleTypeDef
USBH_StatusTypeDef USBH_MSC_Read(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_Read The function performs a Read operation.
MSC_LUNTypeDef unit[MAX_SUPPORTED_LUN]
#define MAX_SUPPORTED_LUN
SCSI_StdInquiryDataTypeDef inquiry
SCSI_CapacityTypeDef capacity
USBH_ClassTypeDef USBH_msc
Header file for usbh_msc_scsi.c.
MSC_ReqStateTypeDef prev_req_state
int8_t USBH_MSC_GetMaxLUN(USBH_HandleTypeDef *phost)
USBH_MSC_GetMaxLUN The function return the Max LUN supported.
USBH_StatusTypeDef USBH_MSC_GetLUNInfo(USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info)
USBH_MSC_GetLUNInfo The function return a LUN information.
uint8_t USBH_MSC_UnitIsReady(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_UnitIsReady The function check whether a LUN is ready.
USBH_StatusTypeDef prev_ready_state
uint8_t USBH_MSC_IsReady(USBH_HandleTypeDef *phost)
USBH_MSC_IsReady The function check if the MSC function is ready.
MSC_ReqStateTypeDef req_state