diskio.h File Reference
Include dependency graph for diskio.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Enumerations | |
enum | DriveNumberType { driveNumFlashMem = 0, driveNumSdCard = 1 } |
Enumeration of the Drive numbers : More... | |
Functions | |
DSTATUS | disk_initialize (BYTE drv) |
DSTATUS | disk_status (BYTE drv) |
DRESULT | disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff) |
Enumeration Type Documentation
enum DriveNumberType |
Function Documentation
Gets control data of the disk
- Parameters
-
drv The drive number to get data from ctrl The control data type to get buff The buffer to write data to
- Returns
- The status of the request
Performs low level disk read
- Parameters
-
drv The disk drive to read from buff The pointer to the buffer to read data to sector The sector number to read count The number of sectors to read
- Returns
- The status of the read operation
Performs low level disk write
- Parameters
-
drv The disk drive to write data to buff The pointer to the buffer to write data from sector The sector number to write count The number of sectors to write
- Returns
- The status of the write operation