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 typedef enum
43 {
46 
49 
51 
53 
54 void bc_module_climate_init(void);
55 
59 
60 void bc_module_climate_set_event_handler(void (*event_handler)(bc_module_climate_event_t, void *), void *event_param);
61 
64 
66 
69 
71 
74 
76 
79 
81 
84 
86 
90 
92 
96 
98 
102 
104 
108 
110 
114 
116 
121 
122 bool bc_module_climate_get_temperature_celsius(float *celsius);
123 
128 
129 bool bc_module_climate_get_temperature_fahrenheit(float *fahrenheit);
130 
135 
136 bool bc_module_climate_get_temperature_kelvin(float *kelvin);
137 
142 
143 bool bc_module_climate_get_humidity_percentage(float *percentage);
144 
149 
151 
156 
157 bool bc_module_climate_get_altitude_meter(float *meter);
158 
163 
164 bool bc_module_climate_get_pressure_pascal(float *pascal);
165 
168 
170 
171 #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.
bc_module_climate_revision_t bc_module_climate_get_revision(void)
Get hardware revision.
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.
bc_module_climate_revision_t
Climate Module hardware revision.
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.
Hardware revision R2.
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 HARDWARIO 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.
Hardware revision R1.
void bc_module_climate_set_event_handler(void(*event_handler)(bc_module_climate_event_t, void *), void *event_param)
Set callback function.