BSB Developer Docs
Loading...
Searching...
No Matches
light_sensor_common.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <stdint.h>
8
12#define LIGHT_SENSOR_LIGHT_LEVEL_MIN (0U)
13
17#define LIGHT_SENSOR_LIGHT_LEVEL_MAX (15U)
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26typedef struct {
27 float mean;
28 float instant;
30
37typedef struct LightSensorLevel {
38 uint8_t val;
40
48
49#ifdef __cplusplus
50}
51#endif
struct LightSensorLevel LightSensorLevel
Structure containing the quantised light level value.
Structure containing the quantised light level value.
Definition light_sensor_common.h:37
uint8_t val
Quantised light level value.
Definition light_sensor_common.h:38
Structure containing ambient brightness values in lux.
Definition light_sensor_common.h:26
float instant
Last measured (instant) brightness value.
Definition light_sensor_common.h:28
float mean
Mean (sliding average) brightness value.
Definition light_sensor_common.h:27
Structure containing the light sensor state.
Definition light_sensor_common.h:44
LightSensorLuxLevel lux
Ambient brightness values in lux.
Definition light_sensor_common.h:45
LightSensorLevel level
Quantised light level.
Definition light_sensor_common.h:46