Table of Contents

Class Bmm150Compensation

Namespace
Iot.Device.Magnetometer
Assembly
Iot.Device.Bmm150.dll

Implements the Bmm150 magnetic field data (off-chip) temperature compensation functions https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmm150-ds001.pdf Page 15.

public class Bmm150Compensation
Inheritance
Bmm150Compensation

Constructors

Bmm150Compensation()

public Bmm150Compensation()

Methods

CompensateX(double, uint, Bmm150TrimRegisterData)

Returns the compensated magnetometer x axis data(micro-tesla) in float. More details, permalink: https://github.com/BoschSensortec/BMM150-Sensor-API/blob/a20641f216057f0c54de115fe81b57368e119c01/bmm150.c#L1614.

public static double CompensateX(double x, uint rhall, Bmm150TrimRegisterData trimData)

Parameters

x double

Axis raw value.

rhall uint

Temperature compensation value (RHALL).

trimData Bmm150TrimRegisterData

Trim registers values.

Returns

double

Compensated magnetometer x axis data(micro-tesla) in float.

CompensateY(double, uint, Bmm150TrimRegisterData)

Returns the compensated magnetometer y axis data(micro-tesla) in float. More details, permalink: https://github.com/BoschSensortec/BMM150-Sensor-API/blob/a20641f216057f0c54de115fe81b57368e119c01/bmm150.c#L1648.

public static double CompensateY(double y, uint rhall, Bmm150TrimRegisterData trimData)

Parameters

y double

Axis raw value.

rhall uint

Temperature compensation value (RHALL).

trimData Bmm150TrimRegisterData

Trim registers values.

Returns

double

Compensated magnetometer y axis data(micro-tesla) in float.

CompensateZ(double, uint, Bmm150TrimRegisterData)

Returns the compensated magnetometer z axis data(micro-tesla) in float More details, permalink: https://github.com/BoschSensortec/BMM150-Sensor-API/blob/a20641f216057f0c54de115fe81b57368e119c01/bmm150.c#L1682.

public static double CompensateZ(double z, uint rhall, Bmm150TrimRegisterData trimData)

Parameters

z double

Axis raw value.

rhall uint

Temperature compensation value (RHALL).

trimData Bmm150TrimRegisterData

Trim registers values.

Returns

double

Compensated magnetometer z axis data(micro-tesla) in float.