Table of Contents

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

i2cDevice I2cDevice

An I2C device.

reg byte

The register to read.

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 I2cDevice

An I2C device.

reg byte

The register to read.

readBytes SpanByte

A span of bytes with the read values.

WriteRegister(I2cDevice, byte, byte)

Write a byte.

public override void WriteRegister(I2cDevice i2cDevice, byte reg, byte data)

Parameters

i2cDevice I2cDevice

An I2C device.

reg byte

The register to read.

data byte

A byte to write.