Class Pcx8575
Base class for 16 bit I/O expanders.
public abstract class Pcx8575 : Pcx857x
- Inheritance
-
GpioDriverPcx8575
- 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
I2cDeviceI2C device
interrupt
intInterrupt pin
gpioController
GpioControllerGpioController related with
interrupt
pinshouldDispose
boolTrue to dispose the Gpio Controller
Properties
PinCount
The number of pins provided by the driver.
protected override int PinCount { get; }
Property Value
Methods
ReadUInt16()
Reads 16-bit unsigned integer from the device
public ushort ReadUInt16()
Returns
WriteUInt16(ushort)
Writes 16-bit unsigned integer to the device
public void WriteUInt16(ushort value)
Parameters
value
ushort16-bit unsigned value to be written