Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_tag_temperature.h
1 #ifndef _BC_TAG_TEMPERATURE_H
2 #define _BC_TAG_TEMPERATURE_H
3 
4 #include <bc_tmp112.h>
5 
9 
11 
12 typedef enum
13 {
16 
19 
21 
23 
24 typedef enum
25 {
28 
31 
33 
35 
37 
42 
44 
49 
50 void bc_tag_temperature_set_event_handler(bc_tag_temperature_t *self, void (*event_handler)(bc_tag_temperature_t *, bc_tag_temperature_event_t, void *), void *event_param);
51 
55 
57 
62 
64 
70 
72 
78 
80 
86 
88 
94 
96 
98 
99 #endif // _BC_TAG_TEMPERATURE_H
bool bc_tag_temperature_get_temperature_celsius(bc_tag_temperature_t *self, float *celsius)
Get measured temperature in degrees of Celsius.
uint64_t bc_tick_t
Timestamp data type.
Definition: bc_tick.h:16
void bc_tag_temperature_set_update_interval(bc_tag_temperature_t *self, bc_tick_t interval)
Set measurement interval.
bool bc_tag_temperature_get_temperature_kelvin(bc_tag_temperature_t *self, float *kelvin)
Get measured temperature in kelvin.
Update event.
Definition: bc_tmp112.h:19
bool bc_tag_temperature_measure(bc_tag_temperature_t *self)
Start measurement manually.
bool bc_tag_temperature_get_temperature_raw(bc_tag_temperature_t *self, int16_t *raw)
Get measured temperature as raw value.
bc_tag_temperature_i2c_address_t
I2C address.
struct bc_tmp112_t bc_tmp112_t
TMP112 instance.
Definition: bc_tmp112.h:25
Error event.
Definition: bc_tmp112.h:16
void bc_tag_temperature_init(bc_tag_temperature_t *self, bc_i2c_channel_t i2c_channel, bc_tag_temperature_i2c_address_t i2c_address)
Initialize BigClown Temperature Tag.
bc_i2c_channel_t
I2C channels.
Definition: bc_i2c.h:15
void bc_tag_temperature_set_event_handler(bc_tag_temperature_t *self, void(*event_handler)(bc_tag_temperature_t *, bc_tag_temperature_event_t, void *), void *event_param)
Set callback function.
bc_tmp112_t bc_tag_temperature_t
BigClown Temperature Tag instance.
bool bc_tag_temperature_get_temperature_fahrenheit(bc_tag_temperature_t *self, float *fahrenheit)
Get measured temperature in degrees of Fahrenheit.
bc_tag_temperature_event_t
Callback events.