AceUtils
0.5.0
Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.
|
A wrapper class around an EEPROM class that follows the AVR-style API. More...
#include <CrcEeprom.h>
Public Member Functions | |
AvrEepromAdapter (E &eeprom) | |
Wrap around an AVR-flavored EEPROM object. | |
virtual void | begin (size_t size) |
Initialize the size of the EEPROM space. More... | |
virtual void | write (size_t address, uint8_t val) |
Write thte byte at address, potentially buffered. | |
virtual uint8_t | read (size_t address) const |
Return the byte at address. | |
virtual bool | commit () |
Flush the buffer if it is used. | |
A wrapper class around an EEPROM class that follows the AVR-style API.
E | type of the EEPROM class |
Definition at line 47 of file CrcEeprom.h.
|
inlinevirtual |
Initialize the size of the EEPROM space.
On AVR-flavored EEPROM, this does nothing.
Implements ace_utils::crc_eeprom::IEepromAdapter.
Definition at line 54 of file CrcEeprom.h.