BlockDevice Class Reference

BlockDevice is the base class for devices supported by Fat16. More...

#include <BlockDevice.h>

Inheritance diagram for BlockDevice:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual uint8_t readBlock (uint32_t blockNumber, uint8_t *dst)
virtual uint8_t writeBlock (uint32_t blockNumber, uint8_t *src)


Detailed Description

BlockDevice is the base class for devices supported by Fat16.

Member Function Documentation

virtual uint8_t BlockDevice::readBlock ( uint32_t  blockNumber,
uint8_t *  dst 
) [virtual]

Read a 512 byte block from a storage device.

Parameters:
[in] blockNumber Logical block to be read.
[out] dst Pointer to the location that will receive the data.
Returns:
The value one, true, is returned for success and the value zero, false, is returned for failure.

Reimplemented in SdCard.

virtual uint8_t BlockDevice::writeBlock ( uint32_t  blockNumber,
uint8_t *  src 
) [virtual]

Write a 512 byte block to a storage device.

Parameters:
[in] blockNumber Logical block to be written.
[in] src Pointer to the location of the data to be written.
Returns:
The value one, true, is returned for success and the value zero, false, is returned for failure.

Reimplemented in SdCard.


The documentation for this class was generated from the following file:

Generated on Thu Oct 9 08:22:19 2008 for Fat16 by  doxygen 1.5.6