E:/Projects/AvrLib/include/diskio.h File Reference

#include "integer.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

DSTATUS disk_initialize (BYTE)
DSTATUS disk_status (BYTE)
DRESULT disk_read (BYTE, BYTE *, DWORD, BYTE)
DRESULT disk_write (BYTE, const BYTE *, DWORD, BYTE)
DRESULT disk_ioctl (BYTE, BYTE, void *)
void disk_timerproc (void)


Define Documentation

#define _DISKIO

Definition at line 68 of file diskio.h.

#define _READONLY   0

Definition at line 7 of file diskio.h.

#define _USE_IOCTL   1

Definition at line 8 of file diskio.h.

#define ATA_GET_MODEL   21

Definition at line 64 of file diskio.h.

#define ATA_GET_REV   20

Definition at line 63 of file diskio.h.

#define ATA_GET_SN   22

Definition at line 65 of file diskio.h.

#define CTRL_EJECT   6

Definition at line 55 of file diskio.h.

#define CTRL_LOCK   5

Definition at line 54 of file diskio.h.

#define CTRL_POWER   4

Definition at line 53 of file diskio.h.

#define CTRL_SYNC   0

Definition at line 49 of file diskio.h.

Referenced by sync().

#define GET_BLOCK_SIZE   3

Definition at line 52 of file diskio.h.

#define GET_SECTOR_COUNT   1

Definition at line 50 of file diskio.h.

#define GET_SECTOR_SIZE   2

Definition at line 51 of file diskio.h.

Referenced by auto_mount().

#define MMC_GET_CID   12

Definition at line 59 of file diskio.h.

#define MMC_GET_CSD   11

Definition at line 58 of file diskio.h.

#define MMC_GET_OCR   13

Definition at line 60 of file diskio.h.

#define MMC_GET_SDSTAT   14

Definition at line 61 of file diskio.h.

#define MMC_GET_TYPE   10

Definition at line 57 of file diskio.h.

#define STA_NODISK   0x02

Definition at line 42 of file diskio.h.

#define STA_NOINIT   0x01

#define STA_PROTECT   0x04

Definition at line 43 of file diskio.h.

Referenced by auto_mount(), and DecodeMMCStatus().


Typedef Documentation

typedef BYTE DSTATUS

Definition at line 14 of file diskio.h.


Enumeration Type Documentation

enum DRESULT

Enumerator:
RES_OK 
RES_ERROR 
RES_WRPRT 
RES_NOTRDY 
RES_PARERR 

Definition at line 17 of file diskio.h.


Function Documentation

DSTATUS disk_initialize ( BYTE   ) 

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  ,
BYTE  ,
void *   
)

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  ,
BYTE ,
DWORD  ,
BYTE   
)

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   ) 

Definition at line 92 of file diskio.c.

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

Referenced by auto_mount(), and validate().

void disk_timerproc ( void   ) 

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

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:24 2008 for FrankenRTOS by  doxygen 1.5.6