diskio.c File Reference
#include "diskio.h"
#include "spi_flash.h"
#include "sd.h"
#include "c_tlm_var.h"
#include "spi_sem.h"
Include dependency graph for diskio.c:

Functions | |
DSTATUS | disk_initialize (BYTE drv) |
DSTATUS | disk_status (BYTE drv) |
DRESULT | disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count) |
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff) |
Function Documentation
Gets control data of the disk
- Parameters
-
drv The drive number to get data from ctrl The control data type to get buff The buffer to write data to
- Returns
- The status of the request
Performs low level disk read
- Parameters
-
drv The disk drive to read from buff The pointer to the buffer to read data to sector The sector number to read count The number of sectors to read
- Returns
- The status of the read operation
Performs low level disk write
- Parameters
-
drv The disk drive to write data to buff The pointer to the buffer to write data from sector The sector number to write count The number of sectors to write
- Returns
- The status of the write operation