i am trying to read the trim values of the magnetometer. It is not described in the datasheet.
As far as I've read from the bmi160 driver firmware it has to be done via the internal bus. But I cannot not use the driver implementation since I am using nordic SPI transaction manager which does not allow the usage of the driver. Therefore, I would like to know the exact line of commands to write and the expected responses from the sensor.
Could you please show me where to find these informations.
Solved! Go to Solution.
Currently API code only is available. Please the following link to downloard BMI160+BMM150 drivers.
If you can't use it and want to write and read registers directly, recommend you to achieve your feature with API code first, and then read out all registers to re-write them or according to API code to write the corresponding registers one by one.
Sorry again, but this is not possible with the API code. Because the SPI master runs asynchronously. Is it not possible to get an exact sequence of bytes to send and receive to get the trim parameters?
Did you get the sensor data of BMI160? Did you only want to get trim values of BMM150?
If you want how to get trim registers, you can know these with BMM150 API code.
If you want to know how to write and read BMX160 registers directly, currently the related reference code is not official and offered.
Recommend you to achieve it according to API code or contact the local FAE to get more support.