Package com.diozero.internal.spi
Interface PwmOutputDeviceFactoryInterface
-
- All Superinterfaces:
AutoCloseable
,DeviceFactoryInterface
- All Known Subinterfaces:
NativeDeviceFactoryInterface
- All Known Implementing Classes:
BaseNativeDeviceFactory
,DefaultDeviceFactory
,MCP23008
,MCP23017
,MCP23S17
,MCP23x08
,MCP23x17
,MCP23xxx
,PCA9685
,PiconZero
public interface PwmOutputDeviceFactoryInterface extends DeviceFactoryInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PwmOutputDeviceInterface
createPwmOutputDevice(String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
int
getBoardPwmFrequency()
default PwmOutputDeviceInterface
provisionPwmOutputDevice(PinInfo pinInfo, int pwmFrequency, float initialValue)
void
setBoardPwmFrequency(int pwmFrequency)
-
Methods inherited from interface com.diozero.internal.spi.DeviceFactoryInterface
close, createI2CKey, createPinKey, createSerialKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getName, isClosed, isDeviceOpened, reopen, start
-
-
-
-
Method Detail
-
provisionPwmOutputDevice
default PwmOutputDeviceInterface provisionPwmOutputDevice(PinInfo pinInfo, int pwmFrequency, float initialValue) throws RuntimeIOException
- Throws:
RuntimeIOException
-
getBoardPwmFrequency
int getBoardPwmFrequency()
-
setBoardPwmFrequency
void setBoardPwmFrequency(int pwmFrequency)
-
createPwmOutputDevice
PwmOutputDeviceInterface createPwmOutputDevice(String key, PinInfo pinInfo, int pwmFrequency, float initialValue)
-
-