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 RelayDataJNI extends JNIWrapper {
010  public static native int registerInitializedForwardCallback(
011      int index, NotifyCallback callback, boolean initialNotify);
012
013  public static native void cancelInitializedForwardCallback(int index, int uid);
014
015  public static native boolean getInitializedForward(int index);
016
017  public static native void setInitializedForward(int index, boolean initializedForward);
018
019  public static native int registerInitializedReverseCallback(
020      int index, NotifyCallback callback, boolean initialNotify);
021
022  public static native void cancelInitializedReverseCallback(int index, int uid);
023
024  public static native boolean getInitializedReverse(int index);
025
026  public static native void setInitializedReverse(int index, boolean initializedReverse);
027
028  public static native int registerForwardCallback(
029      int index, NotifyCallback callback, boolean initialNotify);
030
031  public static native void cancelForwardCallback(int index, int uid);
032
033  public static native boolean getForward(int index);
034
035  public static native void setForward(int index, boolean forward);
036
037  public static native int registerReverseCallback(
038      int index, NotifyCallback callback, boolean initialNotify);
039
040  public static native void cancelReverseCallback(int index, int uid);
041
042  public static native boolean getReverse(int index);
043
044  public static native void setReverse(int index, boolean reverse);
045
046  public static native void resetData(int index);
047}