mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
iio: core: Introduce CHANGE event type
A step detector will generate an interrupt each time N step are detected. A device that has such pedometer functionality is Freescale's MMA9553L: http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf. Introduce IIO_EV_TYPE_CHANGE event type for events that are generated when the channel passes a threshold on the absolute change in value. Signed-off-by: Irina Tirdea <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
d37f6836fa
commit
27be84236d
4 changed files with 20 additions and 4 deletions
|
|
@ -198,6 +198,7 @@ static const char * const iio_ev_type_text[] = {
|
|||
[IIO_EV_TYPE_THRESH_ADAPTIVE] = "thresh_adaptive",
|
||||
[IIO_EV_TYPE_MAG_ADAPTIVE] = "mag_adaptive",
|
||||
[IIO_EV_TYPE_INSTANCE] = "instance",
|
||||
[IIO_EV_TYPE_CHANGE] = "change",
|
||||
};
|
||||
|
||||
static const char * const iio_ev_dir_text[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue