2024-10-09 08:03 AM
Hi,
I am using h3lis331dl accelerometer with imx8mp and also using the default st_accel and st_accel_i2c drivers in Linux. Most of the part works correctly.
I am using udevadm to monitor the trigger in C# code.
/bin/udevadm monitor iio:device0
This works when I manually trigger with the command "sudo udevadm trigger /sys/bus/iio/devices/iio:device0"
Is it the right way to monitor the trigger/interrupt?
Also, in_accel_*_raw and in_accel_*_scale files are available in /sys/bus/iio/devices/iio:device0 directory. How can I calculate the acceleration with the raw, scale and mount_matrix?
Could someone please help me?
Here is the device tree node:
Thanks
Chris