Class RemoteAnalogOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.provider.remote.devicefactory.RemoteAnalogOutputDevice
- All Implemented Interfaces:
DeviceInterface,AnalogOutputDeviceInterface,Closeable,AutoCloseable
public class RemoteAnalogOutputDevice extends AbstractDevice implements AnalogOutputDeviceInterface
-
Constructor Summary
Constructors Constructor Description RemoteAnalogOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue) -
Method Summary
Modifier and Type Method Description protected voidcloseDevice()intgetAdcNumber()floatgetValue()voidsetValue(float value)Methods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.diozero.internal.spi.AnalogOutputDeviceInterface
close, getModeMethods inherited from interface com.diozero.api.DeviceInterface
getKey, isOpen
-
Constructor Details
-
RemoteAnalogOutputDevice
public RemoteAnalogOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue)
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()- Specified by:
getAdcNumberin interfaceAnalogOutputDeviceInterface
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-