Package com.diozero.internal.spi
Interface GpioDeviceFactoryInterface
- All Superinterfaces:
AutoCloseable
,DeviceFactoryInterface
- All Known Subinterfaces:
NativeDeviceFactoryInterface
- All Known Implementing Classes:
BaseNativeDeviceFactory
,DefaultDeviceFactory
,MCP23008
,MCP23017
,MCP23S17
,MCP23x08
,MCP23x17
,MCP23xxx
,PCF8574
,PiconZero
public interface GpioDeviceFactoryInterface extends DeviceFactoryInterface
-
Method Summary
Modifier and Type Method Description GpioDigitalInputDeviceInterface
createDigitalInputDevice(String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
GpioDigitalInputOutputDeviceInterface
createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
GpioDigitalOutputDeviceInterface
createDigitalOutputDevice(String key, PinInfo pinInfo, boolean initialValue)
default GpioDigitalInputDeviceInterface
provisionDigitalInputDevice(PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
default GpioDigitalInputOutputDeviceInterface
provisionDigitalInputOutputDevice(PinInfo pinInfo, DeviceMode mode)
default GpioDigitalOutputDeviceInterface
provisionDigitalOutputDevice(PinInfo pinInfo, boolean initialValue)
Methods inherited from interface com.diozero.internal.spi.DeviceFactoryInterface
close, createI2CKey, createPinKey, createSerialKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getName, isClosed, isDeviceOpened, reopen, start
-
Method Details
-
provisionDigitalInputDevice
default GpioDigitalInputDeviceInterface provisionDigitalInputDevice(PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException- Throws:
RuntimeIOException
-
provisionDigitalOutputDevice
default GpioDigitalOutputDeviceInterface provisionDigitalOutputDevice(PinInfo pinInfo, boolean initialValue) throws RuntimeIOException- Throws:
RuntimeIOException
-
provisionDigitalInputOutputDevice
default GpioDigitalInputOutputDeviceInterface provisionDigitalInputOutputDevice(PinInfo pinInfo, DeviceMode mode) throws RuntimeIOException- Throws:
RuntimeIOException
-
createDigitalInputDevice
GpioDigitalInputDeviceInterface createDigitalInputDevice(String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger) -
createDigitalOutputDevice
GpioDigitalOutputDeviceInterface createDigitalOutputDevice(String key, PinInfo pinInfo, boolean initialValue) -
createDigitalInputOutputDevice
GpioDigitalInputOutputDeviceInterface createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
-