present am working with bmx160 mems magnetometer,till now am able to read bmx160 device id (0xd8) and accelerometer/gyroscope readings from bmx160 by using SPI protocol for doing these i followed below link drivers
now my target is to read magnetometer data from bmx160 by using bmm150 drivers,but am unable to read MAG data ,am using below linked bmm150 driver for doing above task,but no luck.
can i use MAG registers directly (without using bmm150 driver)of bmx160 for reading mag data ,
pl help me to come out of these issue
thankyou in advance
Could you please check the attached file.
This example to get accel and gyro data from bmi160 in bmx160, and mag data from bmm150 in bmx160.
You can use SPI interface as your communcation method between host MCU and bmx160.
The BMM150 I2C interface in my code is for internal communication purpose.
My code is kind of update version of below url.
Please let me know if you have further questions.