![]() |
BSB Developer Docs
|
Data structure containing various light sensor values. More...
#include "light_sensor_common.h"Go to the source code of this file.
Typedefs | |
| typedef struct LightSensorData | LightSensorData |
| Light sensor data structure. | |
Functions | |
| LightSensorData * | light_sensor_data_alloc (void) |
| Allocate a new LightSensorData instance. | |
| void | light_sensor_data_add_measurement (LightSensorData *instance, float lux) |
| Add a new light measurement. | |
| void | light_sensor_data_get_state (const LightSensorData *instance, LightSensorState *state) |
| Get the current light sensor state. | |
Data structure containing various light sensor values.
| void light_sensor_data_add_measurement | ( | LightSensorData * | instance, |
| float | lux ) |
Add a new light measurement.
| [in,out] | instance | Pointer to the LightSensorData instance. |
| [in] | lux | Light level in lux. |
| LightSensorData * light_sensor_data_alloc | ( | void | ) |
Allocate a new LightSensorData instance.
| void light_sensor_data_get_state | ( | const LightSensorData * | instance, |
| LightSensorState * | state ) |
Get the current light sensor state.
| [in] | instance | Pointer to the LightSensorData instance. |
| [out] | state | Pointer to the state object to be copied into (must be allocated). |