How do I enable MLC code in LSM6DSOX driver in Linux 5.10, is there any example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-20 12:01 AM
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-20 12:02 AM
The LSM6DSOX driver for linux IIO:
embeds a sample code that configures the MLC / FSM for "6D position recognition", this creates an IIO device for generating events when detected the 6D position once enabled through the sysfs by writing 1 in the file:
/sys/bus/iio/devices/iio:device<x>/events/in_activity0_thresh_rising_en
where x represents the IIO index for this MLC/FSM device that depends on the already available IIO devices registered in the board.
The sample code embedded in the IIO LDD can be customized by using the already available application examples for MLC: https://github.com/STMicroelectronics/STMems_Machine_Learning_Core/tree/master/application_examples
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-20 12:02 AM
The LSM6DSOX driver for linux IIO:
embeds a sample code that configures the MLC / FSM for "6D position recognition", this creates an IIO device for generating events when detected the 6D position once enabled through the sysfs by writing 1 in the file:
/sys/bus/iio/devices/iio:device<x>/events/in_activity0_thresh_rising_en
where x represents the IIO index for this MLC/FSM device that depends on the already available IIO devices registered in the board.
The sample code embedded in the IIO LDD can be customized by using the already available application examples for MLC: https://github.com/STMicroelectronics/STMems_Machine_Learning_Core/tree/master/application_examples
