Present i am working on BMX160 sensor, As part of reading its ACCL and GYRO data, initially i read its CHIP_ID(0xD8) using SPI Driver.
And i configured its registers like in below attached zip file for reading ACCL and GYRO Data and using below attched files of BMX160 but unable to read its ACCL and GYRO data.
Plaese help me to come out of this issue.
Note:- Can we read ACCL, GYRO,MAGN Data indipendently?
Solved! Go to Solution.
The sequence in bmi160_read_sensor_data for accel gyro burst data is as below.
bmi160_get_sensor_data -> get_accel_gyro_data -> bmi160_get_regs
At this time, you can check bmx160 tries to get data from gyro_x_0_7 to accel_z_8_15. ( Length would be 12)
get_accel_gyro_data function in bmi160.c line 3711. If you change some code, line would be a little bit different.