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