aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-01-27 13:41:52 -0500
committerJonathan Cameron <jic23@kernel.org>2015-01-29 13:49:57 -0500
commit2f0ecb7c6563d711bec15268d56adf1c630e77d1 (patch)
treee632caab2e65ee84dc93eba696897f75e757c7dd /Documentation/ABI
parenta9afcaa69fc23679f22cf613e7113a60e115e03a (diff)
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index c03a1401b9ca..b4ea9c521f69 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -1193,3 +1193,18 @@ Description:
1193 This attribute is used to read the current speed value of the 1193 This attribute is used to read the current speed value of the
1194 user (which is the norm or magnitude of the velocity vector). 1194 user (which is the norm or magnitude of the velocity vector).
1195 Units after application of scale are m/s. 1195 Units after application of scale are m/s.
1196
1197What: /sys/.../iio:deviceX/in_steps_debounce_count
1198KernelVersion: 3.20
1199Contact: linux-iio@vger.kernel.org
1200Description:
1201 Specifies the number of steps that must occur within
1202 in_steps_filter_debounce_time for the pedometer to decide the
1203 consumer is making steps.
1204
1205What: /sys/.../iio:deviceX/in_steps_debounce_time
1206KernelVersion: 3.20
1207Contact: linux-iio@vger.kernel.org
1208Description:
1209 Specifies number of seconds in which we compute the steps
1210 that occur in order to decide if the consumer is making steps.