Prusa MINI Firmware overview
|
Go to the documentation of this file.
64 #define HOST_USER_SELECT_CONFIGURATION 1
65 #define HOST_USER_CLASS_ACTIVE 2
66 #define HOST_USER_CLASS_SELECTED 3
67 #define HOST_USER_CONNECTION 4
68 #define HOST_USER_DISCONNECTION 5
69 #define HOST_USER_UNRECOVERED_ERROR 6
135 #if (USBH_USE_OS == 1)
Definition: usbh_msc.h:91
#define USBH_malloc
Definition: usbh_conf.h:148
: Header for usbh_conf.c file.
USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost)
USBH_Process Background process of the USB Core.
Definition: usbh_core.c:397
USB_Setup_TypeDef setup
Definition: usbh_def.h:412
uint8_t LUN
Definition: usbh_msc_bot.h:110
uint32_t timer
Definition: usbh_msc.h:133
USBH_StatusTypeDef USBH_LL_DeInit(USBH_HandleTypeDef *phost)
De-Initialize the low level portion of the host driver.
Definition: usbh_conf.c:221
USBH_StatusTypeDef USBH_BulkSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num, uint8_t do_ping)
USBH_BulkSendData Sends the Bulk Packet to the device.
Definition: usbh_ioreq.c:186
Definition: usbh_msc.h:81
#define DATA_LEN_INQUIRY
Definition: usbh_msc_scsi.h:97
uint8_t USBH_MSC_IsReady(USBH_HandleTypeDef *phost)
USBH_MSC_IsReady The function check if the MSC function is ready.
Definition: usbh_msc.c:617
USBH_SpeedTypeDef USBH_LL_GetSpeed(USBH_HandleTypeDef *phost)
Return the USB host speed from the low level driver.
Definition: usbh_conf.c:314
#define MSC_TRANSPARENT
Definition: usbh_msc.h:157
Definition: usbh_msc.h:92
uint8_t CBLength
Definition: usbh_msc_bot.h:111
Definition: usbh_def.h:308
Definition: usbh_msc.h:67
USBH_StatusTypeDef USBH_LL_SubmitURB(USBH_HandleTypeDef *phost, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t *, uint16_t, uint8_t)
Submit a new URB to the low level driver.
Definition: usbh_conf.c:475
bool error
Definition: auto_build.py:637
USBH_StatusTypeDef USBH_MSC_SCSI_Read(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_SCSI_Read Issue Read10 command.
Definition: usbh_msc_scsi.c:384
#define HOST_USER_CLASS_ACTIVE
Definition: usbh_core.h:65
USBH_StatusTypeDef USBH_SelectInterface(USBH_HandleTypeDef *phost, uint8_t interface)
USBH_SelectInterface Select current interface.
Definition: usbh_core.c:233
#define BOT_CBW_TAG
Definition: usbh_msc_bot.h:155
Definition: usbh_def.h:398
USBH_StatusTypeDef USBH_MSC_BOT_Init(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_Init The function Initializes the BOT protocol.
Definition: usbh_msc_bot.c:151
USBH_StatusTypeDef USBH_MSC_BOT_Process(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_BOT_Process The function handle the BOT protocol.
Definition: usbh_msc_bot.c:173
USBH_StatusTypeDef USBH_MSC_GetLUNInfo(USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info)
USBH_MSC_GetLUNInfo The function return a LUN information.
Definition: usbh_msc.c:676
SCSI_CapacityTypeDef capacity
Definition: usbh_msc.h:107
Definition: usbh_def.h:387
Definition: usbh_msc_bot.h:96
#define BOT_CBW_LENGTH
Definition: usbh_msc_bot.h:157
uint8_t bRequest
Definition: usbh_def.h:222
uint8_t CB[16]
Definition: usbh_msc_bot.h:112
uint8_t data[13]
Definition: usbh_msc_bot.h:127
#define SCSI_SENSE_KEY_UNIT_ATTENTION
Definition: usbh_msc_scsi.h:112
#define CBW_LENGTH
Definition: usbh_msc_scsi.h:101
uint32_t Tag
Definition: usbh_msc_bot.h:107
USBH_StatusTypeDef USBH_CtlReq(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length)
USBH_CtlReq USBH_CtlReq sends a control request and provide the status after completion of the reques...
Definition: usbh_ctlreq.c:531
Definition: usbh_msc.h:102
Definition: usbh_msc_bot.h:91
#define CBW_CB_LENGTH
Definition: usbh_msc_scsi.h:100
USBH_StatusTypeDef USBH_ClrFeature(USBH_HandleTypeDef *phost, uint8_t ep_num)
USBH_ClrFeature This request is used to clear or disable a specific feature.
Definition: usbh_ctlreq.c:308
USBH_StatusTypeDef USBH_MSC_SCSI_ReadCapacity(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_CapacityTypeDef *capacity)
USBH_MSC_SCSI_ReadCapacity Issue Read Capacity command.
Definition: usbh_msc_scsi.c:146
uint8_t data[31]
Definition: usbh_msc_bot.h:114
void USBH_Delay(uint32_t Delay)
Delay routine for the USB Host Library.
Definition: usbh_conf.c:601
#define USBH_free
Definition: usbh_conf.h:151
Definition: usbh_msc.h:73
Definition: usbh_msc_scsi.h:59
Definition: usbh_msc_bot.h:95
#define BOT_DIR_IN
Definition: usbh_msc_bot.h:165
Header file for usbh_pipes.c.
#define OPCODE_READ10
Definition: usbh_msc_scsi.h:90
BOT_CBWTypeDef cbw
Definition: usbh_msc_bot.h:137
#define BOT_CBW_SIGNATURE
Definition: usbh_msc_bot.h:154
USBH_ClassTypeDef USBH_msc
Definition: usbh_msc.c:111
USBH_StatusTypeDef USBH_LL_DriverVBUS(USBH_HandleTypeDef *phost, uint8_t)
Drive VBUS.
Definition: usbh_conf.c:532
struct BOT_CSWTypeDef::__CSW field
USBH_StatusTypeDef USBH_MSC_BOT_Init(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_Init The function Initializes the BOT protocol.
Definition: usbh_msc_bot.c:151
uint8_t i
Definition: screen_test_graph.c:72
Header file for usbh_ioreq.c.
uint16_t_uint8_t wIndex
Definition: usbh_def.h:224
USBH_StatusTypeDef USBH_MSC_SCSI_Read(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_SCSI_Read Issue Read10 command.
Definition: usbh_msc_scsi.c:384
Definition: usbh_def.h:386
#define OPCODE_INQUIRY
Definition: usbh_msc_scsi.h:93
USBH_StatusTypeDef USBH_ClosePipe(USBH_HandleTypeDef *phost, uint8_t pipe_num)
USBH_ClosePipe Close a pipe.
Definition: usbh_pipes.c:121
Definition: usbh_msc.h:72
uint8_t key
Definition: usbh_msc_scsi.h:69
static USBH_StatusTypeDef USBH_MSC_Process(USBH_HandleTypeDef *phost)
USBH_MSC_Process The function is for managing state machine for MSC data transfers.
Definition: usbh_msc.c:325
USBH_StatusTypeDef USBH_MSC_SCSI_TestUnitReady(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_SCSI_TestUnitReady Issue TestUnitReady command.
Definition: usbh_msc_scsi.c:104
uint8_t product_id[17]
Definition: usbh_msc_scsi.h:81
Definitions used in the USB host library.
USBH_StatusTypeDef USBH_MSC_BOT_Process(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_BOT_Process The function handle the BOT protocol.
Definition: usbh_msc_bot.c:173
#define USB_EP_DIR_IN
Definition: usbh_def.h:176
USBH_StatusTypeDef USBH_MSC_SCSI_Write(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_SCSI_Write Issue write10 command.
Definition: usbh_msc_scsi.c:323
struct BOT_CBWTypeDef::__CBW field
USBH_StatusTypeDef USBH_BulkReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num)
USBH_BulkReceiveData Receives IN bulk packet from device.
Definition: usbh_ioreq.c:218
USBH_StatusTypeDef USBH_LL_OpenPipe(USBH_HandleTypeDef *phost, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint16_t)
Open a pipe of the low level driver.
Definition: usbh_conf.c:388
BOT_CMDStateTypeDef cmd_state
Definition: usbh_msc_bot.h:136
__IO uint32_t Timer
Definition: usbh_def.h:461
uint16_t OutEpSize
Definition: usbh_msc.h:123
Definition: usbh_def.h:450
uint8_t USBH_FindInterfaceIndex(USBH_HandleTypeDef *phost, uint8_t interface_number, uint8_t alt_settings)
USBH_FindInterfaceIndex Find the interface index for a specific class interface and alternate setting...
Definition: usbh_core.c:306
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.
Definition: usbh_msc_bot.c:130
BOT_HandleTypeDef hbot
Definition: usbh_msc.h:129
#define NULL
Definition: usbd_def.h:53
void * pData
Definition: usbh_def.h:446
#define USBH_memset
Definition: usbh_conf.h:154
USBH_CtrlTypeDef Control
Definition: usbh_def.h:455
#define USBH_memcpy
Definition: usbh_conf.h:157
Definition: usbh_def.h:385
uint16_t_uint8_t wValue
Definition: usbh_def.h:223
USBH_StatusTypeDef USBH_LL_ResetPort(USBH_HandleTypeDef *phost)
Reset the Host port of the low level driver.
Definition: usbh_conf.c:342
Definition: usbh_msc.h:68
uint8_t InPipe
Definition: usbh_msc.h:119
MSC_ErrorTypeDef error
Definition: usbh_msc.h:105
USBH_StatusTypeDef USBH_LL_Stop(USBH_HandleTypeDef *phost)
Stop the low level portion of the host driver.
Definition: usbh_conf.c:283
Definition: usbh_msc_bot.h:94
SCSI_StdInquiryDataTypeDef inquiry
Definition: usbh_msc.h:109
static USBH_StatusTypeDef USBH_MSC_RdWrProcess(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_RdWrProcess The function is for managing state machine for MSC I/O Process.
Definition: usbh_msc.c:523
USBH_StatusTypeDef USBH_FreePipe(USBH_HandleTypeDef *phost, uint8_t idx)
USBH_Free_Pipe Free the USB Pipe.
Definition: usbh_pipes.c:158
uint8_t asc
Definition: usbh_msc_scsi.h:70
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.
Definition: usbh_msc.c:700
USBH_StatusTypeDef USBH_OpenPipe(USBH_HandleTypeDef *phost, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps)
USBH_Open_Pipe Open a pipe.
Definition: usbh_pipes.c:93
void USBH_LL_SetTimer(USBH_HandleTypeDef *phost, uint32_t)
USBH_LL_SetTimer Set the initial Host Timer tick.
Definition: usbh_core.c:791
uint8_t USBH_MSC_UnitIsReady(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_UnitIsReady The function check whether a LUN is ready.
Definition: usbh_msc.c:655
USBH_StatusTypeDef USBH_LL_Start(USBH_HandleTypeDef *phost)
Start the low level portion of the host driver.
Definition: usbh_conf.c:252
static USBH_StatusTypeDef USBH_MSC_SOFProcess(USBH_HandleTypeDef *phost)
USBH_MSC_SOFProcess The function is for SOF state.
Definition: usbh_msc.c:511
USBH_StatusTypeDef USBH_MSC_SCSI_Inquiry(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_StdInquiryDataTypeDef *inquiry)
USBH_MSC_SCSI_Inquiry Issue Inquiry command.
Definition: usbh_msc_scsi.c:202
#define OPCODE_READ_CAPACITY10
Definition: usbh_msc_scsi.h:89
uint8_t USBH_LL_GetToggle(USBH_HandleTypeDef *phost, uint8_t)
Return the current toggle of a pipe.
Definition: usbh_conf.c:583
uint16_t_uint8_t wLength
Definition: usbh_def.h:225
Definition: usbh_def.h:396
uint32_t Signature
Definition: usbh_msc_bot.h:122
MSC_ReqStateTypeDef prev_req_state
Definition: usbh_msc.h:128
Definition: usbh_msc_scsi.h:67
Definition: usbh_msc.h:80
Definition: usbh_msc.h:69
Definition: usbh_msc_bot.h:92
uint8_t state_changed
Definition: usbh_msc.h:110
USBH_StatusTypeDef USBH_Stop(USBH_HandleTypeDef *phost)
USBH_Stop Stop the USB Host Core.
Definition: usbh_core.c:350
uint8_t ascq
Definition: usbh_msc_scsi.h:71
USBH_StatusTypeDef USBH_LL_Disconnect(USBH_HandleTypeDef *phost)
USBH_LL_Disconnect Handle USB Host disconnection event.
Definition: usbh_core.c:854
Definition: usbh_def.h:304
osStatus osMessagePut(osMessageQId queue_id, uint32_t info, uint32_t millisec)
Put a Message to a Queue.
Definition: cmsis_os.c:1113
Definition: usbh_msc_bot.h:81
USBH_StatusTypeDef USBH_MSC_SCSI_Inquiry(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_StdInquiryDataTypeDef *inquiry)
USBH_MSC_SCSI_Inquiry Issue Inquiry command.
Definition: usbh_msc_scsi.c:202
Definition: usbh_msc_bot.h:83
#define USB_REQ_TYPE_CLASS
Definition: usbd_def.h:74
Definition: usbh_msc_bot.h:72
#define USBH_DbgLog(...)
Definition: usbh_conf.h:185
USBH_DeviceTypeDef device
Definition: usbh_def.h:456
uint8_t revision_id[5]
Definition: usbh_msc_scsi.h:82
uint16_t rw_lun
Definition: usbh_msc.h:132
__IO uint8_t is_connected
Definition: usbh_def.h:427
USBH_StatusTypeDef USBH_MSC_BOT_REQ_Reset(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_REQ_Reset The function the MSC BOT Reset request.
Definition: usbh_msc_bot.c:109
uint8_t Status
Definition: usbh_msc_bot.h:125
MSC_LUNTypeDef unit[MAX_SUPPORTED_LUN]
Definition: usbh_msc.h:130
USBH_StatusTypeDef USBH_ReEnumerate(USBH_HandleTypeDef *phost)
HCD_ReEnumerate Perform a new Enumeration phase.
Definition: usbh_core.c:371
Definition: usbh_msc.h:70
uint8_t Flags
Definition: usbh_msc_bot.h:109
void USBH_LL_IncTimer(USBH_HandleTypeDef *phost)
USBH_LL_IncTimer Increment Host Timer tick.
Definition: usbh_core.c:801
USBH_StatusTypeDef USBH_MSC_SCSI_ReadCapacity(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_CapacityTypeDef *capacity)
USBH_MSC_SCSI_ReadCapacity Issue Read Capacity command.
Definition: usbh_msc_scsi.c:146
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
uint32_t Signature
Definition: usbh_msc_bot.h:106
#define SCSI_SENSE_KEY_NOT_READY
Definition: usbh_msc_scsi.h:108
uint32_t block_nbr
Definition: usbh_msc_scsi.h:61
Definition: usbh_def.h:390
MSC_StateTypeDef state
Definition: usbh_msc.h:125
USBH_URBStateTypeDef USBH_LL_GetURBState(USBH_HandleTypeDef *phost, uint8_t)
Get a URB state from the low level driver.
Definition: usbh_conf.c:519
uint8_t vendor_id[9]
Definition: usbh_msc_scsi.h:80
uint16_t current_lun
Definition: usbh_msc.h:131
uint8_t PeripheralQualifier
Definition: usbh_msc_scsi.h:77
BOT_CSWTypeDef csw
Definition: usbh_msc_bot.h:139
Definition: usbh_msc_scsi.h:75
BOT_CSWStatusTypeDef
Definition: usbh_msc_bot.h:78
const uint8_t[]
Definition: 404_html.c:3
USBH_StatusTypeDef prev_ready_state
Definition: usbh_msc.h:106
#define USBH_UsrLog(...)
Definition: usbh_conf.h:166
UsbDeviceAddress address
Definition: address.h:202
Definition: usbh_msc_bot.h:97
USBH_StatusTypeDef USBH_LL_Init(USBH_HandleTypeDef *phost)
Initialize the low level portion of the host driver.
Definition: usbh_conf.c:191
MSC_ReqStateTypeDef req_state
Definition: usbh_msc.h:127
struct _USB_Setup::_SetupPkt_Struc b
#define DATA_LEN_READ_CAPACITY10
Definition: usbh_msc_scsi.h:96
#define MSC_BOT
Definition: usbh_msc.h:156
USBH_StatusTypeDef
Definition: usbh_def.h:302
Definition: usbh_msc_bot.h:90
Header file for usbh_msc_bot.c.
static BOT_CSWStatusTypeDef USBH_MSC_DecodeCSW(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_DecodeCSW This function decodes the CSW received by the device and updates the same to u...
Definition: usbh_msc_bot.c:514
#define USB_MSC_CLASS
Definition: usbh_msc.h:153
BOT_StateTypeDef state
Definition: usbh_msc_bot.h:134
uint16_t InEpSize
Definition: usbh_msc.h:124
USBH_StatusTypeDef USBH_Start(USBH_HandleTypeDef *phost)
USBH_Start Start the USB Host Core.
Definition: usbh_core.c:333
#define USB_EP_TYPE_BULK
Definition: usbh_def.h:172
USBH_StatusTypeDef USBH_LL_SetToggle(USBH_HandleTypeDef *phost, uint8_t, uint8_t)
Set toggle for a pipe.
Definition: usbh_conf.c:564
uint8_t USBH_GetActiveClass(USBH_HandleTypeDef *phost)
USBH_GetActiveClass Return Device Class.
Definition: usbh_core.c:260
USBH_StatusTypeDef USBH_RegisterClass(USBH_HandleTypeDef *phost, USBH_ClassTypeDef *pclass)
USBH_RegisterClass Link class driver to Host Core.
Definition: usbh_core.c:199
uint8_t * pbuf
Definition: usbh_msc_bot.h:141
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.
Definition: usbh_msc.c:748
static status_t status
Definition: filament_sensor.c:37
#define USB_H2D
Definition: usbh_def.h:108
uint8_t InEp
Definition: usbh_msc.h:122
Definition: usbh_msc_bot.h:98
MSC_ErrorTypeDef error
Definition: usbh_msc.h:126
USBH_StatusTypeDef USBH_MSC_SCSI_RequestSense(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_SenseTypeDef *sense_data)
USBH_MSC_SCSI_RequestSense Issue RequestSense command.
Definition: usbh_msc_scsi.c:264
#define USB_REQ_BOT_RESET
Definition: usbh_msc.h:148
uint8_t OutPipe
Definition: usbh_msc.h:120
#define OPCODE_REQUEST_SENSE
Definition: usbh_msc_scsi.h:92
#define BOT_CSW_SIGNATURE
Definition: usbh_msc_bot.h:156
uint32_t max_lun
Definition: usbh_msc.h:118
USBH_StatusTypeDef USBH_MSC_SCSI_Write(USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
USBH_MSC_SCSI_Write Issue write10 command.
Definition: usbh_msc_scsi.c:323
uint8_t USBH_FindInterface(USBH_HandleTypeDef *phost, uint8_t Class, uint8_t SubClass, uint8_t Protocol)
USBH_FindInterface Find the interface index for a specific class.
Definition: usbh_core.c:274
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.
Definition: usbh_msc_bot.c:130
uint16_t w
Definition: usbh_def.h:204
USBH_SpeedTypeDef
Definition: usbh_def.h:317
Header file for usbh_ctlreq.c.
Definition: usbh_msc.h:71
uint8_t OutEp
Definition: usbh_msc.h:121
Definition: usbh_def.h:306
#define DATA_LEN_MODE_TEST_UNIT_READY
Definition: usbh_msc_scsi.h:95
#define USB_D2H
Definition: usbh_def.h:109
Definition: usbh_def.h:305
uint8_t RemovableMedia
Definition: usbh_msc_scsi.h:79
uint8_t DeviceType
Definition: usbh_msc_scsi.h:78
Header file for usbh_msc_scsi.c.
USBH_StatusTypeDef USBH_DeInit(USBH_HandleTypeDef *phost)
HCD_Init De-Initialize the Host portion of the driver.
Definition: usbh_core.c:143
Definition: usbh_msc.h:66
int8_t USBH_MSC_GetMaxLUN(USBH_HandleTypeDef *phost)
USBH_MSC_GetMaxLUN The function return the Max LUN supported.
Definition: usbh_msc.c:637
Definition: usbh_msc_bot.h:82
USBH_StatusTypeDef USBH_LL_Connect(USBH_HandleTypeDef *phost)
USBH_LL_Connect Handle USB Host connexion event.
Definition: usbh_core.c:826
void(* pUser)(struct _USBH_HandleTypeDef *pHandle, uint8_t id)
Definition: usbh_def.h:464
USBH_StatusTypeDef USBH_LL_ClosePipe(USBH_HandleTypeDef *phost, uint8_t)
Close a pipe of the low level driver.
Definition: usbh_conf.c:422
uint32_t data[16]
Definition: usbh_msc_bot.h:133
This file contains all the prototypes for the usbh_msc.c.
Definition: usbh_msc.h:65
png_uint_32 length
Definition: png.c:2247
USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void(*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t), uint8_t id)
HCD_Init Initialize the HOST Core.
Definition: usbh_core.c:92
static USBH_StatusTypeDef USBH_MSC_InterfaceInit(USBH_HandleTypeDef *phost)
USBH_MSC_InterfaceInit The function init the MSC class.
Definition: usbh_msc.c:149
USBH_URBStateTypeDef
Definition: usbh_def.h:384
uint8_t bmRequestType
Definition: usbh_def.h:221
#define OPCODE_TEST_UNIT_READY
Definition: usbh_msc_scsi.h:88
static USBH_StatusTypeDef USBH_MSC_ClassRequest(USBH_HandleTypeDef *phost)
USBH_MSC_ClassRequest The function is responsible for handling Standard requests for MSC class.
Definition: usbh_msc.c:269
USBH_ClassTypeDef * pActiveClass
Definition: usbh_def.h:458
Definition: usbh_msc_bot.h:89
USBH_StatusTypeDef USBH_MSC_SCSI_TestUnitReady(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_SCSI_TestUnitReady Issue TestUnitReady command.
Definition: usbh_msc_scsi.c:104
uint32_t DataTransferLength
Definition: usbh_msc_bot.h:108
__IO HOST_StateTypeDef gState
Definition: usbh_def.h:452
uint32_t USBH_LL_GetLastXferSize(USBH_HandleTypeDef *phost, uint8_t)
Return the last transfered packet size.
Definition: usbh_conf.c:373
#define BOT_DIR_OUT
Definition: usbh_msc_bot.h:166
Definition: usbh_msc_bot.h:88
uint32_t Tag
Definition: usbh_msc_bot.h:123
#define USB_REQ_GET_MAX_LUN
Definition: usbh_msc.h:149
#define OPCODE_WRITE10
Definition: usbh_msc_scsi.h:91
Definition: usbh_msc_bot.h:73
uint8_t USBH_AllocPipe(USBH_HandleTypeDef *phost, uint8_t ep_addr)
USBH_Alloc_Pipe Allocate a new Pipe.
Definition: usbh_pipes.c:138
MSC_StateTypeDef state
Definition: usbh_msc.h:104
Definition: usbh_msc.h:89
Definition: usbh_def.h:338
Definition: usbh_msc.h:82
#define BOT_CSW_LENGTH
Definition: usbh_msc_bot.h:158
USBH_StatusTypeDef USBH_MSC_SCSI_RequestSense(USBH_HandleTypeDef *phost, uint8_t lun, SCSI_SenseTypeDef *sense_data)
USBH_MSC_SCSI_RequestSense Issue RequestSense command.
Definition: usbh_msc_scsi.c:264
Definition: usbh_msc.h:116
static USBH_StatusTypeDef USBH_MSC_BOT_Abort(USBH_HandleTypeDef *phost, uint8_t lun, uint8_t dir)
USBH_MSC_BOT_Abort The function handle the BOT Abort process.
Definition: usbh_msc_bot.c:475
#define USB_REQ_DIR_MASK
Definition: usbh_def.h:107
#define DATA_LEN_REQUEST_SENSE
Definition: usbh_msc_scsi.h:98
uint16_t block_size
Definition: usbh_msc_scsi.h:62
Definition: usbh_def.h:307
Definition: usbh_msc_bot.h:93
static USBH_StatusTypeDef USBH_MSC_InterfaceDeInit(USBH_HandleTypeDef *phost)
USBH_MSC_InterfaceDeInit The function DeInit the Pipes used for the MSC class.
Definition: usbh_msc.c:235
SCSI_SenseTypeDef sense
Definition: usbh_msc.h:108
Definition: usbh_def.h:437
#define USB_EP_DIR_OUT
Definition: usbh_def.h:175
uint8_t info[12]
Definition: masstorage.h:54