Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_tag_voc_lp.h
1 #ifndef _BC_TAG_VOC_LP_H
2 #define _BC_TAG_VOC_LP_H
3 
4 #include <bc_sgpc3.h>
5 
9 
11 
12 typedef enum
13 {
16 
19 
21 
23 
25 
29 
30 void bc_tag_voc_lp_init(bc_tag_voc_lp_t *self, bc_i2c_channel_t i2c_channel);
31 
36 
37 void bc_tag_voc_lp_set_event_handler(bc_tag_voc_lp_t *self, void (*event_handler)(bc_tag_voc_lp_t *, bc_tag_voc_lp_event_t, void *), void *event_param);
38 
42 
44 
49 
51 
57 
58 bool bc_tag_voc_lp_get_tvoc_ppb(bc_tag_voc_lp_t *self, uint16_t *ppb);
59 
65 
66 float bc_tag_voc_lp_set_compensation(bc_tag_voc_lp_t *self, float *t_celsius, float *rh_percentage);
67 
69 
70 #endif // _BC_TAG_VOC_LP_H
bool bc_tag_voc_lp_measure(bc_tag_voc_lp_t *self)
Start measurement manually.
Definition: bc_tag_voc_lp.c:18
uint64_t bc_tick_t
Timestamp data type.
Definition: bc_tick.h:16
bc_sgpc3_t bc_tag_voc_lp_t
BigClown VOC-LP Tag instance.
Definition: bc_tag_voc_lp.h:24
void bc_tag_voc_lp_set_update_interval(bc_tag_voc_lp_t *self, bc_tick_t interval)
Set measurement interval.
Definition: bc_tag_voc_lp.c:13
void bc_tag_voc_lp_set_event_handler(bc_tag_voc_lp_t *self, void(*event_handler)(bc_tag_voc_lp_t *, bc_tag_voc_lp_event_t, void *), void *event_param)
Set callback function.
Definition: bc_tag_voc_lp.c:8
Update event.
Definition: bc_sgpc3.h:19
void bc_tag_voc_lp_init(bc_tag_voc_lp_t *self, bc_i2c_channel_t i2c_channel)
Initialize BigClown VOC-LP Tag.
Definition: bc_tag_voc_lp.c:3
float bc_tag_voc_lp_set_compensation(bc_tag_voc_lp_t *self, float *t_celsius, float *rh_percentage)
Set sensor compensation (absolute humidity is calculated from temperature and relative humidity) ...
Definition: bc_tag_voc_lp.c:28
bc_i2c_channel_t
I2C channels.
Definition: bc_i2c.h:15
Error event.
Definition: bc_sgpc3.h:16
bc_tag_voc_lp_event_t
Callback events.
Definition: bc_tag_voc_lp.h:12
struct bc_sgpc3_t bc_sgpc3_t
SGPC3 instance.
Definition: bc_sgpc3.h:25
bool bc_tag_voc_lp_get_tvoc_ppb(bc_tag_voc_lp_t *self, uint16_t *ppb)
Get measured TVOC in ppb (parts per billion)
Definition: bc_tag_voc_lp.c:23