How should several registers of mag be configured? What do the bits of these registers represent? How should these registers be configured to make the geomagnetic needle work normally?
Could we know what is the sensor part you used?
For "How should several registers of mag be configured? ", do you mean you will use multiple mag sensor in your application?
There was a example code attached to access accel, gyro, mag sensor data for BMX160. You could refer it.
These codes are only related to accelerometers and gyroscopes, not magnetometers. What I want to know is what the above registers do, what they are related to magnetometers, and how to configure them?