Nordic Thingy:52
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Environment flash configuration

Environment module flash configuration. More...

Functions

uint32_t m_env_flash_baseline_load (m_gas_baseline_t **p_baseline)
 Function for loading the gas sensor baseline. More...
 
uint32_t m_env_flash_baseline_store (m_gas_baseline_t *p_baseline)
 Function for storing the gas sensor baseline. More...
 
uint32_t m_env_flash_config_load (ble_tes_config_t **p_config)
 Function for loading the configuration. More...
 
uint32_t m_env_flash_config_store (ble_tes_config_t *p_config)
 Function for storing the configuration. More...
 
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. More...
 
typedef PACKED (struct{uint16_t mode_250ms;uint16_t mode_1s;uint16_t mode_10s;uint16_t mode_60s;}) m_gas_baseline_t
 Gas sensor baseline values for different modes of operation.
 

Detailed Description

Environment module flash configuration.

Function Documentation

uint32_t m_env_flash_baseline_load ( m_gas_baseline_t **  p_baseline)

Function for loading the gas sensor baseline.

Parameters
[out]p_baselinePointer to loaded baseline.
Return values
NRF_SUCCESSIf initialization was successful.
Othercodes from the underlying drivers.
uint32_t m_env_flash_baseline_store ( m_gas_baseline_t *  p_baseline)

Function for storing the gas sensor baseline.

Parameters
[in]p_baselinePointer to baseline to be stored.
Return values
NRF_SUCCESSIf initialization was successful.
NRF_ERROR_NULLIf a NULL pointer was supplied.
Othercodes from the underlying drivers.
uint32_t m_env_flash_config_load ( ble_tes_config_t **  p_config)

Function for loading the configuration.

Parameters
[out]p_configPointer to loaded configuration.
Return values
NRF_SUCCESSIf initialization was successful.
Othercodes from the underlying drivers.
uint32_t m_env_flash_config_store ( ble_tes_config_t *  p_config)

Function for storing the configuration.

Parameters
[in]p_configPointer to configuration to be stored.
Return values
NRF_SUCCESSIf initialization was successful.
NRF_ERROR_NULLIf a NULL pointer was supplied.
Othercodes from the underlying drivers.
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_configPointer to default configuration.
[out]p_configPointer to current configuration.
[in]p_default_baselinePointer to default gas sensor baseline.
[out]p_baselinePointer to current gas sensor baseline.
Return values
NRF_SUCCESSIf initialization was successful.
NRF_ERROR_NULLIf a NULL pointer was supplied.
Othercodes from the underlying drivers.