sensor: Introduce red and green light sensor channels
The max30101 heart rate sensor supports three types of LED channels:
red, infrared, and green. The sensor interface previously defined only a
generic "light" channel and an infrared channel, so add more specialized
red and green channels to the interface.
Jira: ZEP-720
Change-Id: I5f457c335d84cdadde71927a6eb19def3181d32a
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
diff --git a/include/sensor.h b/include/sensor.h
index b9cbb5b..bbc1830 100644
--- a/include/sensor.h
+++ b/include/sensor.h
@@ -104,6 +104,10 @@
SENSOR_CHAN_LIGHT,
/** Illuminance in infra-red spectrum, in lux. */
SENSOR_CHAN_IR,
+ /** Illuminance in red spectrum, in lux. */
+ SENSOR_CHAN_RED,
+ /** Illuminance in green spectrum, in lux. */
+ SENSOR_CHAN_GREEN,
/** Altitude, in meters */
SENSOR_CHAN_ALTITUDE,
/** All channels. */