BSB Developer Docs
Loading...
Searching...
No Matches
light_sensor_common.h File Reference

Common Light Sensor types and defines. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  LightSensorLuxLevel
 Structure containing ambient brightness values in lux. More...
 
struct  LightSensorLevel
 Structure containing the quantised light level value. More...
 
struct  LightSensorState
 Structure containing the light sensor state. More...
 

Macros

#define LIGHT_SENSOR_LIGHT_LEVEL_MIN   (0U)
 Minimum possible light level value.
 
#define LIGHT_SENSOR_LIGHT_LEVEL_MAX   (15U)
 Maximum possible light level value.
 

Typedefs

typedef struct LightSensorLevel LightSensorLevel
 Structure containing the quantised light level value.
 

Detailed Description

Common Light Sensor types and defines.

Typedef Documentation

◆ LightSensorLevel

typedef struct LightSensorLevel LightSensorLevel

Structure containing the quantised light level value.

The light level value shall be between LIGHT_SENSOR_LIGHT_LEVEL_MIN and LIGHT_SENSOR_LIGHT_LEVEL_MAX, inclusive.