BSB Developer Docs
Loading...
Searching...
No Matches
light_sensor_data.h
Go to the documentation of this file.
1
5#pragma once
6
8
12#define LIGHT_SENSOR_DATA_LUX_MIN (1.0f)
13
17#define LIGHT_SENSOR_DATA_LUX_MAX (10000.0f)
18
22#define LIGHT_SENSOR_DATA_WINDOW_SIZE (5)
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32
39
46void light_sensor_data_add_measurement(LightSensorData* instance, float lux);
47
54
55#ifdef __cplusplus
56}
57#endif
Common Light Sensor types and defines.
void light_sensor_data_get_state(const LightSensorData *instance, LightSensorState *state)
Get the current light sensor state.
Definition light_sensor_data.c:78
void light_sensor_data_add_measurement(LightSensorData *instance, float lux)
Add a new light measurement.
Definition light_sensor_data.c:59
LightSensorData * light_sensor_data_alloc(void)
Allocate a new LightSensorData instance.
Definition light_sensor_data.c:39
Definition light_sensor_data.c:12
Structure containing the light sensor state.
Definition light_sensor_common.h:44