zephyr/drivers/sensor/ccs811
Peter A. Bigot 21e68d4b81 drivers: sensor: ccs811: reset sensor when driver is initialized
The CCS811 has a measurement lifecycle that includes certain timing
constraints, including that calibration constants should not be applied
until the conditioning period has completed.  If a device resets but the
CCS811 remains the process of inspecting current state and initializing
the device properly can be complicated.

Simplify this by forcing a reset of the device when the driver is
initialized.  Should this cause hardship the necessary logic and
infrastructure to record time-of-last-reset across reboots and verify
measurement mode/baseline consistency can be added at that point.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-01-14 15:44:09 -06:00
..
ccs811.c drivers: sensor: ccs811: reset sensor when driver is initialized 2020-01-14 15:44:09 -06:00
ccs811.h drivers: sensor: ccs811: abstract read of status/error 2020-01-14 15:44:09 -06:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig drivers: sensor: ccs811: make measurement drive mode configurable 2020-01-14 15:44:09 -06:00