Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_tag_barometer.h
1 #ifndef _BC_TAG_BAROMETER_H
2 #define _BC_TAG_BAROMETER_H
3 
4 #include <bc_mpl3115a2.h>
5 
9 
11 
12 typedef enum
13 {
16 
19 
21 
23 
25 
29 
31 
36 
37 void bc_tag_barometer_set_event_handler(bc_tag_barometer_t *self, void (*event_handler)(bc_tag_barometer_t *, bc_tag_barometer_event_t, void *), void *event_param);
38 
42 
44 
49 
51 
57 
59 
65 
67 
69 
70 #endif // _BC_TAG_BAROMETER_H
uint64_t bc_tick_t
Timestamp data type.
Definition: bc_tick.h:16
bool bc_tag_barometer_get_altitude_meter(bc_tag_barometer_t *self, float *meter)
Get measured altitude in meters.
bool bc_tag_barometer_get_pressure_pascal(bc_tag_barometer_t *self, float *pascal)
Get measured pressure in Pascal.
struct bc_mpl3115a2_t bc_mpl3115a2_t
MPL3115A2 instance.
Definition: bc_mpl3115a2.h:25
bc_tag_barometer_event_t
Callback events.
void bc_tag_barometer_set_update_interval(bc_tag_barometer_t *self, bc_tick_t interval)
Set measurement interval.
void bc_tag_barometer_init(bc_tag_barometer_t *self, bc_i2c_channel_t i2c_channel)
Initialize BigClown Barometer Tag.
void bc_tag_barometer_set_event_handler(bc_tag_barometer_t *self, void(*event_handler)(bc_tag_barometer_t *, bc_tag_barometer_event_t, void *), void *event_param)
Set callback function.
bc_i2c_channel_t
I2C channels.
Definition: bc_i2c.h:15
bc_mpl3115a2_t bc_tag_barometer_t
BigClown Barometer Tag instance.
bool bc_tag_barometer_measure(bc_tag_barometer_t *self)
Start measurement manually.