Prusa MINI Firmware overview
|
Go to the documentation of this file.
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
BYTE DSTATUS
Definition: diskio.h:19
Disk_drvTypeDef disk
Definition: ff_gen_drv.c:54
uint8_t is_initialized[_VOLUMES]
Definition: ff_gen_drv.h:86
DRESULT
Definition: diskio.h:22
Global Disk IO Drivers structure definition.
Definition: ff_gen_drv.h:84
__weak DWORD get_fattime(void)
Gets Time from RTC.
Definition: diskio.c:175
uint8_t lun[_VOLUMES]
Definition: ff_gen_drv.h:88
DSTATUS(* disk_status)(BYTE)
Definition: ff_gen_drv.h:70
DRESULT(* disk_read)(BYTE, BYTE *, DWORD, UINT)
Definition: ff_gen_drv.h:71
DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
Reads Sector(s)
Definition: diskio.c:113
DSTATUS disk_initialize(BYTE pdrv)
Initializes a Drive.
Definition: diskio.c:91
DSTATUS disk_initialize(BYTE pdrv)
Initializes a Drive.
Definition: diskio.c:91
Header for ff_gen_drv.c module.
const Diskio_drvTypeDef * drv[_VOLUMES]
Definition: ff_gen_drv.h:87
DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
Writes Sector(s)
Definition: diskio.c:135
Definition: onboard_sd.h:23
BYTE DSTATUS
Definition: onboard_sd.h:19
unsigned long DWORD
Definition: onboard_sd.h:15
DSTATUS disk_status(BYTE pdrv)
Gets Disk Status.
Definition: diskio.c:76
DSTATUS disk_status(BYTE pdrv)
Gets Disk Status.
Definition: diskio.c:76
DRESULT(* disk_write)(BYTE, const BYTE *, DWORD, UINT)
Definition: ff_gen_drv.h:73
DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
I/O control operation.
Definition: diskio.c:157
unsigned char BYTE
Definition: onboard_sd.h:13
DRESULT
Definition: onboard_sd.h:22
DSTATUS(* disk_initialize)(BYTE)
Definition: ff_gen_drv.h:69
DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
Writes Sector(s)
Definition: diskio.c:135
DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
Reads Sector(s)
Definition: diskio.c:113
DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
I/O control operation.
Definition: diskio.c:157
unsigned int UINT
Definition: onboard_sd.h:16
DWORD get_fattime(void)
Gets Time from RTC.
Definition: diskio.c:175
DRESULT(* disk_ioctl)(BYTE, BYTE, void *)
Definition: ff_gen_drv.h:76