Prusa MINI Firmware overview
|
|
uint8_t | USBH_MSC_IsReady (USBH_HandleTypeDef *phost) |
| USBH_MSC_IsReady The function check if the MSC function is ready. More...
|
|
int8_t | USBH_MSC_GetMaxLUN (USBH_HandleTypeDef *phost) |
| USBH_MSC_GetMaxLUN The function return the Max LUN supported. More...
|
|
uint8_t | USBH_MSC_UnitIsReady (USBH_HandleTypeDef *phost, uint8_t lun) |
| USBH_MSC_UnitIsReady The function check whether a LUN is ready. More...
|
|
USBH_StatusTypeDef | USBH_MSC_GetLUNInfo (USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info) |
| USBH_MSC_GetLUNInfo The function return a LUN information. More...
|
|
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. More...
|
|
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. More...
|
|
◆ USBH_MSC_IsReady()
USBH_MSC_IsReady The function check if the MSC function is ready.
- Parameters
-
- Return values
-
◆ USBH_MSC_GetMaxLUN()
USBH_MSC_GetMaxLUN The function return the Max LUN supported.
- Parameters
-
- Return values
-
logical | Unit Number supported |
◆ USBH_MSC_UnitIsReady()
USBH_MSC_UnitIsReady The function check whether a LUN is ready.
- Parameters
-
phost | Host handle |
lun | logical Unit Number |
- Return values
-
Lun | status (0: not ready / 1: ready) |
◆ USBH_MSC_GetLUNInfo()
USBH_MSC_GetLUNInfo The function return a LUN information.
- Parameters
-
phost | Host handle |
lun | logical Unit Number |
- Return values
-
◆ USBH_MSC_Read()
USBH_MSC_Read The function performs a Read operation.
- Parameters
-
phost | Host handle |
lun | logical Unit Number |
address | sector address |
pbuf | pointer to data |
length | number of sector to read |
- Return values
-
724 timeout = phost->
Timer;
◆ USBH_MSC_Write()
USBH_MSC_Write The function performs a Write operation.
- Parameters
-
phost | Host handle |
lun | logical Unit Number |
address | sector address |
pbuf | pointer to data |
length | number of sector to write |
- Return values
-
772 timeout = phost->
Timer;
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_msc.h:102
Definition: usbh_msc.h:72
__IO uint32_t Timer
Definition: usbh_def.h:461
void * pData
Definition: usbh_def.h:446
#define USBH_memcpy
Definition: usbh_conf.h:157
MSC_ErrorTypeDef error
Definition: usbh_msc.h:105
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
Definition: usbh_msc.h:80
Definition: usbh_def.h:304
USBH_DeviceTypeDef device
Definition: usbh_def.h:456
uint16_t rw_lun
Definition: usbh_msc.h:132
__IO uint8_t is_connected
Definition: usbh_def.h:427
MSC_LUNTypeDef unit[MAX_SUPPORTED_LUN]
Definition: usbh_msc.h:130
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
MSC_StateTypeDef state
Definition: usbh_msc.h:125
UsbDeviceAddress address
Definition: address.h:202
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
Definition: usbh_msc.h:71
Definition: usbh_def.h:306
Definition: usbh_def.h:305
Definition: usbh_msc.h:66
png_uint_32 length
Definition: png.c:2247
USBH_ClassTypeDef * pActiveClass
Definition: usbh_def.h:458
__IO HOST_StateTypeDef gState
Definition: usbh_def.h:452
MSC_StateTypeDef state
Definition: usbh_msc.h:104
Definition: usbh_def.h:338
Definition: usbh_msc.h:116
uint8_t info[12]
Definition: masstorage.h:54