Environment module flash configuration.
More...
Environment module flash configuration.
◆ m_env_flash_baseline_load()
uint32_t m_env_flash_baseline_load |
( |
m_gas_baseline_t ** |
p_baseline | ) |
|
Function for loading the gas sensor baseline.
- Parameters
-
[out] | p_baseline | Pointer to loaded baseline. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
Other | codes from the underlying drivers. |
◆ m_env_flash_baseline_store()
uint32_t m_env_flash_baseline_store |
( |
const m_gas_baseline_t * |
p_baseline | ) |
|
Function for storing the gas sensor baseline.
- Parameters
-
[in] | p_baseline | Pointer to baseline to be stored. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
NRF_ERROR_NULL | If a NULL pointer was supplied. |
Other | codes from the underlying drivers. |
◆ m_env_flash_config_load()
uint32_t m_env_flash_config_load |
( |
ble_tes_config_t ** |
p_config | ) |
|
Function for loading the configuration.
- Parameters
-
[out] | p_config | Pointer to loaded configuration. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
Other | codes from the underlying drivers. |
◆ m_env_flash_config_store()
uint32_t m_env_flash_config_store |
( |
const ble_tes_config_t * |
p_config | ) |
|
Function for storing the configuration.
- Parameters
-
[in] | p_config | Pointer to configuration to be stored. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
NRF_ERROR_NULL | If a NULL pointer was supplied. |
Other | codes from the underlying drivers. |
◆ m_env_flash_init()
uint32_t m_env_flash_init |
( |
const ble_tes_config_t * |
p_default_config, |
|
|
ble_tes_config_t ** |
p_config, |
|
|
const m_gas_baseline_t * |
p_default_baseline, |
|
|
m_gas_baseline_t ** |
p_baseline |
|
) |
| |
Function for initializing weather station flash handling.
- Parameters
-
[in] | p_default_config | Pointer to default configuration. |
[out] | p_config | Pointer to current configuration. |
[in] | p_default_baseline | Pointer to default gas sensor baseline. |
[out] | p_baseline | Pointer to current gas sensor baseline. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
NRF_ERROR_NULL | If a NULL pointer was supplied. |
Other | codes from the underlying drivers. |