mirror-linux/include/linux/iio
Waqar Hameed 5e1cd3e97e iio: Add event enums for running period and count
There are devices (such as Murata IRS-D200 PIR proximity sensor) that
check the data signal with a running period. I.e. for a specified time,
they count the number of conditions that have occurred, and then signal
if that is more than a specified amount.

`IIO_EV_INFO_PERIOD` resets when the condition no longer is true and is
therefore not suitable for these devices. Add a new `iio_event_info`
`IIO_EV_INFO_RUNNING_PERIOD` that can be used as a running period. Also
add a new `IIO_EV_INFO_RUNNING_COUNT` that can be used to specify the
number of conditions that must occur during this running period.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Link: https://lore.kernel.org/r/ee4a801ae9b9c4716c7bd23d8f79f232351df8bd.1689753076.git.waqar.hameed@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-07-23 13:16:18 +01:00
..
accel
adc
afe
common iio: make invensense timestamp module generic 2023-07-20 19:21:28 +01:00
dac
frequency
gyro iio: gyro: itg3200_core: do not use internal iio_dev lock 2022-11-23 19:43:58 +00:00
imu iio: imu: adis: Remove adis_initial_startup function 2022-11-23 20:37:51 +00:00
timer
buffer-dma.h
buffer-dmaengine.h
buffer.h
buffer_impl.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
configfs.h
consumer.h iio: inkern: remove OF dependencies 2022-08-15 22:30:00 +01:00
driver.h
events.h
hw-consumer.h
iio-gts-helper.h iio: fix doc for iio_gts_find_sel_by_int_time 2023-05-13 17:54:57 +01:00
iio-opaque.h iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00
iio.h Char/Misc and other driver subsystem updates for 6.5-rc1 2023-07-03 12:46:47 -07:00
kfifo_buf.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
machine.h
sw_device.h
sw_trigger.h
sysfs.h iio: Add IIO_STATIC_CONST_DEVICE_ATTR 2022-11-23 19:44:03 +00:00
trigger.h iio: trigger: Add simple trigger_validation helper 2023-05-23 21:20:17 +01:00
trigger_consumer.h
triggered_buffer.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
triggered_event.h
types.h iio: Add event enums for running period and count 2023-07-23 13:16:18 +01:00