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 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)
-
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
-