Hello ,
If you want to set register value, you should use bmi160_set_regs() in your code.
"I am setting the ranges as follows: 2G for the accelerometer and 250 deg/s for the gyro.", 0x41 register value should be written to 0x03 for 2G range. 0x43 register value should be written to 0x03 for 250°/S.
There was BMI160 example code in github, you could refer it from https://github.com/BoschSensortec/BMI160_driver/blob/master/README.md.
... View more