[PATCH 0/2] Continuous mode support for VL53l0x

Abhash Jha posted 2 patches 1 year, 3 months ago
There is a newer version of this series
drivers/iio/proximity/vl53l0x-i2c.c | 136 ++++++++++++++++++++++------
1 file changed, 110 insertions(+), 26 deletions(-)
[PATCH 0/2] Continuous mode support for VL53l0x
Posted by Abhash Jha 1 year, 3 months ago
Hello,

The first patch adds support for checking the sensor ID by reading
MODEL_IDENTIFICATION register and seeing if it returns the value 0xEE

The second patch adds support for continuous mode in the sensor by using
buffers. We enable the sensor's continuous mode in the buffer_postenable
function.
Replaced the irq handler with a threaded irq handler in order to perform
I2C reads for the data. The continuous mode can be disabled by disabling
the buffer.

Regards,
Abhash

Abhash Jha (2):
  iio: proximity: vl53l0x-i2c: Added sensor ID check
  iio: proximity: vl53l0x-i2c: Added continuous mode support

 drivers/iio/proximity/vl53l0x-i2c.c | 136 ++++++++++++++++++++++------
 1 file changed, 110 insertions(+), 26 deletions(-)

-- 
2.43.0