Package com.diozero.internal.spi
Interface GpioDigitalInputDeviceInterface
-
- All Superinterfaces:
AutoCloseable
,DeviceInterface
,GpioDeviceInterface
,GpioDigitalDeviceInterface
,InternalDeviceInterface
- All Known Implementing Classes:
MCP23xxxDigitalInputDevice
,NativeGpioInputDevice
,PiconZero.PiconZeroDigitalInputDevice
,SysFsDigitalInputDevice
public interface GpioDigitalInputDeviceInterface extends GpioDigitalDeviceInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DeviceMode
getMode()
void
removeListener()
void
setDebounceTimeMillis(int debounceTime)
void
setListener(DeviceEventConsumer<DigitalInputEvent> listener)
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
Methods inherited from interface com.diozero.internal.spi.GpioDeviceInterface
getGpio
-
Methods inherited from interface com.diozero.internal.spi.GpioDigitalDeviceInterface
getValue
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
-
-
-
Method Detail
-
setDebounceTimeMillis
void setDebounceTimeMillis(int debounceTime)
-
setListener
void setListener(DeviceEventConsumer<DigitalInputEvent> listener)
-
removeListener
void removeListener()
-
getMode
default DeviceMode getMode()
- Specified by:
getMode
in interfaceGpioDeviceInterface
-
-