Characteristic Locus
Inheritance System.Object Hmc5883 > Qmc5883
Inherited Members Hmc5883.i2cPeripheral Hmc5883.measuringMode Hmc5883.outputRate Hmc5883.gain Hmc5883.sampleAmount Hmc5883.measurementConfig Hmc5883.Direction Hmc5883.Heading Hmc5883.DeviceStatus Hmc5883.DirectionChanged Hmc5883.DirectionToHeading(Vector) System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Motion
Assembly Hmc5883.dll

Syntax

public class Qmc5883 : Hmc5883

Constructors

Qmc5883(II2cBus, Byte, Hmc5883.Gain, Hmc5883.MeasuringMode, Hmc5883.OutputRate, Hmc5883.SamplesAmount, Hmc5883.MeasurementConfiguration)

Declaration
public Qmc5883(II2cBus i2cBus, byte address = 13, Hmc5883.Gain gain = Hmc5883.Gain.Gain1090, Hmc5883.MeasuringMode measuringMode = Hmc5883.MeasuringMode.Continuous, Hmc5883.OutputRate outputRate = Hmc5883.OutputRate.Rate15, Hmc5883.SamplesAmount samplesAmount = default(Hmc5883.SamplesAmount), Hmc5883.MeasurementConfiguration measurementConfig = default(Hmc5883.MeasurementConfiguration))

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address
Hmc5883.Gain gain
Hmc5883.MeasuringMode measuringMode
Hmc5883.OutputRate outputRate
Hmc5883.SamplesAmount samplesAmount
Hmc5883.MeasurementConfiguration measurementConfig

Fields

DefaultI2cAddress

QMC5883L Default I2C Address

This driver is untested

Declaration
public const byte DefaultI2cAddress = 13

Field Value

Type Description
System.Byte

Methods

GetDirection()

Declaration
public Vector GetDirection()

Returns

Type Description
Vector

Initialize()

Declaration
protected override void Initialize()

Overrides