Click or drag to resize

Device Class

Encapsulates the MCP23S17 SPI I/O GPIO Expander.
Inheritance Hierarchy
SystemObject
  IO.Devices.MCP23S17Device

Namespace: IO.Devices.MCP23S17
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 single MCP23S17 device.
Top
Properties
 NameDescription
Public propertyDirection Data Direction Property (16 bits). Bits 0 to 7 correspond to PORT A and bits 8 to 15 correspond to PORT B. For each bit, 0=input and 1=output.
Public propertyDirectionA Port A Data Direction Property (8 bits). For each bit, 0=input and 1=output.
Public propertyDirectionB Port B Data Direction Property (8 bits). For each bit, 0=input and 1=output.
Public propertyPolarity Data Polarity Property (16 bits). Bits 0 to 7 correspond to PORT A and bits 8 to 15 correspond to PORT B. For each bit, 0=input and 1=output.
Public propertyPolarityA Port A Data Polarity Property (8 bits). For each bit, 0=input and 1=output.
Public propertyPolarityB Port B Data Polarity Property (8 bits). For each bit, 0=input and 1=output.
Public propertyPort Port Data Property (16 bites). Bits 0 to 7 correspond to PORT A and bits 8 to 15 correspond to PORT B.
Public propertyPortA Port A Data Property (8 bits).
Public propertyPortB Port B Data Property (8 bits).
Public propertyPullups Input Pullup Property (16 bits). Bits 0 to 7 correspond to PORT A and bits 8 to 15 correspond to PORT B. For each bit, 0=high impedance and 1=100k pullup.
Public propertyPullupsA Port A Input Pullup Property (16 bits). For each bit, 0=high impedance and 1=100k pullup.
Public propertyPullupsB Port B Input Pullup Property (16 bits). For each bit, 0=high impedance and 1=100k pullup.
Top
Methods
 NameDescription
Public methodGPIO_Create Create an MCP23S17 GPIO pin object.
Top
Fields
 NameDescription
Public fieldStatic memberMaxChannel Maximum I/O channel number.
Public fieldStatic memberMinChannel Minimum I/O channel number.
Public fieldStatic memberSPI_Frequency SPI maximum clock frequency in Hz.
Public fieldStatic memberSPI_Mode SPI transfer mode.
Public fieldStatic memberSPI_WordSize SPI transaction word size.
Top
See Also