Module diozero.provider.remote
Class GrpcClientPwmOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.provider.remote.grpc.GrpcClientPwmOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,InternalDeviceInterface,InternalPwmOutputDeviceInterface,AutoCloseable
public class GrpcClientPwmOutputDevice
extends AbstractDevice
implements InternalPwmOutputDeviceInterface
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcClientPwmOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, int frequency, float initialValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetGpio()intintfloatgetValue()voidsetPwmFrequency(int frequencyHz) voidsetValue(float value) 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.api.DeviceInterface
closeMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isChild, isOpen, setChildMethods inherited from interface com.diozero.internal.spi.InternalPwmOutputDeviceInterface
getMode
-
Constructor Details
-
GrpcClientPwmOutputDevice
public GrpcClientPwmOutputDevice(GrpcClientDeviceFactory deviceFactory, String key, PinInfo pinInfo, int frequency, float initialValue)
-
-
Method Details
-
getGpio
public int getGpio()- Specified by:
getGpioin interfaceGpioDeviceInterface
-
getPwmNum
public int getPwmNum()- Specified by:
getPwmNumin interfaceInternalPwmOutputDeviceInterface
-
getValue
- Specified by:
getValuein interfaceInternalPwmOutputDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceInternalPwmOutputDeviceInterface- Throws:
RuntimeIOException
-
getPwmFrequency
public int getPwmFrequency()- Specified by:
getPwmFrequencyin interfaceInternalPwmOutputDeviceInterface
-
setPwmFrequency
- Specified by:
setPwmFrequencyin interfaceInternalPwmOutputDeviceInterface- Throws:
RuntimeIOException
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-