Magnetometer
Last updated
Was this helpful?
Last updated
Was this helpful?
This section will help us to review the magnetometer BMM150 also known as the geomagnetic sensor BMM150 on the XDK via the magnetometer interface. We are going to review how to initialized and read the sensor data.
BMM150
The table below contains some of the configuration functions of the magnetometer
Function
Effect
Magnetometer_setDataRate()
Configures the magnetometer with the given data rate enumeration
Magnetometer_getDataRate()
Returns the configured data rate of the magnetometer in a passed reference variable
Magnetometer_setPresetMode()
Configures the magnetometer with the given preset mode enumeration
Magnetometer_getPresetMode()
Returns the configured preset mode of the magnetometer in a passed reference variable
Magnetometer_setPowerMode()
Configures the magnetometer with the given power mode enumeration
Magnetometer_getPowerMode()
Returns the configured power mode of the magnetometer in a passed reference variable