Module diozero.provider.remote
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
ConstructorsConstructorDescriptionGrpcClientAnalogOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, float 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.internal.spi.AnalogOutputDeviceInterface
getModeMethods inherited from interface com.diozero.api.DeviceInterface
closeMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
Constructor Details
-
GrpcClientAnalogOutputDevice
public GrpcClientAnalogOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, float initialValue)
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceAnalogDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceAnalogOutputDeviceInterface- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()- Specified by:
getAdcNumberin interfaceAnalogDeviceInterface
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-