1 #include <twr_tag_voc.h>
twr_i2c_channel_t
I2C channels.
twr_sgp30_event_t
Callback events.
bool twr_sgp30_measure(twr_sgp30_t *self)
Start measurement manually.
bool twr_sgp30_get_tvoc_ppb(twr_sgp30_t *self, uint16_t *ppb)
Get measured TVOC in ppb (parts per billion)
void twr_sgp30_set_update_interval(twr_sgp30_t *self, twr_tick_t interval)
Set measurement interval.
struct twr_sgp30_t twr_sgp30_t
SGP30 instance.
void twr_sgp30_init(twr_sgp30_t *self, twr_i2c_channel_t i2c_channel, uint8_t i2c_address)
Initialize SGP30.
float twr_sgp30_set_compensation(twr_sgp30_t *self, float *t_celsius, float *rh_percentage)
Set sensor compensation (absolute humidity is calculated from temperature and relative humidity)
void twr_sgp30_set_event_handler(twr_sgp30_t *self, void(*event_handler)(twr_sgp30_t *, twr_sgp30_event_t, void *), void *event_param)
Set callback function.
bool twr_sgp30_get_co2eq_ppm(twr_sgp30_t *self, uint16_t *ppm)
Get measured CO2eq in ppm (parts per million)
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.
uint64_t twr_tick_t
Timestamp data type.