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

System initialization header. More...

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

Go to the source code of this file.

Enumerations

enum  init_step_t {
  INIT_STEP_DEFAULT_CONFIG , INIT_STEP_NVS , INIT_STEP_CONFIG , INIT_STEP_TELE_PLIN ,
  INIT_STEP_TELE_SERV , INIT_STEP_LOG_SERV , INIT_STEP_WIFI , INIT_STEP_EVENT_BUS ,
  INIT_STEP_METRICS , INIT_STEP_SLAB , INIT_STEP_COMPLETE
}
 Initialization step enum. More...
 

Functions

esp_err_t system_init (void)
 Initialize the system.
 
void system_deinit (void)
 Deinitialize the system.
 

Detailed Description

System initialization header.

Author
Abanoub Salah

Contains system initialization definitions for the project

Enumeration Type Documentation

◆ init_step_t

Initialization step enum.

Enumerator
INIT_STEP_NVS 

Default configuration step Nvs step

INIT_STEP_CONFIG 

Configuration step

INIT_STEP_TELE_PLIN 

Telemetry pipeline step

INIT_STEP_TELE_SERV 

Telemetry service step

INIT_STEP_LOG_SERV 

Logger service step

INIT_STEP_WIFI 

WiFi step

INIT_STEP_EVENT_BUS 

Event bus step

INIT_STEP_METRICS 

Metrics step

INIT_STEP_SLAB 

Slab pool step

INIT_STEP_COMPLETE 

Initialization complete step

Function Documentation

◆ system_deinit()

void system_deinit ( void  )

Deinitialize the system.

Deinitialize the system by calling all deinit functions for all previously initialized or not components of the system

Note
Assumes called deinit functions handles none-initialized state of the component
Here is the call graph for this function:
Here is the caller graph for this function:

◆ system_init()

esp_err_t system_init ( void  )

Initialize the system.

Initialize the system by following a preset order as defined inside the function state machine. If not succeeded calls deinit and returns error code

Returns
esp_err_t Initialize result
Return values
ESP_OKon Initialize success
anyAny error from down layers propagates upward
Here is the call graph for this function:
Here is the caller graph for this function: