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.
Where are you from?
Maybe you can contact the distributor sales and then transfer to bst local FAE.
Please see the following link:
Okay I've wrote an email but in the meantime I have some further questions.
I've got the API code running up to a certain point:
Everything runs fine except when I try to init the bmm150 (remember I have a bmx160). And here is something wrong in the documentation.
1. The current version of the bmm150 code does not have a bmm150.delay_ms = delay_ms; but a bmm150.delay_us function. Why?
2. And there is now an intf_ptr which is used for the read and write function pointers. But these function pointers in your documentation do not use this pointer.
3. And so on....
So there is a big gap between your code and documentation.
Please see my comments:
1. Due to the different version of API code, you need to update these interface function.
2. This "intf_ptr " pointer you can ignore if it don't be called for some features in API code.
The reference code is from an old version API code, there are some small gaps, but it is easy to handle them and don't affect the actual usage.