The LSM6DSVx STMEMS IMU device family can be configured to generate
interrupt signals activated by user-defined motion patterns. To
do this, up to 8 embedded finite state machines (FSM) can be programmed
independently for motion detection. Moreover this sensor family embeds
a dedicated core for machine learning processing (MLC) that provides system
flexibility, allowing up to 4 algorithms run in the application
processor to be moved in the MEMS sensor with the advantage of consistent
reduction in overall power consumption.
This commit add the possibility to configure the internal MLC and FSM core
using the unico ucf configuration file at runtime.
Each configured MLC or FSM exports an IIO device capable of generating
events for which it was designed and can be individually enabled and
disabled.
In addition, an example configuration file for MLC and FSM has been
included in driver code and can be preloaded immediately in order to
test this functionality.
Signed-off-by: Mario Tesi <mario.tesi@st.com>
Change-Id: I061746d1f827f6e8db43fd3bb9054e7bdb64f1a9
Reviewed-on: https://gerrit.st.com/c/linuxandroidopen/stm-ldd-iio/+/266723
Tested-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Denis CIOCCA <denis.ciocca@st.com>