linux/drivers/iio
Irina Tirdea a88bfe7858 iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE event
These changes are needed to support the functionality of a pedometer.
A pedometer has two basic functionalities: step counter and step detector.

The step counter needs to be enabled and then it will count the steps
in its hardware register. Whenever the application needs to check
the step count, it will read the step counter register. To support the
step counter a new channel type STEPS is added. Since the pedometer needs
to be enabled first so that the hardware can count and store the steps,
we need a specific ENABLE channel info mask.

The step detector will generate an interrupt each time a step is detected.
To support this functionality we add a new event type INSTANCE.

For more information on the Android requirements for step counter and step
detector see:
http://source.android.com/devices/sensors/composite_sensors.html#counter
and http://source.android.com/devices/sensors/composite_sensors.html#detector.

A device that has the pedometer functionality this interface needs to
support is Freescale's MMA9553L:
http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-11-22 11:05:51 +00:00
..
accel iio:kxcjk-1013: Add support for SMO8500 device 2014-11-08 12:40:53 +00:00
adc First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
amplifiers iio: amplifiers: ad8366: Remove regulator_put 2013-09-28 11:49:45 +01:00
common First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
dac iio: add support of the max5821 2014-07-27 14:21:35 +01:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
humidity iio:humidity:si7020: fix pointer to i2c client 2014-10-25 20:55:56 +01:00
imu iio: imu: Add support for Kionix KMX61 sensor 2014-11-22 10:47:20 +00:00
light iio: jsa1212: Add JSA1212 proximity/ALS sensor 2014-11-08 12:24:50 +00:00
magnetometer First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
orientation iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
pressure iio:pressure:bmp280: fix pressure calculation 2014-11-05 15:58:35 +00:00
proximity iio: as3935: Remove unnecessary semicolons 2014-11-05 13:47:42 +00:00
temperature iio: Add Melexis mlx90614 contact-less infrared temperature sensor driver 2014-05-03 11:38:13 +01:00
trigger iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
Kconfig iio: always select ANON_INODES 2014-05-10 11:39:57 +01:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core.h IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
iio_core_trigger.h
industrialio-buffer.c 1st round of new IIO drivers, functionality and cleanups for the 3.18 cycle. 2014-08-25 11:09:35 -07:00
industrialio-core.c iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE event 2014-11-22 11:05:51 +00:00
industrialio-event.c iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE event 2014-11-22 11:05:51 +00:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio:triggered-buffer: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:47 +01:00
inkern.c First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00