Package lejos.remote.ev3
Interface RMII2CPort
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
RMIRemoteI2CPort
public interface RMII2CPort extends java.rmi.Remote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()byte[]i2cTransaction(int deviceAddress, byte[] writeBuf, int writeOffset, int writeLen, int readLen)High level i2c interface.booleansetType(int type)
-
-
-
Method Detail
-
i2cTransaction
byte[] i2cTransaction(int deviceAddress, byte[] writeBuf, int writeOffset, int writeLen, int readLen) throws java.rmi.RemoteExceptionHigh level i2c interface. Perform a complete i2c transaction and return the results. Writes the specified data to the device and then reads the requested bytes from it.- Parameters:
deviceAddress- The I2C device address.writeBuf- The buffer containing data to be written to the device.writeOffset- The offset of the data within the write bufferwriteLen- The number of bytes to write.readLen- The length of the read- Returns:
- < 0 error otherwise the number of bytes read
- Throws:
java.rmi.RemoteException
-
close
void close() throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
setType
boolean setType(int type) throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
-