|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcbox.hw.I2CPort
public class I2CPort
Low level I2C functions. Direct access to I2C hardware.
| Field Summary | |
|---|---|
static int |
I2C_READ
|
static int |
I2C_WRITE
|
| Constructor Summary | |
|---|---|
I2CPort()
|
|
| Method Summary | |
|---|---|
int |
i2cBusy()
Low-level method to test if I2C connection is busy. |
static int |
i2cBusyById(int aPortId)
Low-level method to test if I2C connection is busy. |
void |
i2cDisable()
Low-level method to disable I2C on the port. |
static void |
i2cDisableById(int aPortId)
Low-level method to disable I2C on the port. |
void |
i2cEnable()
Low-level method to enable I2C on the port. |
static void |
i2cEnableById(int aPortId)
Low-level method to enable I2C on the port. |
int |
i2cStart(int address,
int internalAddress,
int numInternalBytes,
byte[] buffer,
int numBytes,
int transferType)
Low-level method to start an I2C transaction. |
static int |
i2cStartById(int aPortId,
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 |
|---|
public static final int I2C_WRITE
public static final int I2C_READ
| Constructor Detail |
|---|
public I2CPort()
| Method Detail |
|---|
public static void i2cEnableById(int aPortId)
public static void i2cDisableById(int aPortId)
public static int i2cBusyById(int aPortId)
public static int i2cStartById(int aPortId,
int address,
int internalAddress,
int numInternalBytes,
byte[] buffer,
int numBytes,
int transferType)
public void i2cEnable()
public void i2cDisable()
public int i2cBusy()
public int i2cStart(int address,
int internalAddress,
int numInternalBytes,
byte[] buffer,
int numBytes,
int transferType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||