#include <SdCard.h>
Public Member Functions | |
uint32_t | cardSize (void) |
uint8_t | init (void) |
uint8_t | readBlock (uint32_t block, uint8_t *dst) |
uint8_t | writeBlock (uint32_t block, uint8_t *src) |
Supports raw access to a standard SD flash memory card.
uint32_t SdCard::cardSize | ( | void | ) |
Determine the size of a standard SD flash memory card
uint8_t SdCard::init | ( | void | ) |
Initialize a SD flash memory card.
uint8_t SdCard::readBlock | ( | uint32_t | blockNumber, | |
uint8_t * | dst | |||
) | [virtual] |
Reads a 512 byte block from a storage device.
[in] | blockNumber | Logical block to be read. |
[out] | dst | Pointer to the location that will receive the data. |
Reimplemented from BlockDevice.
uint8_t SdCard::writeBlock | ( | uint32_t | blockNumber, | |
uint8_t * | src | |||
) | [virtual] |
Writes a 512 byte block to a storage device.
[in] | blockNumber | Logical block to be written. |
[in] | src | Pointer to the location of the data to be written. |
Reimplemented from BlockDevice.