roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
diskio.h File Reference

Interfaces the FatFS file-system SD card function calls to the SD card implementation for roneos. More...

#include "integer.h"

Go to the source code of this file.

Functions

DSTATUS disk_initialize (BYTE drive)
 Initialized the disk drive (the SD Card). More...
 
DSTATUS disk_status (BYTE drive)
 Gets the current status of the disk (SD card). More...
 
DWORD get_fattime (void)
 

Detailed Description

Interfaces the FatFS file-system SD card function calls to the SD card implementation for roneos.

Since
May 28, 2013
Author
Jeremy Hunt

Function Documentation

DSTATUS disk_initialize ( BYTE  drive)

Initialized the disk drive (the SD Card).

Parameters
driveThe drive which is to be initialized (Must be 0).
Returns
DSTATUS The status of the drive as flags.
DSTATUS disk_status ( BYTE  drive)

Gets the current status of the disk (SD card).

Parameters
driveThe drive which is to be read (Must be 0).
Returns
DSTATUS The status of the drive as flags
DWORD get_fattime ( void  )

Returns the current time (currently a fake time) as a packed 32 bit value. Used in the FatFs File system.