5 #ifndef _DISKIO_DEFINED 6 #define _DISKIO_DEFINED 44 #define STA_NOINIT 0x01 45 #define STA_NODISK 0x02 46 #define STA_PROTECT 0x04 53 #define GET_SECTOR_COUNT 1 54 #define GET_SECTOR_SIZE 2 55 #define GET_BLOCK_SIZE 3 65 #define MMC_GET_TYPE 10 66 #define MMC_GET_CSD 11 67 #define MMC_GET_CID 12 68 #define MMC_GET_OCR 13 69 #define MMC_GET_SDSTAT 14 72 #define ATA_GET_REV 20 73 #define ATA_GET_MODEL 21
DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
Writes Sector(s)
DSTATUS disk_status(BYTE pdrv)
Gets Disk Status.
DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
Reads Sector(s)
DSTATUS disk_initialize(BYTE pdrv)
Initializes a Drive.
DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
I/O control operation.
DWORD get_fattime(void)
Gets Time from RTC.