|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Extended public API for the ams OSRAM TSL2522 ambient light sensor. More...
#include <zephyr/drivers/sensor.h>Go to the source code of this file.
Enumerations | |
| enum | sensor_attribute_tsl2522 { SENSOR_ATTR_MEASUREMENT_TIME_STEPS = SENSOR_ATTR_PRIV_START + 1 , SENSOR_ATTR_NUMBER_OF_SAMPLES } |
| Custom sensor attribute for TSL2522. More... | |
| enum | sensor_gain_tsl2522 { TSL2522_GAIN_MOD_HALF = 0U , TSL2522_GAIN_MOD_1X , TSL2522_GAIN_MOD_2X , TSL2522_GAIN_MOD_4X , TSL2522_GAIN_MOD_8X , TSL2522_GAIN_MOD_16X , TSL2522_GAIN_MOD_32X , TSL2522_GAIN_MOD_64X , TSL2522_GAIN_MOD_128X , TSL2522_GAIN_MOD_256X , TSL2522_GAIN_MOD_512X , TSL2522_GAIN_MOD_1024X , TSL2522_GAIN_MOD_2048X , TSL2522_GAIN_MOD_4096X } |
| Modulator gain settings used in both channels. More... | |
Extended public API for the ams OSRAM TSL2522 ambient light sensor.
val2 is unused.val1 is an enumerator of sensor_gain_tsl2522, not the numeric gain factor. val1 is the number of 1.388889 us steps (1 ... 2048). val1 is the number of samples per conversion (1 ... 2048).