#include <EepromAbstraction.h>
Public Member Functions | |
virtual uint8_t | read8 (EepromPosition position) |
virtual void | write8 (EepromPosition position, uint8_t val) |
virtual uint16_t | read16 (EepromPosition position) |
virtual void | write16 (EepromPosition position, uint16_t val) |
virtual uint32_t | read32 (EepromPosition position) |
virtual void | write32 (EepromPosition position, uint32_t val) |
virtual void | readIntoMemArray (uint8_t *memDest, EepromPosition romSrc, uint8_t len) |
virtual void | writeArrayToRom (EepromPosition romDest, const uint8_t *memSrc, uint8_t len) |
Public Member Functions inherited from EepromAbstraction | |
virtual bool | hasErrorOccurred () |
An implementation of eeprom that uses the standard AVR EEPROM built into most 8 bit chips. This will only write values to eeprom if they have actually changed. Preserving write capacity.
|
virtual |
Read an 8 bit (byte) value at a specified position
position | address at which to read |
Implements EepromAbstraction.
|
virtual |
write an 8 bit (byte) value to the specified position
position | the position at which to write |
val | the new value |
Implements EepromAbstraction.
|
virtual |
read a 16 bit value at position at a specified position
position | the position at which to read |
Implements EepromAbstraction.
|
virtual |
write a 16 bit value to the specified position
position | the position at which to write |
val | the value to read |
Implements EepromAbstraction.
|
virtual |
read a 32 bit value at a specified position
position | the position at which to read |
Implements EepromAbstraction.
|
virtual |
write a 32 bit value to position
position | the position at which to write |
val | the value to write out. |
Implements EepromAbstraction.
|
virtual |
Read an array of bytes from EEPROM into memory
memDest | the memory where the EEPROM data should be copied to |
romSrc | the source position in EEPROM storage |
len | the length of the array |
Implements EepromAbstraction.
|
virtual |
Writes an array of bytes from memory to EEPROM storage
romDest | the start position in eeprom storage that the array should be copied to |
memSrc | the memory where the rom should be copied from |
len | the length of the array |
Implements EepromAbstraction.