linux/drivers/iio
Daniel Baluta 55aebeb926 iio: core: Introduce IIO_ACTIVITY channel
This channel will be used for exposing information about
activity composite sensors. Activities supported so far:
	* running
	* jogging
	* walking
	* still

THRESHOLD event is used to signal a change in the activity
state.

We associate a confidence interval for each activity expressed
as a percentage from 0 to 100.
  * 0, means the sensor IS NOT reporting that activity.
  * 100, means the sensor IS reporting that activity.

Users of this interface have two possible means to gather
information about the ongoing activities.

1. Event based, via event file descriptor
  * sensor may report an event when ENTERING an activity or LEAVING
    an activity based on a threshold value.
  * drivers will wake up applications waiting data on the event fd

2. Polling, by reading the sysfs associated attribute files:
  * /sys/bus/iio/devices/iio:device0/in_activity_running_input
expressed as percentage confidence value from 0 to 100.

This will offer an interface for Android significant motion
composite sensor defined here:
http://source.android.com/devices/sensors/composite_sensors.html

Activities listed above are supported by Freescale's MMA9553 sensor:
http://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:47 +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
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
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
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core_trigger.h
iio_core.h IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
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 IIO_ACTIVITY channel 2014-11-22 11:05:47 +00:00
industrialio-event.c Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07: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
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
Kconfig iio: always select ANON_INODES 2014-05-10 11:39:57 +01:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00