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
-
Nested classes/interfaces inherited from class edu.wpi.first.hal.JNIWrapper
JNIWrapper.Helper
-
-
Constructor Summary
Constructors Constructor Description I2CJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidi2CClose(int port)static voidi2CInitialize(int port)static inti2CRead(int port, byte address, ByteBuffer dataReceived, byte receiveSize)static inti2CReadB(int port, byte address, byte[] dataReceived, byte receiveSize)static inti2CTransaction(int port, byte address, ByteBuffer dataToSend, byte sendSize, ByteBuffer dataReceived, byte receiveSize)static inti2CTransactionB(int port, byte address, byte[] dataToSend, byte sendSize, byte[] dataReceived, byte receiveSize)static inti2CWrite(int port, byte address, ByteBuffer dataToSend, byte sendSize)static inti2CWriteB(int port, byte address, byte[] dataToSend, byte sendSize)-
Methods inherited from class edu.wpi.first.hal.JNIWrapper
forceLoad
-
-
-
-
Method Detail
-
i2CInitialize
public static void i2CInitialize(int port)
-
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
public static int i2CWrite(int port, byte address, ByteBuffer dataToSend, byte sendSize)
-
i2CWriteB
public static int i2CWriteB(int port, byte address, byte[] dataToSend, byte sendSize)
-
i2CRead
public static int i2CRead(int port, byte address, ByteBuffer dataReceived, byte receiveSize)
-
i2CReadB
public static int i2CReadB(int port, byte address, byte[] dataReceived, byte receiveSize)
-
i2CClose
public static void i2CClose(int port)
-
-