41#define STA_NOINIT 0x01 /* Drive not initialized */
42#define STA_NODISK 0x02 /* No medium in the drive */
43#define STA_PROTECT 0x04 /* Write protected */
44
45
46/* Command code for disk_ioctrl fucntion */
47
48/* Generic command (Used by FatFs) */
49#define CTRL_SYNC 0 /* Complete pending write process (needed at _FS_READONLY == 0) */
50#define GET_SECTOR_COUNT 1 /* Get media size (needed at _USE_MKFS == 1) */
51#define GET_SECTOR_SIZE 2 /* Get sector size (needed at _MAX_SS != _MIN_SS) */
52#define GET_BLOCK_SIZE 3 /* Get erase block size (needed at _USE_MKFS == 1) */
53#define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at _USE_TRIM == 1) */
54
55/* Generic command (Not used by FatFs) */
56#define CTRL_POWER 5 /* Get/Set power status */
57#define CTRL_LOCK 6 /* Lock/Unlock media removal */
58#define CTRL_EJECT 7 /* Eject media */
59#define CTRL_FORMAT 8 /* Create physical format on the media */
60
61/* MMC/SDC specific ioctl command */
62#define MMC_GET_TYPE 10 /* Get card type */
63#define MMC_GET_CSD 11 /* Get CSD */
64#define MMC_GET_CID 12 /* Get CID */
65#define MMC_GET_OCR 13 /* Get OCR */
66#define MMC_GET_SDSTAT 14 /* Get SD status */
67#define ISDIO_READ 55 /* Read data form SD iSDIO register */
68#define ISDIO_WRITE 56 /* Write data to SD iSDIO register */
69#define ISDIO_MRITE 57 /* Masked write data to SD iSDIO register */
70
71/* ATA/CF specific ioctl command */
72#define ATA_GET_REV 20 /* Get F/W revision */
73#define ATA_GET_MODEL 21 /* Get model name */
74#define ATA_GET_SN 22 /* Get serial number */
75
76#ifdef __cplusplus
77 }
78#endif
79
80#endif
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.