Class GrpcClientDigitalInputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.internal.spi.AbstractInputDevice<DigitalInputEvent>
-
- com.diozero.internal.provider.remote.grpc.GrpcClientDigitalInputDevice
-
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,GpioDigitalDeviceInterface,GpioDigitalInputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class GrpcClientDigitalInputDevice extends AbstractInputDevice<DigitalInputEvent> implements GpioDigitalInputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description GrpcClientDigitalInputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseDevice()protected voiddisableListener()protected voidenableListener()intgetGpio()booleangetValue()voidsetDebounceTimeMillis(int debounceTime)-
Methods inherited from class com.diozero.internal.spi.AbstractInputDevice
accept, generatesEvents, isListenerEnabled, removeListener, setListener
-
Methods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isChild, isOpen, setChild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
Methods inherited from interface com.diozero.internal.spi.GpioDigitalInputDeviceInterface
getMode, removeListener, setListener
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
-
-
-
Constructor Detail
-
GrpcClientDigitalInputDevice
public GrpcClientDigitalInputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
-
-
Method Detail
-
getValue
public boolean getValue() throws RuntimeIOException- Specified by:
getValuein interfaceGpioDigitalDeviceInterface- Throws:
RuntimeIOException
-
getGpio
public int getGpio()
- Specified by:
getGpioin interfaceGpioDeviceInterface
-
setDebounceTimeMillis
public void setDebounceTimeMillis(int debounceTime)
- Specified by:
setDebounceTimeMillisin interfaceGpioDigitalInputDeviceInterface
-
closeDevice
protected void closeDevice() throws RuntimeIOException- Overrides:
closeDevicein classAbstractInputDevice<DigitalInputEvent>- Throws:
RuntimeIOException
-
enableListener
protected void enableListener()
- Overrides:
enableListenerin classAbstractInputDevice<DigitalInputEvent>
-
disableListener
protected void disableListener()
- Overrides:
disableListenerin classAbstractInputDevice<DigitalInputEvent>
-
-