|
Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
|
Public header for TCS34725 color sensor. More...
#include <zephyr/drivers/sensor.h>Go to the source code of this file.
Enumerations | |
| enum | tcs34725_channel { SENSOR_CHAN_TCS34725_LUX = SENSOR_CHAN_PRIV_START , SENSOR_CHAN_TCS34725_COLOR_TEMP } |
| Driver-specific sensor channel identifiers for the TCS34725. More... | |
Public header for TCS34725 color sensor.
| enum tcs34725_channel |
Driver-specific sensor channel identifiers for the TCS34725.
These channels expose derived values computed from the raw clear, red, green, and blue ADC readings using the ams DN40 algorithm:
Applications should always check val->val2 before using val->val1 for these two channels. The raw SENSOR_CHAN_RED/GREEN/BLUE/LIGHT channels are always valid and do not use val->val2 for anything (it is always 0 for those channels).
Use these identifiers with sensor_channel_get() after a successful sensor_sample_fetch() call.
| Enumerator | |
|---|---|
| SENSOR_CHAN_TCS34725_LUX | Calculated illuminance (lux), from the DN40 algorithm. |
| SENSOR_CHAN_TCS34725_COLOR_TEMP | Calculated correlated color temperature (CT), in Kelvin. |