001package edu.wpi.first.wpilibj.hal;
002
003import java.nio.ByteBuffer;
004import java.nio.IntBuffer;
005
006public class I2CJNI extends JNIWrapper {
007        public static native void i2CInitialize(byte port, IntBuffer status);
008        public static native byte i2CTransaction(byte port, byte address, ByteBuffer dataToSend, byte sendSize, ByteBuffer dataReceived, byte receiveSize);
009        public static native byte i2CWrite(byte port, byte address, ByteBuffer dataToSend, byte sendSize);
010        public static native byte i2CRead(byte port, byte address, ByteBuffer dataRecieved, byte receiveSize);
011        public static native void i2CClose(byte port);
012}