Table of Contents

Class Pcx8575

Namespace
Iot.Device.Pcx857x
Assembly
Iot.Device.Pcx857x.dll

Base class for 16 bit I/O expanders.

public abstract class Pcx8575 : Pcx857x
Inheritance
GpioDriver
Pcx8575
Derived
Inherited Members

Constructors

Pcx8575(I2cDevice, int, GpioController, bool)

Constructs Pcx8575 instance

public Pcx8575(I2cDevice device, int interrupt = -1, GpioController gpioController = null, bool shouldDispose = true)

Parameters

device I2cDevice

I2C device

interrupt int

Interrupt pin

gpioController GpioController

GpioController related with interrupt pin

shouldDispose bool

True to dispose the Gpio Controller

Properties

PinCount

The number of pins provided by the driver.

protected override int PinCount { get; }

Property Value

int

Methods

ReadUInt16()

Reads 16-bit unsigned integer from the device

public ushort ReadUInt16()

Returns

ushort

WriteUInt16(ushort)

Writes 16-bit unsigned integer to the device

public void WriteUInt16(ushort value)

Parameters

value ushort

16-bit unsigned value to be written