EepromSecureData
CRC-controlled EEPROM memory storage
|
CRC-controlled EEPROM memory storage template class. More...
#include <EepromSecureData.h>
Public Member Functions | |
EepromSecureData () | |
Construct a new Eeprom Secure Data object. More... | |
EepromSecureData (const T &data) | |
Construct a new Eeprom Secure Data object with initial data. More... | |
~EepromSecureData () | |
Destroy the Eeprom Secure Data object. More... | |
bool | save () |
Save data to EEPROM memory with CRC. More... | |
bool | load (const T &defaultData=T()) |
Load data from EEPROM memory with CRC check. More... | |
uint16_t | size () const |
Get the size of the object with CRC. | |
T & | data () |
Get the data object. | |
const T & | data () const |
Get the data object as const. | |
operator T& () | |
Overloaded cast operator to T &. More... | |
operator const T & () const | |
Overloaded cast operator to const T &. More... | |
T * | operator& () |
Overloaded cast operator to T *. More... | |
const T * | operator& () const |
Overloaded cast operator to const T. More... | |
T & | operator= (const T &t) |
Overloaded assignment operator from T. | |
EepromSecureData & | operator= (const EepromSecureData &rhs) |
Overloaded assignment operator from EepromSecureData. | |
bool | operator== (const EepromSecureData &rhs) const |
Overloaded equality operator. | |
bool | operator!= (const EepromSecureData &rhs) const |
Overloaded not-equality operator. | |
CRC-controlled EEPROM memory storage template class.
T | data type |
Definition at line 17 of file EepromSecureData.h.
|
inline |
Construct a new Eeprom Secure Data object.
EEPROM memory is allocated automatically, EepromBase::counter is updated with the size of the object
Definition at line 25 of file EepromSecureData.h.
References EepromSecureData< T >::size().
|
inline |
Construct a new Eeprom Secure Data object with initial data.
data | initial data |
Definition at line 35 of file EepromSecureData.h.
References EepromSecureData< T >::data().
|
inline |
Destroy the Eeprom Secure Data object.
EEPROM memory is saved automatically
Definition at line 44 of file EepromSecureData.h.
References EepromSecureData< T >::save().
|
inline |
Load data from EEPROM memory with CRC check.
defaultData | default data if CRC check failed |
Definition at line 72 of file EepromSecureData.h.
References EepromSecureData< T >::save().
|
inline |
Overloaded cast operator to const T &.
Definition at line 122 of file EepromSecureData.h.
|
inline |
Overloaded cast operator to T &.
Definition at line 113 of file EepromSecureData.h.
|
inline |
Overloaded cast operator to T *.
Definition at line 131 of file EepromSecureData.h.
|
inline |
Overloaded cast operator to const T.
Definition at line 140 of file EepromSecureData.h.
|
inline |
Save data to EEPROM memory with CRC.
Definition at line 53 of file EepromSecureData.h.
Referenced by EepromSecureData< T >::load(), and EepromSecureData< T >::~EepromSecureData().