5 #ifndef _DISKIO_DEFINED 6 #define _DISKIO_DEFINED 31 DSTATUS disk_initialize (BYTE pdrv);
32 DSTATUS disk_status (BYTE pdrv);
33 DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count);
34 DRESULT disk_write (BYTE pdrv,
const BYTE* buff, DWORD sector, UINT count);
35 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd,
void* buff);
40 #define STA_NOINIT 0x01 41 #define STA_NODISK 0x02 42 #define STA_PROTECT 0x04 49 #define GET_SECTOR_COUNT 1 50 #define GET_SECTOR_SIZE 2 51 #define GET_BLOCK_SIZE 3 61 #define MMC_GET_TYPE 10 62 #define MMC_GET_CSD 11 63 #define MMC_GET_CID 12 64 #define MMC_GET_OCR 13 65 #define MMC_GET_SDSTAT 14 67 #define ISDIO_WRITE 56 68 #define ISDIO_MRITE 57 71 #define ATA_GET_REV 20 72 #define ATA_GET_MODEL 21 76 #define CTR_SETUP_DISK 23 //Set up fatfs disk with the io interface Structure used for CTR_SETUP_DISK ioctl.
Definition: diskio.h:80