36 #if _USE_BUFF_WO_ALIGNMENT == 0 116 #if _USE_BUFF_WO_ALIGNMENT == 0 117 while ((count--)&&(status ==
USBH_OK))
119 status =
USBH_MSC_Read(&HOST_HANDLE, lun, sector + count, (uint8_t *)scratch, 1);
122 memcpy (&buff[count *
_MAX_SS] ,scratch, _MAX_SS);
135 status =
USBH_MSC_Read(&HOST_HANDLE, lun, sector, buff, count);
181 #if _USE_BUFF_WO_ALIGNMENT == 0 184 memcpy (scratch, &buff[count *
_MAX_SS], _MAX_SS);
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.
const Diskio_drvTypeDef USBH_Driver
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.
Disk IO Driver structure definition.
DSTATUS USBH_initialize(BYTE)
Initializes a Drive.
#define SCSI_ASC_MEDIUM_NOT_PRESENT
DRESULT USBH_read(BYTE, BYTE *, DWORD, UINT)
Reads Sector(s)
#define SCSI_ASC_NOT_READY_TO_READY_CHANGE
SCSI_CapacityTypeDef capacity
#define SCSI_ASC_LOGICAL_UNIT_NOT_READY
DSTATUS USBH_status(BYTE)
Gets Disk Status.
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_HandleTypeDef HOST_HANDLE
Header for ff_gen_drv.c module.
#define SCSI_ASC_WRITE_PROTECTED