Package com.diozero.internal.provider
Interface I2CDeviceInterface
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,DeviceInterface
- All Known Implementing Classes:
SysFsI2CDevice
public interface I2CDeviceInterface extends DeviceInterface
-
Method Summary
Modifier and Type Method Description boolean
probe(I2CDevice.ProbeMode mode)
void
read(java.nio.ByteBuffer buffer)
byte
readByte()
byte
readByteData(int register)
void
readI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer)
void
write(java.nio.ByteBuffer buffer)
void
writeByte(byte b)
void
writeByteData(int register, byte b)
void
writeI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer)
Methods inherited from interface com.diozero.internal.provider.DeviceInterface
close, getKey, isOpen
-
Method Details
-
probe
- Throws:
RuntimeIOException
-
readByte
- Throws:
RuntimeIOException
-
writeByte
- Throws:
RuntimeIOException
-
read
- Throws:
RuntimeIOException
-
write
- Throws:
RuntimeIOException
-
readByteData
- Throws:
RuntimeIOException
-
writeByteData
- Throws:
RuntimeIOException
-
readI2CBlockData
void readI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer) throws RuntimeIOException- Throws:
RuntimeIOException
-
writeI2CBlockData
void writeI2CBlockData(int register, int subAddressSize, java.nio.ByteBuffer buffer) throws RuntimeIOException- Throws:
RuntimeIOException
-