linux/drivers/iio/chemical
Richard Lai 4c73b809a9 iio: chemical: ccs811: Renamed resistance member in ccs811_reading struct
The resistance member in ccs811_reading struct is an unsigned 16-bit
integer variable used to store RAW_DATA register bytes read from CCS811.
It is kind of misleading to name this struct member as resistance.

About the RAW_DATA register bytes, the CCS811 datasheet states that:
-----
Two byte read only register which contains the latest readings from the
sense resistor.

The most significant 6 bits of the Byte 0 contain the value of the current
through the sensor (0μA to 63μA).

The lower 10 bits contain (as computed from the ADC) the readings of the
voltage across the sensor with the selected current (1023 = 1.65V)"
-----

Hence, the RAW_DATA register byte contains information about electric
current and voltage of the CCS811 sensor. Calling this struct member
'resistance' is kind of misleading, although both electric current and
voltage are needed to calculate the electrical resistance of the sensor
using Ohm's law, V = I x R, in which a new channel type of IIO_RESISTANCE
may be added to the driver in the future.

Signed-off-by: Richard Lai <richard@richardman.com>

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-02-24 11:04:28 +00:00
..
Kconfig iio: chemical: ccs811: Add triggered buffer support 2017-08-18 08:08:02 +01:00
Makefile iio: chemical: ccs811: Add support for AMS CCS811 VOC sensor 2017-07-22 21:16:37 +01:00
ams-iaq-core.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
atlas-ph-sensor.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
ccs811.c iio: chemical: ccs811: Renamed resistance member in ccs811_reading struct 2018-02-24 11:04:28 +00:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00