I'm trying to configurate a BMX160 with a STM32 over I2C. I got quite confused since there are no BMX160 drivers.
I read in this forum that the BMX160 has a BMM150 as magnetometer and a BMI160 as accelerometer and gyroscope (correct me if I'm wrong), therefore these drivers can be used. When I compare the datasheets from the BMM150 and BMX160 not only do the register addresses not match but also for example the magnetic field range and the configuration procedure (in the BMX160 datasheet the procedure is described with the indirect addressing of the registers to configurate the magnetometer whereas in the BMM150 it's not).
My question is to which extent can I use the drivers from BMM150 and BMI160? Do I only need to adapt the register addresses or is there more to change?
Thanks for your help.
BMX160 integrated BMI160 and BMM150, drivers of BMI160 and BMM150 can be used. You could refer BMX160 example code on STM32F4.
You could refer attached BMX160 example code on STM32F4.