APM:Libraries
Macros | Functions
diskio.c File Reference
#include "diskio.h"
#include "FatFs/drivers/sd.h"
Include dependency graph for diskio.c:

Go to the source code of this file.

Macros

#define DEV_SD   0
 
#define DEV_NODEV   1
 

Functions

DSTATUS disk_status (BYTE pdrv)
 
DSTATUS disk_initialize (BYTE pdrv)
 
DRESULT disk_read (BYTE pdrv, BYTE *buff, DWORD sector, UINT count)
 
DRESULT disk_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)
 
DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void *buff)
 

Macro Definition Documentation

◆ DEV_NODEV

#define DEV_NODEV   1

Definition at line 25 of file diskio.c.

◆ DEV_SD

#define DEV_SD   0

Definition at line 24 of file diskio.c.

Referenced by disk_initialize(), disk_ioctl(), disk_read(), disk_status(), and disk_write().

Function Documentation

◆ disk_initialize()

DSTATUS disk_initialize ( BYTE  pdrv)

Definition at line 49 of file diskio.c.

Referenced by f_mkfs(), and find_volume().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disk_ioctl()

DRESULT disk_ioctl ( BYTE  pdrv,
BYTE  cmd,
void *  buff 
)

Definition at line 112 of file diskio.c.

Referenced by f_mkfs(), find_volume(), remove_chain(), and sync_fs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disk_read()

DRESULT disk_read ( BYTE  pdrv,
BYTE buff,
DWORD  sector,
UINT  count 
)

Definition at line 67 of file diskio.c.

Referenced by f_lseek(), f_mkfs(), f_open(), f_read(), f_rename(), f_write(), and move_window().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disk_status()

DSTATUS disk_status ( BYTE  pdrv)

Definition at line 32 of file diskio.c.

Referenced by find_volume(), and validate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disk_write()

DRESULT disk_write ( BYTE  pdrv,
const BYTE buff,
DWORD  sector,
UINT  count 
)

Definition at line 90 of file diskio.c.

Referenced by dir_clear(), f_lseek(), f_mkfs(), f_read(), f_rename(), f_sync(), f_truncate(), f_write(), sync_fs(), and sync_window().

Here is the call graph for this function:
Here is the caller graph for this function: