Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tsl2540.h File Reference

Extended public API for AMS's TSL2540 ambient light sensor. More...

Go to the source code of this file.

Enumerations

enum  sensor_attribute_tsl2540 {
  SENSOR_ATTR_GAIN = SENSOR_ATTR_PRIV_START + 1 , SENSOR_ATTR_INTEGRATION_TIME , SENSOR_ATTR_INT_APERS , SENSOR_ATTR_TSL2540_SHUTDOWN_MODE ,
  SENSOR_ATTR_TSL2540_CONTINUOUS_MODE , SENSOR_ATTR_TSL2540_CONTINUOUS_NO_WAIT_MODE
}
 
enum  sensor_gain_tsl2540 {
  TSL2540_SENSOR_GAIN_1_2 , TSL2540_SENSOR_GAIN_1 , TSL2540_SENSOR_GAIN_4 , TSL2540_SENSOR_GAIN_16 ,
  TSL2540_SENSOR_GAIN_64 , TSL2540_SENSOR_GAIN_128
}
 

Detailed Description

Extended public API for AMS's TSL2540 ambient light sensor.

This exposes attributes for the TSL2540 which can be used for setting the on-chip gain and integration time parameters.

Enumeration Type Documentation

◆ sensor_attribute_tsl2540

Enumerator
SENSOR_ATTR_GAIN 
SENSOR_ATTR_INTEGRATION_TIME 
SENSOR_ATTR_INT_APERS 
SENSOR_ATTR_TSL2540_SHUTDOWN_MODE 
SENSOR_ATTR_TSL2540_CONTINUOUS_MODE 
SENSOR_ATTR_TSL2540_CONTINUOUS_NO_WAIT_MODE 

◆ sensor_gain_tsl2540

Enumerator
TSL2540_SENSOR_GAIN_1_2 
TSL2540_SENSOR_GAIN_1 
TSL2540_SENSOR_GAIN_4 
TSL2540_SENSOR_GAIN_16 
TSL2540_SENSOR_GAIN_64 
TSL2540_SENSOR_GAIN_128