Class MCP23x17
java.lang.Object
com.diozero.internal.provider.AbstractDeviceFactory
com.diozero.internal.provider.mcp23xxx.MCP23xxx
com.diozero.internal.provider.mcp23xxx.MCP23x17
- All Implemented Interfaces:
GpioExpander
,InputEventListener<DigitalInputEvent>
,DeviceFactoryInterface
,GpioDeviceFactoryInterface
,PwmOutputDeviceFactoryInterface
,java.io.Closeable
,java.lang.AutoCloseable
public abstract class MCP23x17 extends MCP23xxx
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MCP23x17.MCP23x17BoardPinInfo
-
Field Summary
Fields inherited from class com.diozero.internal.provider.AbstractDeviceFactory
closed, deviceStates
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description BoardPinInfo
getBoardPinInfo()
protected int
getDefValReg(int port)
protected int
getGPIntEnReg(int port)
protected int
getGPIOReg(int port)
protected int
getGPPullUpReg(int port)
protected int
getIntCapReg(int port)
protected int
getIntConReg(int port)
protected int
getIntFReg(int port)
protected int
getIOConReg(int port)
protected int
getIODirReg(int port)
protected int
getIPolReg(int port)
protected int
getOLatReg(int port)
Methods inherited from class com.diozero.internal.provider.mcp23xxx.MCP23xxx
close, closeGpio, createDigitalInputDevice, createDigitalInputOutputDevice, createDigitalOutputDevice, createPwmOutputDevice, getBoardPwmFrequency, getName, getValue, getValues, initialise, readByte, setBoardPwmFrequency, setDirections, setInputMode, setOutputMode, setValue, setValues, valueChanged, writeByte
Methods inherited from class com.diozero.internal.provider.AbstractDeviceFactory
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, isClosed, isDeviceOpened
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.diozero.internal.provider.DeviceFactoryInterface
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, isClosed, isDeviceOpened
Methods inherited from interface com.diozero.internal.provider.GpioDeviceFactoryInterface
provisionDigitalInputDevice, provisionDigitalInputOutputDevice, provisionDigitalOutputDevice
Methods inherited from interface com.diozero.internal.provider.PwmOutputDeviceFactoryInterface
provisionPwmOutputDevice
-
Constructor Details
-
Method Details
-
getIODirReg
protected int getIODirReg(int port)- Specified by:
getIODirReg
in classMCP23xxx
-
getIPolReg
protected int getIPolReg(int port)- Specified by:
getIPolReg
in classMCP23xxx
-
getGPIntEnReg
protected int getGPIntEnReg(int port)- Specified by:
getGPIntEnReg
in classMCP23xxx
-
getDefValReg
protected int getDefValReg(int port)- Specified by:
getDefValReg
in classMCP23xxx
-
getIntConReg
protected int getIntConReg(int port)- Specified by:
getIntConReg
in classMCP23xxx
-
getIOConReg
protected int getIOConReg(int port)- Specified by:
getIOConReg
in classMCP23xxx
-
getGPPullUpReg
protected int getGPPullUpReg(int port)- Specified by:
getGPPullUpReg
in classMCP23xxx
-
getIntFReg
protected int getIntFReg(int port)- Specified by:
getIntFReg
in classMCP23xxx
-
getIntCapReg
protected int getIntCapReg(int port)- Specified by:
getIntCapReg
in classMCP23xxx
-
getGPIOReg
protected int getGPIOReg(int port)- Specified by:
getGPIOReg
in classMCP23xxx
-
getOLatReg
protected int getOLatReg(int port)- Specified by:
getOLatReg
in classMCP23xxx
-
getBoardPinInfo
-