public class RemoteI2CDevice
extends com.diozero.internal.provider.AbstractDevice
implements com.diozero.internal.provider.I2CDeviceInterface
| Constructor and Description |
|---|
RemoteI2CDevice(RemoteDeviceFactory deviceFactory,
String key,
int controller,
int address,
int addressSize,
int clockFrequency) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeDevice() |
boolean |
probe(com.diozero.api.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, getDeviceFactory, getKey, isOpenpublic RemoteI2CDevice(RemoteDeviceFactory deviceFactory, String key, int controller, int address, int addressSize, int clockFrequency)
public boolean probe(com.diozero.api.I2CDevice.ProbeMode mode)
throws com.diozero.util.RuntimeIOException
probe in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic byte readByte()
throws com.diozero.util.RuntimeIOException
readByte in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void writeByte(byte b)
throws com.diozero.util.RuntimeIOException
writeByte in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void read(ByteBuffer buffer) throws com.diozero.util.RuntimeIOException
read in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void write(ByteBuffer buffer) throws com.diozero.util.RuntimeIOException
write in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic byte readByteData(int register)
throws com.diozero.util.RuntimeIOException
readByteData in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void writeByteData(int register,
byte b)
throws com.diozero.util.RuntimeIOException
writeByteData in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void readI2CBlockData(int register,
int subAddressSize,
ByteBuffer buffer)
throws com.diozero.util.RuntimeIOException
readI2CBlockData in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionpublic void writeI2CBlockData(int register,
int subAddressSize,
ByteBuffer buffer)
throws com.diozero.util.RuntimeIOException
writeI2CBlockData in interface com.diozero.internal.provider.I2CDeviceInterfacecom.diozero.util.RuntimeIOExceptionprotected void closeDevice()
throws com.diozero.util.RuntimeIOException
closeDevice in class com.diozero.internal.provider.AbstractDevicecom.diozero.util.RuntimeIOExceptionCopyright © 2016–2018 mattjlewis. All rights reserved.