Click or drag to resize

Device Class

Encapsulates PCA9534 (and similar) I2C GPIO Expanders.
Inheritance Hierarchy
SystemObject
  IO.Devices.PCA9534Device

Namespace: IO.Devices.PCA9534
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.356.1
Syntax
C#
public class Device

The Device type exposes the following members.

Constructors
 NameDescription
Public methodDevice Constructor for a PCA9534 (or similar) GPIO Expander.
Top
Properties
 NameDescription
Public propertyConfig This read-only property returns the last value written to the configuration register.
Public propertyLatch This read-only property returns the last value written to the output port register.
Top
Methods
 NameDescription
Public methodRead Return actual state of the GPIO pins.
Public methodRead(Byte) Read from the specified PCA9534 device register.
Public methodWrite(Byte) Write all GPIO pins.
Public methodWrite(Byte, Byte) Write to the specified PCA9534 device register.
Top
Fields
 NameDescription
Public fieldStatic memberAllInputs Configure all pins as inputs.
Public fieldStatic memberAllNormal Configure all inputs as normal polarity.
Public fieldStatic memberAllOff Turn all outputs off.
Public fieldStatic memberAllOutputs Configure all pins as outputs.
Public fieldStatic memberConfigurationReg Configuration Register address.
Public fieldStatic memberInputPolarityReg Input Port Polarity Register address.
Public fieldStatic memberInputPortReg Input Port Register address.
Public fieldStatic memberMAX_PINS The number of available GPIO pins per chip.
Public fieldStatic memberOutputPortReg Output Port Register address.
Top
See Also