![]() |
M4521_BSP V3.02.000
The Board Support Package for M4521
|

Functions | |
| int32_t | USBH_MassInit (void) |
| Initialize USB Host Mass Storage driver. More... | |
| int32_t | USBH_MassGetDiskList (mass_disk_t *dlist[], int max) |
| Obtain the list of currently connected USB Mass Storage disk. More... | |
| int32_t | USBH_MassRawRead (mass_disk_t *disk, uint32_t sectorN, int32_t scnt, uint8_t *buff) |
| Read raw data from connected USB Mass Storage disk. More... | |
| int32_t | USBH_MassRawWrite (mass_disk_t *disk, uint32_t sectorN, int32_t scnt, uint8_t *buff) |
| Write raw data to connected USB Mass Storage disk. More... | |
| int32_t USBH_MassGetDiskList | ( | mass_disk_t * | dlist[], |
| int | max | ||
| ) |
Obtain the list of currently connected USB Mass Storage disk.
| [out] | dlist | An array of disk pointer. |
| [in] | max | Maximum avalable entries of dlist. |
| 0 | No disk found |
| Otherwise | Number of disk |
Definition at line 587 of file UmasDriver.c.
| int32_t USBH_MassInit | ( | void | ) |
Initialize USB Host Mass Storage driver.
| 0 | Success |
| Otherwise | Failed |
Definition at line 564 of file UmasDriver.c.

| int32_t USBH_MassRawRead | ( | mass_disk_t * | disk, |
| uint32_t | sectorN, | ||
| int32_t | scnt, | ||
| uint8_t * | buff | ||
| ) |
Read raw data from connected USB Mass Storage disk.
| [in] | disk | The disk pointer. |
| [in] | sectorN | The logical sector number to be read. |
| [in] | scnt | Number of continuous sectors to be read. |
| [out] | buff | Data buffer used to hold data read from device. |
| 0 | Success |
| -1 | Failed |
Definition at line 463 of file Umas_FATFS.c.
| int32_t USBH_MassRawWrite | ( | mass_disk_t * | disk, |
| uint32_t | sectorN, | ||
| int32_t | scnt, | ||
| uint8_t * | buff | ||
| ) |
Write raw data to connected USB Mass Storage disk.
| [in] | disk | The disk pointer. |
| [in] | sectorN | The logical sector number to be written. |
| [in] | scnt | Number of continuous sectors to be written. |
| [in] | buff | Data to be written to device. |
| 0 | Success |
| -1 | Failed |
Definition at line 493 of file Umas_FATFS.c.