|
| PersistentDataEEPROM (int eepromOffset, SavedDataHeader *savedDataHeader, size_t savedDataSize, uint32_t savedDataMagic, uint16_t savedDataVersion) |
| Class for persistent data saved in emulated EEPROM. More...
|
|
virtual bool | load () |
| Load the persistent data file. You normally do not need to call this; it will be loaded automatically. More...
|
|
virtual void | save () |
| Save the persistent data file. You normally do not need to call this; it will be saved automatically. More...
|
|
| PersistentDataBase (SavedDataHeader *savedDataHeader, size_t savedDataSize, uint32_t savedDataMagic, uint16_t savedDataVersion) |
| Base class for persistent data saved in file or RAM. More...
|
|
PersistentDataBase & | withSaveDelayMs (uint32_t value) |
| Sets the wait to save delay. Default is 1000 milliseconds. More...
|
|
virtual void | setup () |
| Initialize this object for use in StorageHelperRK. More...
|
|
virtual void | flush (bool force) |
| Write the settings to disk if changed and the wait to save time has expired. More...
|
|
virtual void | saveOrDefer () |
| Either saves data or immediately, or defers until later, based on saveDelayMs. More...
|
|
template<class T > |
T | getValue (size_t offset) const |
| Templated class for getting integral values (uint32_t, float, double, etc.) More...
|
|
template<class T > |
void | setValue (size_t offset, T value) |
| Templated class for setting integral values (uint32_t, float, double, etc.) More...
|
|
bool | getValueString (size_t offset, size_t size, String &value) const |
| Get the value of a string. More...
|
|
bool | setValueString (size_t offset, size_t size, const char *value) |
| Set the value of a string. More...
|
|
uint32_t | getHash () const |
| Get the hash valid for data integrity checking.
|
|
| CustomRecursiveMutex (os_mutex_recursive_t handle) |
| Construct a CustomRecursiveMutex wrapper object from an existing recursive mutex. More...
|
|
| CustomRecursiveMutex () |
| Default constructor with no mutex - one will be created on first lock.
|
|
| ~CustomRecursiveMutex () |
| Destroys the underlying mutex object.
|
|
void | dispose () |
| Destroys the mutex object.
|
|
void | lock () const |
| Locks the mutex. Creates a new recursive mutex object if it does not exist yet. More...
|
|
bool | trylock () const |
| Attempts to lock the mutex. Creates a new recursive mutex object if it does not exist yet. More...
|
|
bool | try_lock () const |
| Attempts to lock the mutex. Creates a new recursive mutex object if it does not exist yet. More...
|
|
void | unlock () const |
| Unlocks the mutex. More...
|
|
Class for persistent data stored in emulated EEPROM.
This is only recommended for Gen 2 devices. On Gen 3 devices, EEPROM is implemented as a file in the file system anyway, so it's more efficient to just store your persistent data in its own file.