Hi,
On page 26 of BMX160 datasheet, it says that please refer to API/driver from Bosch for the BMM150 magnetometer. This is to make it easy for developers to use BMM150 without the need to know the formula behind. You can read the trimmed values from the magnetometer manually and then apply the formula to calculate the magnetic field uT based on the raw data of x/y/z axes. Please see the attached two PDF files for more information.
Thanks.
... View more