Characteristic Locus
Inheritance System.Object Hmc5883 > Qmc5883
Inherited Members Hmc5883.DirectionUpdated Hmc5883.Direction Hmc5883.Heading Hmc5883.DeviceStatus Hmc5883.RaiseEventsAndNotify(IChangeResult<Vector>) Hmc5883.DirectionToHeading(Vector)
Namespace Meadow.Foundation.Sensors.Motion
Assembly Hmc5883.dll

Syntax

public class Qmc5883 : Hmc5883

Constructors

Qmc5883(II2cBus, Byte, Hmc5883.GainLevels, Hmc5883.MeasuringModes, Hmc5883.DataOutputRates, Hmc5883.SampleAmounts, Hmc5883.MeasurementConfigurations)

Create a new Qmc5883 object

Declaration
public Qmc5883(II2cBus i2cBus, byte address = null, Hmc5883.GainLevels gain = default(Hmc5883.GainLevels), Hmc5883.MeasuringModes measuringMode = default(Hmc5883.MeasuringModes), Hmc5883.DataOutputRates outputRate = default(Hmc5883.DataOutputRates), Hmc5883.SampleAmounts samplesAmount = default(Hmc5883.SampleAmounts), Hmc5883.MeasurementConfigurations measurementConfig = default(Hmc5883.MeasurementConfigurations))

Parameters

Type Name Description
II2cBus i2cBus

The I2C bus

System.Byte address

The I2C address

Hmc5883.GainLevels gain

Gain

Hmc5883.MeasuringModes measuringMode

Measuring mode

Hmc5883.DataOutputRates outputRate

Output rate

Hmc5883.SampleAmounts samplesAmount

Samples amount

Hmc5883.MeasurementConfigurations measurementConfig

Measurement configuration

Methods

Initialize()

Initalize the sensor

Declaration
protected override void Initialize()

Overrides

ReadSensor()

Reads data from the sensor

Declaration
protected override Task<Vector> ReadSensor()

Returns

Type Description
Task<Vector>

The latest sensor reading

Overrides