External memory storage interface, data block read/write, caching and streaming class. Handles linear allocation of storage blocks on the device.
Definition at line 27 of file Storage.h.
virtual int Storage::read |
( |
void * |
dest, |
|
|
uint32_t |
src, |
|
|
size_t |
count |
|
) |
| |
|
pure virtual |
Read count number of bytes from storage address to buffer. Returns number of bytes read or negative error code.
- Parameters
-
[in] | dest | destination buffer pointer. |
[in] | src | source memory address on device. |
[in] | count | number of bytes to read from device. |
- Returns
- number of bytes read or negative error code.
Implemented in AT24CXX, MC23LCXXX< KBYTE, SS_PIN, FREQ >, MC23LCXXX< 64, SS_PIN, FREQ >, MC23LCXXX< 128, SS_PIN, FREQ >, and EEPROM.
virtual int Storage::write |
( |
uint32_t |
dest, |
|
|
const void * |
src, |
|
|
size_t |
count |
|
) |
| |
|
pure virtual |
Write count number of bytes to storage address from buffer. Returns number of bytes read or negative error code.
- Parameters
-
[in] | dest | destination memory address on device. |
[in] | src | source buffer pointer. |
[in] | count | number of bytes to write to device. |
- Returns
- number of bytes written or negative error code.
Implemented in AT24CXX, MC23LCXXX< KBYTE, SS_PIN, FREQ >, MC23LCXXX< 64, SS_PIN, FREQ >, MC23LCXXX< 128, SS_PIN, FREQ >, and EEPROM.