Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to use IMU LSM6DSOX in nRF52832?

I would like to develop code to use the IMU LSM6DSOX component (accelerometer and gyroscope). 
I want to use functions from the manufacturer's provided code, from the link : https://github.com/STMicroelectronics/lsm6dsox-pid/tree/384089632796834551678a15c5d608eb7c96c468 
but I have faced the problem of  the compatibility.
I couldn't manage to make the appropriate modifications, in order to use I2C (TWI module) and the twi functions in combination with the code from the link. I would really like to make the least adjustments in the source and header file of the linked code, but only the necessary in order to use twi module of nrf52. 

I was wondering if anyone has ever done this or for another similar component, or if there is any idea on how to achieve this. 

Thanks for the help in advance!

Dimitra

Related