Modbus Vault v1.0
Loading...
Searching...
No Matches
nvs_manager_internal.h File Reference

NVS abstraction layer internal. More...

#include "nvs_manager.h"
Include dependency graph for nvs_manager_internal.h:
This graph shows which files directly or indirectly include this file:

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}
 

Detailed Description

NVS abstraction layer internal.

Author
Abanoub Salah

Macro Definition Documentation

◆ NVS_MANAGER_CONFIG_KEY

#define NVS_MANAGER_CONFIG_KEY   ("app_cfg")

Stored configuration key

◆ NVS_MANAGER_CONFIG_LOCK_TIMEOUT_MS

#define NVS_MANAGER_CONFIG_LOCK_TIMEOUT_MS   (500U)

Configuration lock wait timeout

◆ NVS_MANAGER_CONFIG_NAMESPACE

#define NVS_MANAGER_CONFIG_NAMESPACE   ("storage")

Storage namespace

◆ NVS_MANAGER_CONFIG_VERSION

#define NVS_MANAGER_CONFIG_VERSION   (1U)

NVS Manager version

◆ NVS_MANAGER_WRITE_CYCLE_PERIOD_US

#define NVS_MANAGER_WRITE_CYCLE_PERIOD_US   (30000000UL)

Timer trigger period in micro seconds

Function Documentation

◆ get_dirty_flag_helper()

static bool get_dirty_flag_helper ( void  )
inlinestatic

Get configuration dirty flag.

Returns
bool true on dirty configuration false otherwise
Here is the caller graph for this function:

Variable Documentation

◆ nvs_instance

nvs_manager_t nvs_instance = {0}
static

The Only instance of the structure