Module diozero.provider.remote
Class GrpcClientDigitalOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.provider.remote.grpc.GrpcClientDigitalOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,GpioDigitalDeviceInterface,GpioDigitalOutputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class GrpcClientDigitalOutputDevice
extends AbstractDevice
implements GpioDigitalOutputDeviceInterface
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcClientDigitalOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue) -
Method Summary
Methods 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.GpioDigitalOutputDeviceInterface
getModeMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
Constructor Details
-
GrpcClientDigitalOutputDevice
public GrpcClientDigitalOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue)
-
-
Method Details
-
getGpio
public int getGpio()- Specified by:
getGpioin interfaceGpioDeviceInterface
-
getValue
- Specified by:
getValuein interfaceGpioDigitalDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceGpioDigitalOutputDeviceInterface- Throws:
RuntimeIOException
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-