Package edu.wpi.first.hal
Class I2CJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.I2CJNI
public class I2CJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description I2CJNI()
-
Method Summary
Modifier and Type Method Description static void
i2CClose(int port)
static void
i2CInitialize(int port)
static int
i2CRead(int port, byte address, ByteBuffer dataReceived, byte receiveSize)
static int
i2CReadB(int port, byte address, byte[] dataReceived, byte receiveSize)
static int
i2CTransaction(int port, byte address, ByteBuffer dataToSend, byte sendSize, ByteBuffer dataReceived, byte receiveSize)
static int
i2CTransactionB(int port, byte address, byte[] dataToSend, byte sendSize, byte[] dataReceived, byte receiveSize)
static int
i2CWrite(int port, byte address, ByteBuffer dataToSend, byte sendSize)
static int
i2CWriteB(int port, byte address, byte[] dataToSend, byte sendSize)
-
Constructor Details
-
Method Details
-
i2CInitialize
-
i2CTransaction
public static int i2CTransaction(int port, byte address, ByteBuffer dataToSend, byte sendSize, ByteBuffer dataReceived, byte receiveSize) -
i2CTransactionB
public static int i2CTransactionB(int port, byte address, byte[] dataToSend, byte sendSize, byte[] dataReceived, byte receiveSize) -
i2CWrite
-
i2CWriteB
-
i2CRead
-
i2CReadB
-
i2CClose
-