Air quality sensor#
Air quality sensor driver abstraction designed for Thunderboard.
Functions#
sl_status_t
sl_sensor_gas_init(void)
void
sl_sensor_gas_deinit(void)
sl_status_t
sl_sensor_gas_get(uint16_t *eco2, uint16_t *tvoc)
Function Documentation#
sl_sensor_gas_init#
sl_status_t sl_sensor_gas_init (void )
Parameters
N/A |
Initialize air quality sensor.
Returns
Status of the operation.
Definition at line
47
of file common/sensor_gas/sl_sensor_gas.h
sl_sensor_gas_deinit#
void sl_sensor_gas_deinit (void )
Parameters
N/A |
Deinitialize air quality sensor.
Definition at line
52
of file common/sensor_gas/sl_sensor_gas.h
sl_sensor_gas_get#
sl_status_t sl_sensor_gas_get (uint16_t * eco2, uint16_t * tvoc)
Parameters
[out] | eco2 | Equivalent CO2 level (in ppm). |
[out] | tvoc | Total Volatile Organic Compounds level (in ppb). |
Getter for air quality sensor measurement data.
Definition at line
64
of file common/sensor_gas/sl_sensor_gas.h