Class RemoteDigitalOutputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.internal.provider.remote.devicefactory.RemoteDigitalOutputDevice
-
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,GpioDigitalDeviceInterface,GpioDigitalOutputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class RemoteDigitalOutputDevice extends AbstractDevice implements GpioDigitalOutputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description RemoteDigitalOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseDevice()intgetGpio()booleangetValue()voidsetValue(boolean value)-
Methods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isOpen
-
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.GpioDigitalOutputDeviceInterface
getMode
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpen
-
-
-
-
Constructor Detail
-
RemoteDigitalOutputDevice
public RemoteDigitalOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue)
-
-
Method Detail
-
getGpio
public int getGpio()
- Specified by:
getGpioin interfaceGpioDeviceInterface
-
getValue
public boolean getValue() throws RuntimeIOException- Specified by:
getValuein interfaceGpioDigitalDeviceInterface- Throws:
RuntimeIOException
-
setValue
public void setValue(boolean value) throws RuntimeIOException- Specified by:
setValuein interfaceGpioDigitalOutputDeviceInterface- Throws:
RuntimeIOException
-
closeDevice
protected void closeDevice() throws RuntimeIOException- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-
-