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 CTREPCMDataJNI 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 registerSolenoidOutputCallback(
020      int index, int channel, NotifyCallback callback, boolean initialNotify);
021
022  public static native void cancelSolenoidOutputCallback(int index, int channel, int uid);
023
024  public static native boolean getSolenoidOutput(int index, int channel);
025
026  public static native void setSolenoidOutput(int index, int channel, boolean solenoidOutput);
027
028  public static native int registerCompressorOnCallback(
029      int index, NotifyCallback callback, boolean initialNotify);
030
031  public static native void cancelCompressorOnCallback(int index, int uid);
032
033  public static native boolean getCompressorOn(int index);
034
035  public static native void setCompressorOn(int index, boolean compressorOn);
036
037  public static native int registerClosedLoopEnabledCallback(
038      int index, NotifyCallback callback, boolean initialNotify);
039
040  public static native void cancelClosedLoopEnabledCallback(int index, int uid);
041
042  public static native boolean getClosedLoopEnabled(int index);
043
044  public static native void setClosedLoopEnabled(int index, boolean closeLoopEnabled);
045
046  public static native int registerPressureSwitchCallback(
047      int index, NotifyCallback callback, boolean initialNotify);
048
049  public static native void cancelPressureSwitchCallback(int index, int uid);
050
051  public static native boolean getPressureSwitch(int index);
052
053  public static native void setPressureSwitch(int index, boolean pressureSwitch);
054
055  public static native int registerCompressorCurrentCallback(
056      int index, NotifyCallback callback, boolean initialNotify);
057
058  public static native void cancelCompressorCurrentCallback(int index, int uid);
059
060  public static native double getCompressorCurrent(int index);
061
062  public static native void setCompressorCurrent(int index, double compressorCurrent);
063
064  public static native void registerAllNonSolenoidCallbacks(
065      int index, NotifyCallback callback, boolean initialNotify);
066
067  public static native void registerAllSolenoidCallbacks(
068      int index, int channel, NotifyCallback callback, boolean initialNotify);
069
070  public static native void resetData(int index);
071}