linux/drivers/iio/proximity
Andreas Klinger feda284004 iio: distance: add devantech us ranger srf04
This patch adds support for the ultrasonic ranger srf04 of devantech.

This device is measuring the distance of objects in a range between 1 cm
and 3 meters and a theoretical resolution of 3 mm.

There are two GPIOs used:
  - trigger: set as output to the device when the measurement should start
  - echo: set by the device when the ultrasonic wave is sent out and reset
    when the echo is recognized; this needs to be an interrupt input

The time between setting and resetting the echo pin is the time the
waveform needed for one round trip. This time is recorded in the interrupt
handler.

The distance is calculated in the read function by using the ultrasonic
speed at 20 degrees celsius which is about 343 m/s.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-02-04 12:19:20 +00:00
..
as3935.c iio: proximity: as3935: set up buffer timestamps for non-zero values 2016-08-15 15:39:27 +01:00
Kconfig iio: distance: add devantech us ranger srf04 2017-02-04 12:19:20 +00:00
Makefile iio: distance: add devantech us ranger srf04 2017-02-04 12:19:20 +00:00
pulsedlight-lidar-lite-v2.c iio: pulsedlight-lidar-lite-v2: add lidar-lite-v3 property 2016-12-31 15:18:31 +00:00
srf04.c iio: distance: add devantech us ranger srf04 2017-02-04 12:19:20 +00:00
srf08.c iio: distance: srf08: add IIO driver for us ranger 2017-01-28 16:38:24 +00:00
sx9500.c iio: proximity: sx9500: claim direct mode during raw proximity reads 2017-01-21 12:21:53 +00:00