public class I2cConnection extends BusConnection
| Constructor and Description |
|---|
I2cConnection(I2cBus bus,
int address) |
| Modifier and Type | Method and Description |
|---|---|
I2cBus |
getBus() |
byte |
readByteFromRegister(int register) |
int |
readBytesFromRegister(int register,
byte[] buffer) |
void |
writeBytesToRegister(int register,
byte[] data) |
void |
writeByteToRegister(int register,
int data) |
acquireBus, getAddress, getInputStream, getOutputStream, readByte, readBytes, readString, writeByte, writeBytes, writeStringpublic I2cConnection(I2cBus bus, int address)
public byte readByteFromRegister(int register)
throws IOException
IOExceptionpublic int readBytesFromRegister(int register,
byte[] buffer)
throws IOException
IOExceptionpublic void writeByteToRegister(int register,
int data)
throws IOException
IOExceptionpublic void writeBytesToRegister(int register,
byte[] data)
throws IOException
IOExceptionpublic I2cBus getBus()
getBus in class BusConnectionCopyright © 2015 silverspoon.io. All rights reserved.