sensor: Add Co2, VOC, Voltage, Current channels
CCS811 digital gas sensor supports the following channels: 1. Co2 Channel 2. VOC Channel 3. Voltage Channel 4. Current Channel Add support for the those in API. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
parent
d2b09497eb
commit
75103ad683
|
@ -121,6 +121,17 @@ enum sensor_channel {
|
|||
SENSOR_CHAN_PM_10,
|
||||
/** Distance. From sensor to target, in meters */
|
||||
SENSOR_CHAN_DISTANCE,
|
||||
|
||||
/** CO2 level, in parts per million (ppm) **/
|
||||
SENSOR_CHAN_CO2,
|
||||
/** VOC level, in parts per billion (ppb) **/
|
||||
SENSOR_CHAN_VOC,
|
||||
|
||||
/** Voltage, in volts **/
|
||||
SENSOR_CHAN_VOLTAGE,
|
||||
/** Current, in amps **/
|
||||
SENSOR_CHAN_CURRENT,
|
||||
|
||||
/** All channels. */
|
||||
SENSOR_CHAN_ALL,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue