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 RoboRioDataJNI extends JNIWrapper {
010  @SuppressWarnings("AbbreviationAsWordInName")
011  public static native int registerFPGAButtonCallback(
012      NotifyCallback callback, boolean initialNotify);
013
014  @SuppressWarnings("AbbreviationAsWordInName")
015  public static native void cancelFPGAButtonCallback(int uid);
016
017  @SuppressWarnings("AbbreviationAsWordInName")
018  public static native boolean getFPGAButton();
019
020  @SuppressWarnings("AbbreviationAsWordInName")
021  public static native void setFPGAButton(boolean fPGAButton);
022
023  public static native int registerVInVoltageCallback(
024      NotifyCallback callback, boolean initialNotify);
025
026  public static native void cancelVInVoltageCallback(int uid);
027
028  public static native double getVInVoltage();
029
030  public static native void setVInVoltage(double vInVoltage);
031
032  public static native int registerVInCurrentCallback(
033      NotifyCallback callback, boolean initialNotify);
034
035  public static native void cancelVInCurrentCallback(int uid);
036
037  public static native double getVInCurrent();
038
039  public static native void setVInCurrent(double vInCurrent);
040
041  public static native int registerUserVoltage6VCallback(
042      NotifyCallback callback, boolean initialNotify);
043
044  public static native void cancelUserVoltage6VCallback(int uid);
045
046  public static native double getUserVoltage6V();
047
048  public static native void setUserVoltage6V(double userVoltage6V);
049
050  public static native int registerUserCurrent6VCallback(
051      NotifyCallback callback, boolean initialNotify);
052
053  public static native void cancelUserCurrent6VCallback(int uid);
054
055  public static native double getUserCurrent6V();
056
057  public static native void setUserCurrent6V(double userCurrent6V);
058
059  public static native int registerUserActive6VCallback(
060      NotifyCallback callback, boolean initialNotify);
061
062  public static native void cancelUserActive6VCallback(int uid);
063
064  public static native boolean getUserActive6V();
065
066  public static native void setUserActive6V(boolean userActive6V);
067
068  public static native int registerUserVoltage5VCallback(
069      NotifyCallback callback, boolean initialNotify);
070
071  public static native void cancelUserVoltage5VCallback(int uid);
072
073  public static native double getUserVoltage5V();
074
075  public static native void setUserVoltage5V(double userVoltage5V);
076
077  public static native int registerUserCurrent5VCallback(
078      NotifyCallback callback, boolean initialNotify);
079
080  public static native void cancelUserCurrent5VCallback(int uid);
081
082  public static native double getUserCurrent5V();
083
084  public static native void setUserCurrent5V(double userCurrent5V);
085
086  public static native int registerUserActive5VCallback(
087      NotifyCallback callback, boolean initialNotify);
088
089  public static native void cancelUserActive5VCallback(int uid);
090
091  public static native boolean getUserActive5V();
092
093  public static native void setUserActive5V(boolean userActive5V);
094
095  public static native int registerUserVoltage3V3Callback(
096      NotifyCallback callback, boolean initialNotify);
097
098  public static native void cancelUserVoltage3V3Callback(int uid);
099
100  public static native double getUserVoltage3V3();
101
102  public static native void setUserVoltage3V3(double userVoltage3V3);
103
104  public static native int registerUserCurrent3V3Callback(
105      NotifyCallback callback, boolean initialNotify);
106
107  public static native void cancelUserCurrent3V3Callback(int uid);
108
109  public static native double getUserCurrent3V3();
110
111  public static native void setUserCurrent3V3(double userCurrent3V3);
112
113  public static native int registerUserActive3V3Callback(
114      NotifyCallback callback, boolean initialNotify);
115
116  public static native void cancelUserActive3V3Callback(int uid);
117
118  public static native boolean getUserActive3V3();
119
120  public static native void setUserActive3V3(boolean userActive3V3);
121
122  public static native int registerUserFaults6VCallback(
123      NotifyCallback callback, boolean initialNotify);
124
125  public static native void cancelUserFaults6VCallback(int uid);
126
127  public static native int getUserFaults6V();
128
129  public static native void setUserFaults6V(int userFaults6V);
130
131  public static native int registerUserFaults5VCallback(
132      NotifyCallback callback, boolean initialNotify);
133
134  public static native void cancelUserFaults5VCallback(int uid);
135
136  public static native int getUserFaults5V();
137
138  public static native void setUserFaults5V(int userFaults5V);
139
140  public static native int registerUserFaults3V3Callback(
141      NotifyCallback callback, boolean initialNotify);
142
143  public static native void cancelUserFaults3V3Callback(int uid);
144
145  public static native int getUserFaults3V3();
146
147  public static native void setUserFaults3V3(int userFaults3V3);
148
149  public static native int registerBrownoutVoltageCallback(
150      NotifyCallback callback, boolean initialNotify);
151
152  public static native void cancelBrownoutVoltageCallback(int uid);
153
154  public static native double getBrownoutVoltage();
155
156  public static native void setBrownoutVoltage(double brownoutVoltage);
157
158  public static native void resetData();
159}