Table of Contents

Class Bmm150I2c

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

Default I2C interface for the Bmm150.

public class Bmm150I2c : Bmm150I2cBase
Inheritance
Bmm150I2c

Constructors

Bmm150I2c()

public Bmm150I2c()

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.