#include <EepromAbstraction.h>
Public Member Functions | |
virtual bool | hasErrorOccurred () |
virtual uint8_t | read8 (EepromPosition position)=0 |
virtual void | write8 (EepromPosition position, uint8_t val)=0 |
virtual uint16_t | read16 (EepromPosition position)=0 |
virtual void | write16 (EepromPosition position, uint16_t val)=0 |
virtual uint32_t | read32 (EepromPosition position)=0 |
virtual void | write32 (EepromPosition position, uint32_t val)=0 |
virtual void | readIntoMemArray (uint8_t *memDest, EepromPosition romSrc, uint8_t len)=0 |
virtual void | writeArrayToRom (EepromPosition romDest, const uint8_t *memSrc, uint8_t len)=0 |
Provides an abstraction on eeprom storage, to allow either on chip or external I2c based eeprom storage, or even No storage whatsoever. This helps no end with 32 bit boards that don't have eeprom! Most EEPROM implementions here only write if there are changes.
|
inlinevirtual |
Best efforts error flag that will clear once read.
Reimplemented in MockEepromAbstraction, and I2cAt24Eeprom.
|
pure virtual |
Read an 8 bit (byte) value at a specified position
position | address at which to read |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, ArduinoEEPROMAbstraction, and AvrEeprom.
|
pure virtual |
write an 8 bit (byte) value to the specified position
position | the position at which to write |
val | the new value |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, AvrEeprom, and ArduinoEEPROMAbstraction.
|
pure virtual |
read a 16 bit value at position at a specified position
position | the position at which to read |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, AvrEeprom, and ArduinoEEPROMAbstraction.
|
pure virtual |
write a 16 bit value to the specified position
position | the position at which to write |
val | the value to read |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, AvrEeprom, and ArduinoEEPROMAbstraction.
|
pure virtual |
read a 32 bit value at a specified position
position | the position at which to read |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, AvrEeprom, and ArduinoEEPROMAbstraction.
|
pure virtual |
write a 32 bit value to position
position | the position at which to write |
val | the value to write out. |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, AvrEeprom, and ArduinoEEPROMAbstraction.
|
pure 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 |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, ArduinoEEPROMAbstraction, and AvrEeprom.
|
pure 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 |
Implemented in MockEepromAbstraction, I2cAt24Eeprom, ArduinoEEPROMAbstraction, and AvrEeprom.