]> git.baikalelectronics.ru Git - kernel.git/commit
iio:pressure:ms5611: oversampling rate support
authorGregor Boirie <gregor.boirie@parrot.com>
Tue, 1 Mar 2016 10:31:38 +0000 (11:31 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Mar 2016 14:45:14 +0000 (14:45 +0000)
commita831c1154460e9b58195726f01edecabb59827e3
treed35d94f3b5c6d90efd275b1d9d0248562c576347
parent470d985fb69802f04eb2765328ef82f708cd47d6
iio:pressure:ms5611: oversampling rate support

Add support for setting and retrieving OverSampling Rate independently for
each of the temperature and pressure channels. This allows userspace to
fine tune hardware sampling process according to the following tradeoffs :
* the higher the OSR, the finer the resolution ;
* the higher the OSR, the lower the noise ;
BUT:
* the higher the OSR, the larger the drift ;
* the higher the OSR, the longer the response time, i.e. less samples per
  unit of time.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/ms5611.h
drivers/iio/pressure/ms5611_core.c
drivers/iio/pressure/ms5611_i2c.c
drivers/iio/pressure/ms5611_spi.c