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 AnalogInDataJNI 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 registerAverageBitsCallback(
020      int index, NotifyCallback callback, boolean initialNotify);
021
022  public static native void cancelAverageBitsCallback(int index, int uid);
023
024  public static native int getAverageBits(int index);
025
026  public static native void setAverageBits(int index, int averageBits);
027
028  public static native int registerOversampleBitsCallback(
029      int index, NotifyCallback callback, boolean initialNotify);
030
031  public static native void cancelOversampleBitsCallback(int index, int uid);
032
033  public static native int getOversampleBits(int index);
034
035  public static native void setOversampleBits(int index, int oversampleBits);
036
037  public static native int registerVoltageCallback(
038      int index, NotifyCallback callback, boolean initialNotify);
039
040  public static native void cancelVoltageCallback(int index, int uid);
041
042  public static native double getVoltage(int index);
043
044  public static native void setVoltage(int index, double voltage);
045
046  public static native int registerAccumulatorInitializedCallback(
047      int index, NotifyCallback callback, boolean initialNotify);
048
049  public static native void cancelAccumulatorInitializedCallback(int index, int uid);
050
051  public static native boolean getAccumulatorInitialized(int index);
052
053  public static native void setAccumulatorInitialized(int index, boolean accumulatorInitialized);
054
055  public static native int registerAccumulatorValueCallback(
056      int index, NotifyCallback callback, boolean initialNotify);
057
058  public static native void cancelAccumulatorValueCallback(int index, int uid);
059
060  public static native long getAccumulatorValue(int index);
061
062  public static native void setAccumulatorValue(int index, long accumulatorValue);
063
064  public static native int registerAccumulatorCountCallback(
065      int index, NotifyCallback callback, boolean initialNotify);
066
067  public static native void cancelAccumulatorCountCallback(int index, int uid);
068
069  public static native long getAccumulatorCount(int index);
070
071  public static native void setAccumulatorCount(int index, long accumulatorCount);
072
073  public static native int registerAccumulatorCenterCallback(
074      int index, NotifyCallback callback, boolean initialNotify);
075
076  public static native void cancelAccumulatorCenterCallback(int index, int uid);
077
078  public static native int getAccumulatorCenter(int index);
079
080  public static native void setAccumulatorCenter(int index, int AccumulatorCenter);
081
082  public static native int registerAccumulatorDeadbandCallback(
083      int index, NotifyCallback callback, boolean initialNotify);
084
085  public static native void cancelAccumulatorDeadbandCallback(int index, int uid);
086
087  public static native int getAccumulatorDeadband(int index);
088
089  public static native void setAccumulatorDeadband(int index, int AccumulatorDeadband);
090
091  public static native void resetData(int index);
092}