capi/diskio.h File Reference

#include "type.h"
Include dependency graph for diskio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _READONLY   0
#define _USE_IOCTL   1
#define STA_NOINIT   0x01
#define STA_NODISK   0x02
#define STA_PROTECT   0x04
#define CTRL_SYNC   0
#define GET_SECTOR_COUNT   1
#define GET_SECTOR_SIZE   2
#define GET_BLOCK_SIZE   3
#define CTRL_POWER   4
#define CTRL_LOCK   5
#define CTRL_EJECT   6
#define MMC_GET_TYPE   10
#define MMC_GET_CSD   11
#define MMC_GET_CID   12
#define MMC_GET_OCR   13
#define MMC_GET_SDSTAT   14
#define ATA_GET_REV   20
#define ATA_GET_MODEL   21
#define ATA_GET_SN   22
#define _DISKIO

Typedefs

typedef BYTE DSTATUS

Enumerations

enum  DRESULT {
  RES_OK = 0, RES_ERROR, RES_WRPRT, RES_NOTRDY,
  RES_PARERR
}

Functions

BOOL assign_drives (int argc, char *argv[])
DSTATUS disk_initialize (BYTE)
DSTATUS disk_status (BYTE)
DRESULT disk_read (BYTE, BYTE *, DWORD, WORD, BYTE, BYTE)
DRESULT disk_write (BYTE, const BYTE *, DWORD, BYTE)
DRESULT disk_ioctl (BYTE, BYTE, void *)

Define Documentation

#define _DISKIO
#define _READONLY   0
#define _USE_IOCTL   1
#define ATA_GET_MODEL   21
#define ATA_GET_REV   20
#define ATA_GET_SN   22
#define CTRL_EJECT   6
#define CTRL_LOCK   5
#define CTRL_POWER   4
#define CTRL_SYNC   0

Referenced by disk_ioctl().

#define GET_BLOCK_SIZE   3

Referenced by disk_ioctl().

#define GET_SECTOR_COUNT   1

Referenced by disk_ioctl().

#define GET_SECTOR_SIZE   2

Referenced by chk_mounted().

#define MMC_GET_CID   12
#define MMC_GET_CSD   11
#define MMC_GET_OCR   13
#define MMC_GET_SDSTAT   14
#define MMC_GET_TYPE   10
#define STA_NODISK   0x02

Referenced by disk_initialize().

#define STA_NOINIT   0x01
#define STA_PROTECT   0x04

Referenced by chk_mounted().


Typedef Documentation

typedef BYTE DSTATUS

Enumeration Type Documentation

enum DRESULT
Enumerator:
RES_OK 
RES_ERROR 
RES_WRPRT 
RES_NOTRDY 
RES_PARERR 

Function Documentation

BOOL assign_drives ( int  argc,
char *  argv[] 
)
DSTATUS disk_initialize ( BYTE  drv  ) 

-----------------------------------------------------------------------/ Initialize Disk Drive / -----------------------------------------------------------------------/

References GetSDCD(), Init_SD(), SD_OK, STA_NODISK, and STA_NOINIT.

Referenced by chk_mounted().

Here is the call graph for this function:

Here is the caller graph for this function:

DRESULT disk_ioctl ( BYTE  ,
BYTE  ,
void *   
)

Get number of sectors on the disk (DWORD)

References CTRL_SYNC, DWORD, SDCardData::erase_size, GET_BLOCK_SIZE, GET_SECTOR_COUNT, GetSDCD(), RES_ERROR, RES_NOTRDY, RES_OK, RES_PARERR, SDCardData::sector_count, and STA_NOINIT.

Referenced by chk_mounted().

Here is the call graph for this function:

Here is the caller graph for this function:

DRESULT disk_read ( BYTE  ,
BYTE ,
DWORD  ,
WORD  ,
BYTE  ,
BYTE   
)

References GetSDCD(), RES_ERROR, RES_NOTRDY, RES_OK, RES_PARERR, SD_read(), SD_read_multiple(), ssdBufSize, STA_NOINIT, TRACE1, TRACE3, and TRACE4.

Referenced by chk_mounted(), f_lseek(), f_read(), f_write(), LoadFileToSSDMem(), and PlayMJPEG().

Here is the call graph for this function:

Here is the caller graph for this function:

DSTATUS disk_status ( BYTE  drv  ) 

-----------------------------------------------------------------------/ Get Disk Status / -----------------------------------------------------------------------/

References STA_NOINIT.

Referenced by chk_mounted().

Here is the caller graph for this function:

DRESULT disk_write ( BYTE  ,
const BYTE ,
DWORD  ,
BYTE   
)

References GetSDCD(), RES_ERROR, RES_OK, SD_write(), and TRACE3.

Referenced by f_lseek(), f_read(), f_sync(), and f_write().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Wed Mar 23 11:08:23 2011 for Omnima LCD by  doxygen 1.6.3