BlockDeviceInterface class.
More...
#include <BlockDeviceInterface.h>
|
virtual bool | readSector (uint32_t sector, uint8_t *dst)=0 |
|
virtual bool | readSectors (uint32_t sector, uint8_t *dst, size_t ns)=0 |
|
virtual uint32_t | sectorCount ()=0 |
|
virtual bool | syncDevice ()=0 |
|
virtual bool | writeSector (uint32_t sector, const uint8_t *src)=0 |
|
virtual bool | writeSectors (uint32_t sector, const uint8_t *src, size_t ns)=0 |
|
virtual bool BlockDeviceInterface::readSector |
( |
uint32_t |
sector, |
|
|
uint8_t * |
dst |
|
) |
| |
|
pure virtual |
Read a 512 byte sector.
- Parameters
-
[in] | sector | Logical sector to be read. |
[out] | dst | Pointer to the location that will receive the data. |
- Returns
- The value true is returned for success and the value false is returned for failure.
Implemented in SdioCard.
virtual bool BlockDeviceInterface::readSectors |
( |
uint32_t |
sector, |
|
|
uint8_t * |
dst, |
|
|
size_t |
ns |
|
) |
| |
|
pure virtual |
Read multiple 512 byte sectors.
- Parameters
-
[in] | sector | Logical sector to be read. |
[in] | ns | Number of sectors to be read. |
[out] | dst | Pointer to the location that will receive the data. |
- Returns
- The value true is returned for success and the value false is returned for failure.
Implemented in SdioCard.
virtual uint32_t BlockDeviceInterface::sectorCount |
( |
| ) |
|
|
pure virtual |
virtual bool BlockDeviceInterface::syncDevice |
( |
| ) |
|
|
pure virtual |
End multi-sector transfer and go to idle state.
- Returns
- The value true is returned for success and the value false is returned for failure.
Implemented in SdioCard.
virtual bool BlockDeviceInterface::writeSector |
( |
uint32_t |
sector, |
|
|
const uint8_t * |
src |
|
) |
| |
|
pure virtual |
Writes a 512 byte sector.
- Parameters
-
[in] | sector | Logical sector to be written. |
[in] | src | Pointer to the location of the data to be written. |
- Returns
- The value true is returned for success and the value false is returned for failure.
Implemented in SdioCard.
virtual bool BlockDeviceInterface::writeSectors |
( |
uint32_t |
sector, |
|
|
const uint8_t * |
src, |
|
|
size_t |
ns |
|
) |
| |
|
pure virtual |
Write multiple 512 byte sectors.
- Parameters
-
[in] | sector | Logical sector to be written. |
[in] | ns | Number of sectors to be written. |
[in] | src | Pointer to the location of the data to be written. |
- Returns
- The value true is returned for success and the value false is returned for failure.
Implemented in SdioCard.
The documentation for this class was generated from the following file: