USB Host Disk I/O driver. More...
Macros | |
| #define | USB_DEFAULT_BLOCK_SIZE 512 | 
Functions | |
| DSTATUS | USBH_initialize (BYTE lun) | 
| Initializes a Drive.  More... | |
| DSTATUS | USBH_status (BYTE lun) | 
| Gets Disk Status.  More... | |
| DRESULT | USBH_read (BYTE lun, BYTE *buff, DWORD sector, UINT count) | 
| Reads Sector(s)  More... | |
Variables | |
| USBH_HandleTypeDef | hUSB_Host | 
| const Diskio_drvTypeDef | USBH_Driver | 
USB Host Disk I/O driver.
(based on usbh_diskio_template.c v2.0.2)
This software component is licensed by ST under Ultimate Liberty license SLA0044, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: www.st.com/SLA0044
| #define USB_DEFAULT_BLOCK_SIZE 512 | 
| DSTATUS USBH_initialize | ( | BYTE | lun | ) | 
Initializes a Drive.
| lun | : lun id | 
| DSTATUS | Operation status | 
| DRESULT USBH_read | ( | BYTE | lun, | 
| BYTE * | buff, | ||
| DWORD | sector, | ||
| UINT | count | ||
| ) | 
Reads Sector(s)
| lun | : lun id | 
| *buff | Data buffer to store read data | 
| sector | Sector address (LBA) | 
| count | Number of sectors to read (1..128) | 
| DRESULT | Operation result | 
References hUSB_Host, res, and USBH_ErrLog.
| DSTATUS USBH_status | ( | BYTE | lun | ) | 
| USBH_HandleTypeDef hUSB_Host | 
| const Diskio_drvTypeDef USBH_Driver |