Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
EEPROMConfig Class Reference

Load/save an (internal) ConfigStore in EEPROM. More...

#include <EEPROMConfig.h>

Collaboration diagram for EEPROMConfig:
[legend]

Public Member Functions

 EEPROMConfig ()
 Constructor.
 
bool load ()
 Load config values from EEPROM into configStore.
 
uint16_t save () const
 Saves current content of configStore into EEPROM.
 
void reset ()
 Reset the config store: overwrite the configStore with the default values.
 

Public Attributes

ConfigStore configStore
 

Private Attributes

uint8_t address = config::EEPROMAddress
 

Detailed Description

Load/save an (internal) ConfigStore in EEPROM.

Definition at line 60 of file EEPROMConfig.h.

Constructor & Destructor Documentation

◆ EEPROMConfig()

EEPROMConfig::EEPROMConfig ( )

Constructor.

Definition at line 25 of file EEPROMConfig.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ load()

bool EEPROMConfig::load ( )

Load config values from EEPROM into configStore.

Returns
1 if valid data was read, 0 if not

Definition at line 5 of file EEPROMConfig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void EEPROMConfig::reset ( )

Reset the config store: overwrite the configStore with the default values.

Definition at line 29 of file EEPROMConfig.cpp.

Here is the caller graph for this function:

◆ save()

uint16_t EEPROMConfig::save ( ) const

Saves current content of configStore into EEPROM.

Returns
number of bytes written

Definition at line 21 of file EEPROMConfig.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ address

uint8_t EEPROMConfig::address = config::EEPROMAddress
private

Definition at line 62 of file EEPROMConfig.h.

◆ configStore

ConfigStore EEPROMConfig::configStore

Definition at line 65 of file EEPROMConfig.h.


The documentation for this class was generated from the following files: