twr_i2c_channel_t
I2C channels.
struct twr_sgp30_t twr_sgp30_t
SGP30 instance.
@ TWR_SGP30_EVENT_ERROR
Error event.
@ TWR_SGP30_EVENT_UPDATE
Update event.
void twr_tag_voc_set_update_interval(twr_tag_voc_t *self, twr_tick_t interval)
Set measurement interval.
twr_sgp30_t twr_tag_voc_t
HARDWARIO VOC Module instance.
twr_tag_voc_event_t
Callback events.
bool twr_tag_voc_measure(twr_tag_voc_t *self)
Start measurement manually.
void twr_tag_voc_set_event_handler(twr_tag_voc_t *self, void(*event_handler)(twr_tag_voc_t *, twr_tag_voc_event_t, void *), void *event_param)
Set callback function.
bool twr_tag_voc_get_tvoc_ppb(twr_tag_voc_t *self, uint16_t *ppb)
Get measured TVOC in ppb (parts per billion)
bool twr_tag_voc_get_co2eq_ppm(twr_tag_voc_t *self, uint16_t *ppm)
Get measured CO2eq in ppm (parts per million)
float twr_tag_voc_set_compensation(twr_tag_voc_t *self, float *t_celsius, float *rh_percentage)
Set sensor compensation (absolute humidity is calculated from temperature and relative humidity)
void twr_tag_voc_init(twr_tag_voc_t *self, twr_i2c_channel_t i2c_channel)
Initialize HARDWARIO VOC Module.
@ TWR_TAG_VOC_EVENT_ERROR
Error event.
@ TWR_TAG_VOC_EVENT_UPDATE
Update event.
uint64_t twr_tick_t
Timestamp data type.