001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.hal.simulation;
006
007import edu.wpi.first.hal.JNIWrapper;
008
009public class I2CDataJNI extends JNIWrapper {
010  public static native int registerInitializedCallback(
011      int index, NotifyCallback callback, boolean initialNotify);
012
013  public static native void cancelInitializedCallback(int index, int uid);
014
015  public static native boolean getInitialized(int index);
016
017  public static native void setInitialized(int index, boolean initialized);
018
019  public static native int registerReadCallback(int index, BufferCallback callback);
020
021  public static native void cancelReadCallback(int index, int uid);
022
023  public static native int registerWriteCallback(int index, ConstBufferCallback callback);
024
025  public static native void cancelWriteCallback(int index, int uid);
026
027  public static native void resetData(int index);
028}