Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_module_climate.h
1 #ifndef _BC_MODULE_CLIMATE_H
2 #define _BC_MODULE_CLIMATE_H
3 
4 #include <bc_tick.h>
5 
9 
11 
12 typedef enum
13 {
16 
19 
22 
25 
28 
31 
34 
37 
39 
41 
42 void bc_module_climate_init(void);
43 
47 
48 void bc_module_climate_set_event_handler(void (*event_handler)(bc_module_climate_event_t, void *), void *event_param);
49 
52 
54 
57 
59 
62 
64 
67 
69 
72 
74 
78 
80 
84 
86 
90 
92 
96 
98 
102 
104 
109 
110 bool bc_module_climate_get_temperature_celsius(float *celsius);
111 
116 
117 bool bc_module_climate_get_temperature_fahrenheit(float *fahrenheit);
118 
123 
124 bool bc_module_climate_get_temperature_kelvin(float *kelvin);
125 
130 
131 bool bc_module_climate_get_humidity_percentage(float *percentage);
132 
137 
139 
144 
145 bool bc_module_climate_get_altitude_meter(float *meter);
146 
151 
152 bool bc_module_climate_get_pressure_pascal(float *pascal);
153 
155 
156 #endif // _BC_MODULE_CLIMATE_H
bool bc_module_climate_measure_all_sensors(void)
Start measurement of all sensors manually.
bool bc_module_climate_get_altitude_meter(float *meter)
Get measured altitude in meters.
uint64_t bc_tick_t
Timestamp data type.
Definition: bc_tick.h:16
bool bc_module_climate_measure_thermometer(void)
Start thermometer measurement manually.
bool bc_module_climate_get_temperature_celsius(float *celsius)
Get measured temperature in degrees of Celsius.
void bc_module_climate_set_update_interval_thermometer(bc_tick_t interval)
Set measurement interval for thermometer.
bool bc_module_climate_get_pressure_pascal(float *pascal)
Get measured pressure in Pascal.
void bc_module_climate_set_update_interval_barometer(bc_tick_t interval)
Set measurement interval for barometer.
void bc_module_climate_set_update_interval_all_sensors(bc_tick_t interval)
Set measurement interval for all sensors.
void bc_module_climate_set_update_interval_hygrometer(bc_tick_t interval)
Set measurement interval for hygrometer.
bc_module_climate_event_t
Callback events.
bool bc_module_climate_measure_lux_meter(void)
Start lux meter measurement manually.
void bc_module_climate_set_update_interval_lux_meter(bc_tick_t interval)
Set measurement interval for lux meter.
bool bc_module_climate_get_humidity_percentage(float *percentage)
Get measured humidity as percentage.
bool bc_module_climate_get_temperature_fahrenheit(float *fahrenheit)
Get measured temperature in degrees of Fahrenheit.
void bc_module_climate_init(void)
Initialize BigClown Climate Module.
bool bc_module_climate_get_temperature_kelvin(float *kelvin)
Get measured temperature in kelvin.
bool bc_module_climate_get_illuminance_lux(float *lux)
Get measured illuminance in lux.
bool bc_module_climate_measure_hygrometer(void)
Start hygrometer measurement manually.
bool bc_module_climate_measure_barometer(void)
Start barometer measurement manually.
void bc_module_climate_set_event_handler(void(*event_handler)(bc_module_climate_event_t, void *), void *event_param)
Set callback function.