Package com.diozero.internal.provider
Interface I2CDeviceFactoryInterface
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,DeviceFactoryInterface
- All Known Subinterfaces:
NativeDeviceFactoryInterface
- All Known Implementing Classes:
BaseNativeDeviceFactory
,SysFsDeviceFactory
public interface I2CDeviceFactoryInterface extends DeviceFactoryInterface
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
I2C_PREFIX
-
Method Summary
Modifier and Type Method Description I2CDeviceInterface
createI2CDevice(java.lang.String key, int controller, int address, int addressSize, int clockFrequency)
static java.lang.String
createI2CKey(java.lang.String keyPrefix, int controller, int address)
default I2CDeviceInterface
provisionI2CDevice(int controller, int address, int addressSize, int clockFrequency)
Methods inherited from interface com.diozero.internal.provider.DeviceFactoryInterface
close, createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getDevice, getName, isClosed, isDeviceOpened
-
Field Details
-
I2C_PREFIX
static final java.lang.String I2C_PREFIX- See Also:
- Constant Field Values
-
-
Method Details
-
provisionI2CDevice
default I2CDeviceInterface provisionI2CDevice(int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException- Throws:
RuntimeIOException
-
createI2CDevice
I2CDeviceInterface createI2CDevice(java.lang.String key, int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException- Throws:
RuntimeIOException
-
createI2CKey
static java.lang.String createI2CKey(java.lang.String keyPrefix, int controller, int address)
-