Module diozero.provider.remote
Class GrpcClientAnalogInputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.spi.AbstractInputDevice<AnalogInputEvent>
com.diozero.internal.provider.remote.grpc.GrpcClientAnalogInputDevice
- All Implemented Interfaces:
DeviceInterface,AnalogDeviceInterface,AnalogInputDeviceInterface,InternalDeviceInterface,AutoCloseable
public class GrpcClientAnalogInputDevice
extends AbstractInputDevice<AnalogInputEvent>
implements AnalogInputDeviceInterface
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcClientAnalogInputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo) -
Method Summary
Methods inherited from class com.diozero.internal.spi.AbstractInputDevice
accept, disableListener, enableListener, isListenerEnabled, removeListener, setListenerMethods 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.AnalogInputDeviceInterface
getMode, removeListener, setListenerMethods inherited from interface com.diozero.api.DeviceInterface
closeMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChild
-
Constructor Details
-
GrpcClientAnalogInputDevice
public GrpcClientAnalogInputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo)
-
-
Method Details
-
generatesEvents
public boolean generatesEvents()- Specified by:
generatesEventsin interfaceAnalogInputDeviceInterface- Overrides:
generatesEventsin classAbstractInputDevice<AnalogInputEvent>
-
getValue
- Specified by:
getValuein interfaceAnalogDeviceInterface- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()- Specified by:
getAdcNumberin interfaceAnalogDeviceInterface
-
closeDevice
- Overrides:
closeDevicein classAbstractInputDevice<AnalogInputEvent>- Throws:
RuntimeIOException
-