WSL2-Linux-Kernel/include/linux/iio
Irina Tirdea 2f0ecb7c65 iio: core: Introduce IIO_CHAN_INFO_DEBOUNCE_COUNT and _TIME
The pedometer needs to filter out false steps that might be generated by
tapping the foot, sitting, etc. To do that it computes the number of
steps that occur in a given time and decides the user is moving only
if this value is over a threshold. E.g.: the user starts moving only
if he takes 4 steps in 3 seconds. This filter is applied only when
the user starts moving.

A device that has such pedometer functionality is Freescale's MMA9553L:
http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf.

To export this feature, this patch introduces IIO_CHAN_INFO_DEBOUNCE_COUNT
and IIO_CHAN_INFO_DEBOUNCE_TIME. For the pedometer, in_steps_debounce_count
will specify the number of steps that need to occur in
in_steps_debounce_time seconds so that the pedometer decides the user is
moving.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-01-29 18:49:57 +00:00
..
accel iio: accel: kxcjk1013 3-axis accelerometer driver 2014-06-14 17:10:21 +01:00
adc
common iio: common: ssp_sensors: Add sensorhub driver 2015-01-29 18:49:05 +00:00
dac
frequency iio: frequency: adf4350: cast value to unsigned to make code checkers happy 2013-06-04 18:36:52 +01:00
gyro
imu iio: adis: Switch sampling frequency attr to core support. 2014-07-07 09:44:17 +01:00
buffer.h iio: buffer: Drop get_length callback 2014-12-12 12:28:34 +00:00
consumer.h iio: consumer.h: Fix scale factor in function comment 2014-12-12 12:28:36 +00:00
driver.h
events.h iio: Fix IIO_EVENT_CODE_EXTRACT_DIR bit mask 2014-11-15 16:04:56 +00:00
iio.h iio: core: Introduce IIO_CHAN_INFO_DEBOUNCE_COUNT and _TIME 2015-01-29 18:49:57 +00:00
kfifo_buf.h iio: kfifo: Add resource management devm_iio_kfifo_allocate/free 2014-12-26 11:39:57 +00:00
machine.h
sysfs.h iio: Add INT_TIME (integration time) channel info attribute 2013-09-14 21:16:44 +01:00
trigger.h iio:trigger: modify return value for iio_trigger_get 2014-08-25 21:47:22 +01:00
trigger_consumer.h
triggered_buffer.h
types.h iio: core: Remove IIO_EV_TYPE_INSTANCE 2015-01-27 18:49:55 +00:00