iio: ina2xx: provide a sysfs parameter to allow async readout of the ADCs
authorMarc Titinger <mtitinger@baylibre.com>
Mon, 7 Dec 2015 09:09:35 +0000 (10:09 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Dec 2015 16:07:41 +0000 (16:07 +0000)
commitf9993c0771ce24063fe62bf73ac57bcfc9ad81de
tree8d2de8e4b48df74802ad3588e83d19b3432d595a
parentc43a102e67db99c8bfe6e8a9280cec13ff53b789
iio: ina2xx: provide a sysfs parameter to allow async readout of the ADCs

This can lead to repeated or skipped samples depending on the clock beat
between the capture thread and the chip sampling clock, but will also spare
reading/waiting for the Capture Ready Flag and improve the available i2c
bandwidth for reading measurements.

Output of iio_info:
...snip...
4 device-specific attributes found:
  attr 0: in_oversampling_ratio value: 4
  attr 1: in_allow_async_readout value: 0
  attr 2: integration_time_available value: 140 204 332 588 1100 2116...
  attr 3: in_sampling_frequency value: 114

Signed-off-by: Marc Titinger <mtitinger@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ina2xx-adc.c
This page took 0.047493 seconds and 5 git commands to generate.