Class RemoteAnalogOutputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.internal.provider.remote.devicefactory.RemoteAnalogOutputDevice
-
- All Implemented Interfaces:
DeviceInterface,AnalogOutputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class RemoteAnalogOutputDevice extends AbstractDevice implements AnalogOutputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description RemoteAnalogOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseDevice()intgetAdcNumber()floatgetValue()voidsetValue(float 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.internal.spi.AnalogOutputDeviceInterface
getMode
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpen
-
-
-
-
Constructor Detail
-
RemoteAnalogOutputDevice
public RemoteAnalogOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue)
-
-
Method Detail
-
getValue
public float getValue() throws RuntimeIOException- Specified by:
getValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
setValue
public void setValue(float value) throws RuntimeIOException- Specified by:
setValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()
- Specified by:
getAdcNumberin interfaceAnalogOutputDeviceInterface
-
closeDevice
protected void closeDevice() throws RuntimeIOException- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-
-