1 #ifndef _TWR_MODULE_CO2_H
2 #define _TWR_MODULE_CO2_H
twr_lp8_calibration_t
Calibration.
@ TWR_LP8_EVENT_UPDATE
Update event.
@ TWR_LP8_EVENT_ERROR
Error event.
void twr_module_co2_init(void)
Initialize HARDWARIO CO2 Module.
bool twr_module_co2_get_concentration_ppm(float *ppm)
Get CO2 concentration in ppm (parts per million)
void twr_module_co2_set_update_interval(twr_tick_t interval)
Set measurement interval.
twr_module_co2_event_t
Callback events.
bool twr_module_co2_measure(void)
Start measurement manually.
void twr_module_co2_calibration(twr_lp8_calibration_t calibration)
Request sensor calibration.
bool twr_module_co2_get_error(twr_lp8_error_t *error)
Get last error code.
void twr_module_co2_set_event_handler(void(*event_handler)(twr_module_co2_event_t, void *), void *event_param)
Set callback function.
@ TWR_MODULE_CO2_EVENT_ERROR
Error event.
@ TWR_MODULE_CO2_EVENT_UPDATE
Update event.
uint64_t twr_tick_t
Timestamp data type.