Class Ak8963I2c
- Namespace
- Iot.Device.Magnetometer
- Assembly
- Iot.Device.Ak8963.dll
Default I2C interface for the AK8963.
public class Ak8963I2c : Ak8963I2cBase
- Inheritance
-
Ak8963I2c
Constructors
Ak8963I2c()
public Ak8963I2c()
Methods
ReadByte(I2cDevice, byte)
Read a byte.
public override byte ReadByte(I2cDevice i2cDevice, byte reg)
Parameters
Returns
- byte
The register value.
ReadBytes(I2cDevice, byte, SpanByte)
Read a byte array.
public override void ReadBytes(I2cDevice i2cDevice, byte reg, SpanByte readBytes)
Parameters
i2cDevice
I2cDeviceAn I2C device.
reg
byteThe register to read.
readBytes
SpanByteA span of bytes with the read values.
WriteRegister(I2cDevice, byte, byte)
Write a byte.
public override void WriteRegister(I2cDevice i2cDevice, byte reg, byte data)