MAVRK Embedded Software 0.91
Software Libraries for the MAVRK motherboard and related components
Defines | Typedefs | Enumerations | Functions

diskio.h File Reference

#include "integer.h"

Go to the source code of this file.

Defines

#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

Typedefs

typedef unsigned char DSTATUS

Enumerations

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

Functions

int assign_drives (int, int)
DSTATUS disk_initialize (unsigned char)
DSTATUS disk_status (unsigned char)
DRESULT disk_read (unsigned char, unsigned char *, DWORD, unsigned char)
DRESULT disk_write (unsigned char, const unsigned char *, DWORD, unsigned char)
DRESULT disk_ioctl (unsigned char, unsigned char, void *)

Define Documentation

#define CTRL_SYNC   0
#define GET_BLOCK_SIZE   3
#define GET_SECTOR_COUNT   1
#define GET_SECTOR_SIZE   2
#define STA_NODISK   0x02
#define STA_NOINIT   0x01
#define STA_PROTECT   0x04

Typedef Documentation

typedef unsigned char DSTATUS

Enumeration Type Documentation

enum DRESULT
Enumerator:
RES_OK 
RES_ERROR 
RES_WRPRT 
RES_NOTRDY 
RES_PARERR 

Function Documentation

int assign_drives ( int  ,
int   
)
DSTATUS disk_initialize ( unsigned  char)
DRESULT disk_ioctl ( unsigned  char,
unsigned  char,
void *   
)
DRESULT disk_read ( unsigned  char,
unsigned char *  ,
DWORD  ,
unsigned  char 
)
DSTATUS disk_status ( unsigned  char)
DRESULT disk_write ( unsigned  char,
const unsigned char *  ,
DWORD  ,
unsigned  char 
)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines