Module diozero.provider.remote
Class GrpcClientDigitalInputOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.spi.AbstractInputDevice<DigitalInputEvent>
com.diozero.internal.provider.remote.grpc.GrpcClientDigitalInputOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,GpioDigitalDeviceInterface,GpioDigitalInputOutputDeviceInterface,GpioDigitalOutputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class GrpcClientDigitalInputOutputDevice
extends AbstractInputDevice<DigitalInputEvent>
implements GpioDigitalInputOutputDeviceInterface
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcClientDigitalInputOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, DeviceMode mode) -
Method Summary
Methods inherited from class com.diozero.internal.spi.AbstractInputDevice
accept, generatesEvents, isListenerEnabled, removeListener, setListenerMethods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isChild, isOpen, setChildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.diozero.api.DeviceInterface
closeMethods inherited from interface com.diozero.internal.spi.GpioDigitalInputOutputDeviceInterface
removeListener, setListenerMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
Constructor Details
-
GrpcClientDigitalInputOutputDevice
public GrpcClientDigitalInputOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, DeviceMode mode)
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceGpioDigitalDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceGpioDigitalOutputDeviceInterface- Throws:
RuntimeIOException
-
getGpio
public int getGpio()- Specified by:
getGpioin interfaceGpioDeviceInterface
-
getMode
- Specified by:
getModein interfaceGpioDeviceInterface- Specified by:
getModein interfaceGpioDigitalOutputDeviceInterface
-
setMode
- Specified by:
setModein interfaceGpioDigitalInputOutputDeviceInterface
-
closeDevice
- Overrides:
closeDevicein classAbstractInputDevice<DigitalInputEvent>- Throws:
RuntimeIOException
-
enableListener
protected void enableListener()- Overrides:
enableListenerin classAbstractInputDevice<DigitalInputEvent>
-
disableListener
protected void disableListener()- Overrides:
disableListenerin classAbstractInputDevice<DigitalInputEvent>
-