|
Modbus Vault v1.0
|
NVS abstraction layer internal. More...
#include "nvs_manager.h"Go to the source code of this file.
Data Structures | |
| struct | app_config_t |
| NVS manager application config structure. More... | |
| struct | key_map_t |
| NVS manager keys map structure. More... | |
| struct | nvs_manager_t |
| NVS manager type structure. More... | |
Macros | |
| #define | NVS_MANAGER_CONFIG_VERSION (1U) |
| #define | NVS_MANAGER_CONFIG_NAMESPACE ("storage") |
| #define | NVS_MANAGER_CONFIG_KEY ("app_cfg") |
| #define | NVS_MANAGER_WRITE_CYCLE_PERIOD_US (30000000UL) |
| #define | NVS_MANAGER_CONFIG_LOCK_TIMEOUT_MS (500U) |
Functions | |
| static void | set_dirty_flag_helper (void) |
| Set configuration dirty flag. | |
| static bool | get_dirty_flag_helper (void) |
| Get configuration dirty flag. | |
| static void | clear_dirty_flag_helper (void) |
| Clear configuration dirty flag. | |
Variables | |
| static nvs_manager_t | nvs_instance = {0} |
NVS abstraction layer internal.
| #define NVS_MANAGER_CONFIG_KEY ("app_cfg") |
Stored configuration key
| #define NVS_MANAGER_CONFIG_LOCK_TIMEOUT_MS (500U) |
Configuration lock wait timeout
| #define NVS_MANAGER_CONFIG_NAMESPACE ("storage") |
Storage namespace
| #define NVS_MANAGER_CONFIG_VERSION (1U) |
NVS Manager version
| #define NVS_MANAGER_WRITE_CYCLE_PERIOD_US (30000000UL) |
Timer trigger period in micro seconds
|
inlinestatic |
Get configuration dirty flag.
|
static |
The Only instance of the structure