public interface I2CDeviceInterface extends DeviceInterface
Modifier and Type | Method and Description |
---|---|
boolean |
probe(I2CDevice.ProbeMode mode) |
void |
read(ByteBuffer buffer) |
byte |
readByte() |
byte |
readByteData(int register) |
void |
readI2CBlockData(int register,
int subAddressSize,
ByteBuffer buffer) |
void |
write(ByteBuffer buffer) |
void |
writeByte(byte b) |
void |
writeByteData(int register,
byte b) |
void |
writeI2CBlockData(int register,
int subAddressSize,
ByteBuffer buffer) |
close, getKey, isOpen
boolean probe(I2CDevice.ProbeMode mode) throws RuntimeIOException
RuntimeIOException
byte readByte() throws RuntimeIOException
RuntimeIOException
void writeByte(byte b) throws RuntimeIOException
RuntimeIOException
void read(ByteBuffer buffer) throws RuntimeIOException
RuntimeIOException
void write(ByteBuffer buffer) throws RuntimeIOException
RuntimeIOException
byte readByteData(int register) throws RuntimeIOException
RuntimeIOException
void writeByteData(int register, byte b) throws RuntimeIOException
RuntimeIOException
void readI2CBlockData(int register, int subAddressSize, ByteBuffer buffer) throws RuntimeIOException
RuntimeIOException
void writeI2CBlockData(int register, int subAddressSize, ByteBuffer buffer) throws RuntimeIOException
RuntimeIOException
Copyright © 2016–2018 mattjlewis. All rights reserved.