#include "fs_mci.h"
#include "board.h"
#include "chip.h"
Go to the source code of this file.
|
uint32_t | unstuff_bits (uint8_t *resp, uint32_t start, uint32_t size) |
|
bool | mci_wait_for_ready (void) |
|
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff) |
| Disk Drive miscellaneous Functions.
|
|
DRESULT | disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count) |
| Read Sector(s)
|
|
DSTATUS | disk_status (BYTE drv) |
| Get Disk Status.
|
|
DRESULT | disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count) |
| Write Sector(s)
|
|
void | disk_timerproc (void) |
| Device timer function.
|
|
|
DSTATUS | disk_initialize (BYTE drv) |
| Initialize Disk Drive.
|
|
Disk Drive miscellaneous Functions.
- Parameters
-
drv | : Physical drive number |
ctrl | : Control code |
buff | : Buffer to send/receive control data |
- Returns
- Drive status
Definition at line 146 of file fs_mci.c.
Read Sector(s)
- Parameters
-
drv | : Physical drive number |
buff | : Pointer to the data buffer to store read data |
sector | : Start sector number (LBA) |
count | : Sector count (1..255 |
- Returns
- Drive status
Definition at line 227 of file fs_mci.c.
Get Disk Status.
- Parameters
-
drv | : Physical drive number |
- Returns
- Drive status
Definition at line 244 of file fs_mci.c.
void disk_timerproc |
( |
void |
| ) |
|
Device timer function.
- Returns
- Nothing This function must be called from timer interrupt routine in period of 10 ms to generate card control timing
Definition at line 272 of file fs_mci.c.
Write Sector(s)
- Parameters
-
drv | : Physical drive number |
buff | : Pointer to the data to be written |
sector | : Start sector number (LBA) |
count | : Sector count (1..255 |
- Returns
- Drive status
Definition at line 254 of file fs_mci.c.
bool mci_wait_for_ready |
( |
void |
| ) |
|