jBotBrain.hw
Class I2CPort

java.lang.Object
  extended by jBotBrain.hw.I2CPort

public class I2CPort
extends Object

Low level I2C functions. Direct access to I2C hardware.

Author:
Martin Wolf

Field Summary
static int I2C_READ
           
static int I2C_WRITE
           
 
Constructor Summary
I2CPort()
           
 
Method Summary
static int i2cBusy()
          Low-level method to test if I2C connection is busy.
static void i2cDisable()
          Low-level method to disable I2C on the port.
static void i2cEnable()
          Low-level method to enable I2C on the port.
static int i2cStart(int address, int internalAddress, int numInternalBytes, byte[] buffer, int numBytes, int transferType)
          Low-level method to start an I2C transaction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

I2C_WRITE

public static final int I2C_WRITE
See Also:
Constant Field Values

I2C_READ

public static final int I2C_READ
See Also:
Constant Field Values
Constructor Detail

I2CPort

public I2CPort()
Method Detail

i2cEnable

public static void i2cEnable()
Low-level method to enable I2C on the port.


i2cDisable

public static void i2cDisable()
Low-level method to disable I2C on the port.


i2cBusy

public static int i2cBusy()
Low-level method to test if I2C connection is busy.


i2cStart

public static int i2cStart(int address,
                           int internalAddress,
                           int numInternalBytes,
                           byte[] buffer,
                           int numBytes,
                           int transferType)
Low-level method to start an I2C transaction.