Class RemotePwmOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.provider.remote.devicefactory.RemotePwmOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,InternalDeviceInterface,PwmOutputDeviceInterface,AutoCloseable
public class RemotePwmOutputDevice extends AbstractDevice implements PwmOutputDeviceInterface
-
Constructor Summary
Constructors Constructor Description RemotePwmOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, int frequency, float initialValue) -
Method Summary
Modifier and Type Method Description protected voidcloseDevice()intgetGpio()intgetPwmFrequency()intgetPwmNum()floatgetValue()voidsetPwmFrequency(int frequencyHz)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.api.DeviceInterface
closeMethods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpenMethods inherited from interface com.diozero.internal.spi.PwmOutputDeviceInterface
getMode
-
Constructor Details
-
RemotePwmOutputDevice
public RemotePwmOutputDevice(RemoteDeviceFactory 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 interfacePwmOutputDeviceInterface
-
getValue
- Specified by:
getValuein interfacePwmOutputDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfacePwmOutputDeviceInterface- Throws:
RuntimeIOException
-
getPwmFrequency
public int getPwmFrequency()- Specified by:
getPwmFrequencyin interfacePwmOutputDeviceInterface
-
setPwmFrequency
- Specified by:
setPwmFrequencyin interfacePwmOutputDeviceInterface- Throws:
RuntimeIOException
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-