public interface I2CDeviceInterface extends DeviceInterface
Modifier and Type | Method and Description |
---|---|
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
byte readByte() throws RuntimeException
RuntimeException
void writeByte(byte b) throws RuntimeException
RuntimeException
void read(ByteBuffer buffer) throws RuntimeException
RuntimeException
void write(ByteBuffer buffer) throws RuntimeException
RuntimeException
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–2017 mattjlewis. All rights reserved.