Searched hist:"7 f8651270c6c9c662281232dde9d1ca5a983730f" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/iio/light/ |
H A D | vcnl4000.c | diff 7f8651270c6c9c662281232dde9d1ca5a983730f Tue Jun 13 15:50:22 CEST 2023 Astrid Rost <astrid.rost@axis.com> iio: light: vcnl4000: Add period for vcnl4040/4200
Add read/write attribute for proximity and illuminance period. The period is set in the interrupt persistence flags(PS_PERS and ALS_PERS). An interrupt will not be asserted if the raw value is not over (or lower) than the threshold for the set continued amount of measurements. The time in seconds is calculated by the number of continued refreshes multiplied with the integration time. It will always pick the next lower possible value. The period changes, if the integration time is changed.
Signed-off-by: Astrid Rost <astrid.rost@axis.com> Link: https://lore.kernel.org/r/20230613135025.2596641-7-astrid.rost@axis.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|