Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_cp201t.h
1 #ifndef _BC_CP201T_H
2 #define _BC_CP201T_H
3 
4 #include <bc_module_sensor.h>
5 #include <bc_scheduler.h>
6 
7 typedef enum
8 {
10  BC_CP201T_EVENT_ERROR = 0,
11 
13  BC_CP201T_EVENT_UPDATE = 1
14 
15 } bc_cp201t_event_t;
16 
21 
22 bool bc_cp201t_init(bc_module_sensor_channel_t channel);
23 
28 
29 void bc_cp201t_set_event_handler(bc_module_sensor_channel_t channel, void (*event_handler)(bc_module_sensor_channel_t, bc_cp201t_event_t, void *), void *event_param);
30 
34 
35 void bc_cp201t_set_update_interval(bc_module_sensor_channel_t channel, bc_tick_t interval);
36 
42 
43 bool bc_cp201t_get_temperature_celsius(bc_module_sensor_channel_t channel, float *celsius);
44 
45 #endif // _BC_CP201T_H
uint64_t bc_tick_t
Timestamp data type.
Definition: bc_tick.h:16
bc_module_sensor_channel_t
Sensor Module channels.