Class RemotePwmOutputDevice
java.lang.Object
com.diozero.internal.provider.AbstractDevice
com.diozero.internal.provider.remote.devicefactory.RemotePwmOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,PwmOutputDeviceInterface,Closeable,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()intgetPwmNum()floatgetValue()voidsetValue(float value)Methods inherited from class com.diozero.internal.provider.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.internal.provider.DeviceInterface
close, getKey, isOpenMethods inherited from interface com.diozero.internal.provider.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
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-