Package com.diozero.internal.provider
Interface DeviceFactoryInterface
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Subinterfaces:
AnalogInputDeviceFactoryInterface
,AnalogOutputDeviceFactoryInterface
,GpioDeviceFactoryInterface
,I2CDeviceFactoryInterface
,NativeDeviceFactoryInterface
,PwmOutputDeviceFactoryInterface
,SpiDeviceFactoryInterface
- All Known Implementing Classes:
AbstractDeviceFactory
,BaseNativeDeviceFactory
,MCP23008
,MCP23017
,MCP23S17
,MCP23x08
,MCP23x17
,MCP23xxx
,McpAdc
,PCA9685
,PCF8574
,PCF8591
,PiconZero
,SysFsDeviceFactory
public interface DeviceFactoryInterface
extends java.io.Closeable
-
Method Summary
Modifier and Type Method Description void
close()
java.lang.String
createI2CKey(int controller, int address)
java.lang.String
createPinKey(PinInfo pinInfo)
java.lang.String
createSpiKey(int controller, int chipSelect)
void
deviceClosed(DeviceInterface device)
void
deviceOpened(DeviceInterface device)
BoardPinInfo
getBoardPinInfo()
DeviceInterface
getDevice(java.lang.String key)
<T extends DeviceInterface>
TgetDevice(java.lang.String key, java.lang.Class<T> deviceClass)
java.lang.String
getName()
boolean
isClosed()
boolean
isDeviceOpened(java.lang.String key)
-
Method Details
-
getName
java.lang.String getName() -
isDeviceOpened
boolean isDeviceOpened(java.lang.String key) -
deviceOpened
-
deviceClosed
-
getBoardPinInfo
BoardPinInfo getBoardPinInfo() -
createPinKey
-
createI2CKey
java.lang.String createI2CKey(int controller, int address) -
createSpiKey
java.lang.String createSpiKey(int controller, int chipSelect) -
close
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
RuntimeIOException
-
isClosed
boolean isClosed() -
getDevice
-
getDevice
-