Table of Contents

Class Mcp23xxx.I2cAdapter

Namespace
Iot.Device.Mcp23xxx
Assembly
Iot.Device.Mcp23xxx.dll

I2C adapter

protected class Mcp23xxx.I2cAdapter : Mcp23xxx.BusAdapter
Inheritance
Mcp23xxx.I2cAdapter

Constructors

I2cAdapter(I2cDevice)

Constructs I2cAdapter instance

public I2cAdapter(I2cDevice device)

Parameters

device I2cDevice

I2C device

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

Read(byte, SpanByte)

Reads bytes from the device register

public override void Read(byte registerAddress, SpanByte buffer)

Parameters

registerAddress byte

Register address

buffer SpanByte

Bytes to be read from the register

Write(byte, SpanByte)

Writes bytes to the device register

public override void Write(byte registerAddress, SpanByte data)

Parameters

registerAddress byte

Register address

data SpanByte

Bytes to be written to the register