Class GrpcClientAnalogOutputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.internal.provider.remote.grpc.GrpcClientAnalogOutputDevice
-
- All Implemented Interfaces:
DeviceInterface,AnalogDeviceInterface,AnalogOutputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class GrpcClientAnalogOutputDevice extends AbstractDevice implements AnalogOutputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description GrpcClientAnalogOutputDevice(GrpcClientDeviceFactory 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
-
GrpcClientAnalogOutputDevice
public GrpcClientAnalogOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue)
-
-
Method Detail
-
getValue
public float getValue() throws RuntimeIOException- Specified by:
getValuein interfaceAnalogDeviceInterface- Throws:
RuntimeIOException
-
setValue
public void setValue(float value) throws RuntimeIOException- Specified by:
setValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()
- Specified by:
getAdcNumberin interfaceAnalogDeviceInterface
-
closeDevice
protected void closeDevice() throws RuntimeIOException- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-
-