Go to the documentation of this file.
40 void copy_al2un(
unsigned char *dst,
const unsigned long *src,
int count);
49 void copy_un2al(
unsigned long *dst,
const unsigned char *src,
int count);
80 #define GET_SECTOR_COUNT 1
81 #define GET_SECTOR_SIZE 2
82 #define GET_BLOCK_SIZE 3
83 #define CTRL_ERASE_SECTOR 4
99 #define MMC_GET_TYPE 10
100 #define MMC_GET_CSD 11
101 #define MMC_GET_CID 12
102 #define MMC_GET_OCR 13
103 #define MMC_GET_SDSTAT 14
115 diskio_sta_t mci_initialize(void);
@ DISKIO_RES_ERROR
1: R/W Error
@ DISKIO_STA_NOINIT
Drive not initialized.
void copy_al2un(unsigned char *dst, const unsigned long *src, int count)
Copy aligned to unaligned.
diskio_result_t mci_read(unsigned char *buff, unsigned long sector, unsigned char count)
Read sectors over the media control interface (MCI)
@ DISKIO_STA_NODISK
No medium in the drive.
@ DISKIO_RES_PARERR
4: Invalid Parameter
diskio_sta_t mci_status(void)
Get the status of the media control interface (MCI)
void copy_un2al(unsigned long *dst, const unsigned char *src, int count)
Copy unaligned to aligned.
diskio_result_t
Results of Disk Functions.
@ DISKIO_STA_PROTECT
Write protected.
diskio_sta_t
Disk Status Bits.
diskio_result_t mci_write(const unsigned char *buff, unsigned long sector, unsigned char count)
Write sectors over the media control interface (MCI)
@ DISKIO_RES_NOTRDY
3: Not Ready
@ DISKIO_RES_OK
0: Successful
diskio_result_t mci_ioctl(unsigned char ctrl, void *buff)
IOCTL functions for the media control interface (MCI)
@ DISKIO_RES_WRPRT
2: Write Protected