sgp41 algorithm modules
More...
|
| void | sgp41_algorithm_reset (sgp41_gas_index_algorithm_t *params) |
| | algorithm reset
|
| void | sgp41_algorithm_init_with_sampling_interval (sgp41_gas_index_algorithm_t *params, int32_t algorithm_type, float sampling_interval) |
| | algorithm init with sampling interval
|
| void | sgp41_algorithm_init (sgp41_gas_index_algorithm_t *params, int32_t algorithm_type) |
| | algorithm init
|
| void | sgp41_algorithm_get_sampling_interval (const sgp41_gas_index_algorithm_t *params, float *sampling_interval) |
| | algorithm get sampling interval
|
| void | sgp41_algorithm_set_states (sgp41_gas_index_algorithm_t *params, float state0, float state1) |
| | algorithm set states
|
| void | sgp41_algorithm_get_states (const sgp41_gas_index_algorithm_t *params, float *state0, float *state1) |
| | algorithm get states
|
| void | sgp41_algorithm_set_tuning_parameters (sgp41_gas_index_algorithm_t *params, int32_t index_offset, int32_t learning_time_offset_hours, int32_t learning_time_gain_hours, int32_t gating_max_duration_minutes, int32_t std_initial, int32_t gain_factor) |
| | algorithm set tuning parameters
|
| void | sgp41_algorithm_get_tuning_parameters (const sgp41_gas_index_algorithm_t *params, int32_t *index_offset, int32_t *learning_time_offset_hours, int32_t *learning_time_gain_hours, int32_t *gating_max_duration_minutes, int32_t *std_initial, int32_t *gain_factor) |
| | algorithm get tuning parameters
|
| void | sgp41_algorithm_process (sgp41_gas_index_algorithm_t *params, int32_t sraw, int32_t *gas_index) |
| | algorithm process
|
sgp41 algorithm modules
◆ SGP41_ALGORITHM_TYPE_NOX
| #define SGP41_ALGORITHM_TYPE_NOX (1) |
◆ SGP41_ALGORITHM_TYPE_VOC
| #define SGP41_ALGORITHM_TYPE_VOC (0) |
◆ sgp41_gas_index_algorithm_t
sgp41 gas index algorithm structure definition
◆ sgp41_algorithm_get_sampling_interval()
algorithm get sampling interval
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [out] | *sampling_interval | pointer to a sampling interval buffer |
Definition at line 600 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_get_states()
algorithm get states
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [out] | *state0 | pointer to a state0 buffer |
| [out] | *state1 | pointer to a state1 buffer |
Definition at line 611 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_get_tuning_parameters()
| void sgp41_algorithm_get_tuning_parameters |
( |
const sgp41_gas_index_algorithm_t * | params, |
|
|
int32_t * | index_offset, |
|
|
int32_t * | learning_time_offset_hours, |
|
|
int32_t * | learning_time_gain_hours, |
|
|
int32_t * | gating_max_duration_minutes, |
|
|
int32_t * | std_initial, |
|
|
int32_t * | gain_factor ) |
algorithm get tuning parameters
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [out] | *index_offset | pointer to a index offset buffer |
| [out] | *learning_time_offset_hours | pointer to a learning time offset hours buffer |
| [out] | *learning_time_gain_hours | pointer to a learning time gain hours buffer |
| [out] | *gating_max_duration_minutes | pointer to a gating max duration minutes buffer |
| [out] | *std_initial | pointer to a std initial buffer |
| [out] | *gain_factor | pointer to a gain factor buffer |
Definition at line 666 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_init()
algorithm init
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [in] | algorithm_type | algorithm type |
Definition at line 590 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_init_with_sampling_interval()
| void sgp41_algorithm_init_with_sampling_interval |
( |
sgp41_gas_index_algorithm_t * | params, |
|
|
int32_t | algorithm_type, |
|
|
float | sampling_interval ) |
algorithm init with sampling interval
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [in] | algorithm_type | algorithm type |
| [in] | sampling_interval | sampling interval |
Definition at line 556 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_process()
algorithm process
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [in] | sraw | source raw |
| [out] | *gas_index | pointer to a gas index buffer |
Definition at line 686 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_reset()
algorithm reset
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
Definition at line 542 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_set_states()
algorithm set states
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [in] | state0 | set state0 |
| [in] | state1 | set state1 |
Definition at line 623 of file driver_sgp41_algorithm.c.
◆ sgp41_algorithm_set_tuning_parameters()
| void sgp41_algorithm_set_tuning_parameters |
( |
sgp41_gas_index_algorithm_t * | params, |
|
|
int32_t | index_offset, |
|
|
int32_t | learning_time_offset_hours, |
|
|
int32_t | learning_time_gain_hours, |
|
|
int32_t | gating_max_duration_minutes, |
|
|
int32_t | std_initial, |
|
|
int32_t | gain_factor ) |
algorithm set tuning parameters
- Parameters
-
| [in] | *params | pointer to an sgp41 gas index algorithm handle structure |
| [in] | index_offset | index offset |
| [in] | learning_time_offset_hours | learning time offset hours |
| [in] | learning_time_gain_hours | learning time gain hours |
| [in] | gating_max_duration_minutes | gating max duration minutes |
| [in] | std_initial | std initial |
| [in] | gain_factor | gain factor |
Definition at line 642 of file driver_sgp41_algorithm.c.