E:/Projects/AvrLib/FatFS/diskio.c File Reference

#include "diskio.h"
#include "Xmmc.h"

Include dependency graph for diskio.c:

Go to the source code of this file.

Defines

#define ATA   0
#define MMC   1
#define USB   2

Functions

static DSTATUS DecodeMMCResult (unsigned char r)
static DSTATUS DecodeMMCStatus (unsigned short r)
static DRESULT DecodeMMCIO (unsigned char r)
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)


Define Documentation

#define ATA   0

Definition at line 16 of file diskio.c.

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

#define MMC   1

Definition at line 17 of file diskio.c.

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

#define USB   2

Definition at line 18 of file diskio.c.

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


Function Documentation

static DRESULT DecodeMMCIO ( unsigned char  r  )  [static]

static DSTATUS DecodeMMCResult ( unsigned char  r  )  [static]

static DSTATUS DecodeMMCStatus ( unsigned short  r  )  [static]

Definition at line 33 of file diskio.c.

References MMC_R2_WP, MMC_R2_WP_ERASESKIPPED, STA_NOINIT, and STA_PROTECT.

Referenced by disk_status().

DSTATUS disk_initialize ( BYTE  drv  ) 

Definition at line 58 of file diskio.c.

References ATA, DecodeMMCResult(), MMC, mmcReset(), STA_NOINIT, and USB.

Referenced by auto_mount().

DRESULT disk_ioctl ( BYTE  drv,
BYTE  ctrl,
void *  buff 
)

Definition at line 216 of file diskio.c.

References ATA, MMC, RES_PARERR, and USB.

Referenced by auto_mount(), and sync().

DRESULT disk_read ( BYTE  drv,
BYTE buff,
DWORD  sector,
BYTE  count 
)

Definition at line 128 of file diskio.c.

References ATA, DecodeMMCIO(), MMC, mmcRead(), RES_PARERR, and USB.

Referenced by auto_mount(), check_fs(), f_lseek(), f_read(), f_write(), and move_window().

DSTATUS disk_status ( BYTE  drv  ) 

Definition at line 92 of file diskio.c.

References ATA, DecodeMMCStatus(), MMC, mmcSendStatus(), STA_NOINIT, and USB.

Referenced by auto_mount(), and validate().

DRESULT disk_write ( BYTE  drv,
const BYTE buff,
DWORD  sector,
BYTE  count 
)

Definition at line 173 of file diskio.c.

References ATA, DecodeMMCIO(), MMC, mmcWrite(), RES_PARERR, and USB.

Referenced by f_lseek(), f_mkdir(), f_read(), f_sync(), f_write(), move_window(), reserve_direntry(), and sync().


Generated on Sun Aug 31 13:30:08 2008 for FrankenRTOS by  doxygen 1.5.6