Namespaces | |
namespace | anonymous_namespace{settings.cpp} |
Classes | |
class | Accessories |
Accessories stored in NVS. More... | |
class | Base |
NVS base. More... | |
class | Locos |
Locos stored in NVS. More... | |
class | Settings |
Settings stored in NVS. More... | |
class | Turnouts |
Turnouts stored in NVS. More... | |
Functions | |
esp_err_t | init () |
Initialize NVS. | |
std::string | address2key (dcc::Address::value_type addr) |
Convert address to key. | |
dcc::Address::value_type | key2address (std::string_view key) |
Convert key to address. | |
std::string mem::nvs::address2key | ( | dcc::Address::value_type | addr | ) |
addr | Address |
esp_err_t mem::nvs::init | ( | ) |
init() is responsible for initializing the NVS memory during the boot phase. If the NVS partition is truncated for any reason, the entire memory is erased and then reinitialized. The default settings will be restored in this case.
dcc::Address::value_type mem::nvs::key2address | ( | std::string_view | key | ) |
key | Key |