Package com.diozero.internal.spi
Interface I2CDeviceFactoryInterface
-
- All Superinterfaces:
AutoCloseable
,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
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InternalI2CDeviceInterface
createI2CDevice(String key, int controller, int address, I2CConstants.AddressSize addressSize)
static String
createI2CKey(String keyPrefix, int controller, int address)
default List<Integer>
getI2CBusNumbers()
default int
getI2CFunctionalities(int controller)
default InternalI2CDeviceInterface
provisionI2CDevice(int controller, int address, I2CConstants.AddressSize addressSize)
-
Methods inherited from interface com.diozero.internal.spi.DeviceFactoryInterface
close, createI2CKey, createPinKey, createPwmPinKey, createSerialKey, createServoPinKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getName, isClosed, isDeviceOpened, reopen, start
-
-
-
-
Field Detail
-
I2C_PREFIX
static final String I2C_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
provisionI2CDevice
default InternalI2CDeviceInterface provisionI2CDevice(int controller, int address, I2CConstants.AddressSize addressSize) throws RuntimeIOException
- Throws:
RuntimeIOException
-
createI2CDevice
InternalI2CDeviceInterface createI2CDevice(String key, int controller, int address, I2CConstants.AddressSize addressSize) throws RuntimeIOException
- Throws:
RuntimeIOException
-
getI2CFunctionalities
default int getI2CFunctionalities(int controller)
-
-