WPILibC++  2018.4.1-20180926150325-1206-g8b1274d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
RoboRioData.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #ifndef __FRC_ROBORIO__
11 
12 #include "NotifyListener.h"
13 #include "hal/HAL.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void HALSIM_ResetRoboRioData(int32_t index);
20 int32_t HALSIM_RegisterRoboRioFPGAButtonCallback(int32_t index,
21  HAL_NotifyCallback callback,
22  void* param,
23  HAL_Bool initialNotify);
24 void HALSIM_CancelRoboRioFPGAButtonCallback(int32_t index, int32_t uid);
25 HAL_Bool HALSIM_GetRoboRioFPGAButton(int32_t index);
26 void HALSIM_SetRoboRioFPGAButton(int32_t index, HAL_Bool fPGAButton);
27 
28 int32_t HALSIM_RegisterRoboRioVInVoltageCallback(int32_t index,
29  HAL_NotifyCallback callback,
30  void* param,
31  HAL_Bool initialNotify);
32 void HALSIM_CancelRoboRioVInVoltageCallback(int32_t index, int32_t uid);
33 double HALSIM_GetRoboRioVInVoltage(int32_t index);
34 void HALSIM_SetRoboRioVInVoltage(int32_t index, double vInVoltage);
35 
36 int32_t HALSIM_RegisterRoboRioVInCurrentCallback(int32_t index,
37  HAL_NotifyCallback callback,
38  void* param,
39  HAL_Bool initialNotify);
40 void HALSIM_CancelRoboRioVInCurrentCallback(int32_t index, int32_t uid);
41 double HALSIM_GetRoboRioVInCurrent(int32_t index);
42 void HALSIM_SetRoboRioVInCurrent(int32_t index, double vInCurrent);
43 
44 int32_t HALSIM_RegisterRoboRioUserVoltage6VCallback(int32_t index,
45  HAL_NotifyCallback callback,
46  void* param,
47  HAL_Bool initialNotify);
48 void HALSIM_CancelRoboRioUserVoltage6VCallback(int32_t index, int32_t uid);
49 double HALSIM_GetRoboRioUserVoltage6V(int32_t index);
50 void HALSIM_SetRoboRioUserVoltage6V(int32_t index, double userVoltage6V);
51 
52 int32_t HALSIM_RegisterRoboRioUserCurrent6VCallback(int32_t index,
53  HAL_NotifyCallback callback,
54  void* param,
55  HAL_Bool initialNotify);
56 void HALSIM_CancelRoboRioUserCurrent6VCallback(int32_t index, int32_t uid);
57 double HALSIM_GetRoboRioUserCurrent6V(int32_t index);
58 void HALSIM_SetRoboRioUserCurrent6V(int32_t index, double userCurrent6V);
59 
60 int32_t HALSIM_RegisterRoboRioUserActive6VCallback(int32_t index,
61  HAL_NotifyCallback callback,
62  void* param,
63  HAL_Bool initialNotify);
64 void HALSIM_CancelRoboRioUserActive6VCallback(int32_t index, int32_t uid);
65 HAL_Bool HALSIM_GetRoboRioUserActive6V(int32_t index);
66 void HALSIM_SetRoboRioUserActive6V(int32_t index, HAL_Bool userActive6V);
67 
68 int32_t HALSIM_RegisterRoboRioUserVoltage5VCallback(int32_t index,
69  HAL_NotifyCallback callback,
70  void* param,
71  HAL_Bool initialNotify);
72 void HALSIM_CancelRoboRioUserVoltage5VCallback(int32_t index, int32_t uid);
73 double HALSIM_GetRoboRioUserVoltage5V(int32_t index);
74 void HALSIM_SetRoboRioUserVoltage5V(int32_t index, double userVoltage5V);
75 
76 int32_t HALSIM_RegisterRoboRioUserCurrent5VCallback(int32_t index,
77  HAL_NotifyCallback callback,
78  void* param,
79  HAL_Bool initialNotify);
80 void HALSIM_CancelRoboRioUserCurrent5VCallback(int32_t index, int32_t uid);
81 double HALSIM_GetRoboRioUserCurrent5V(int32_t index);
82 void HALSIM_SetRoboRioUserCurrent5V(int32_t index, double userCurrent5V);
83 
84 int32_t HALSIM_RegisterRoboRioUserActive5VCallback(int32_t index,
85  HAL_NotifyCallback callback,
86  void* param,
87  HAL_Bool initialNotify);
88 void HALSIM_CancelRoboRioUserActive5VCallback(int32_t index, int32_t uid);
89 HAL_Bool HALSIM_GetRoboRioUserActive5V(int32_t index);
90 void HALSIM_SetRoboRioUserActive5V(int32_t index, HAL_Bool userActive5V);
91 
92 int32_t HALSIM_RegisterRoboRioUserVoltage3V3Callback(
93  int32_t index, HAL_NotifyCallback callback, void* param,
94  HAL_Bool initialNotify);
95 void HALSIM_CancelRoboRioUserVoltage3V3Callback(int32_t index, int32_t uid);
96 double HALSIM_GetRoboRioUserVoltage3V3(int32_t index);
97 void HALSIM_SetRoboRioUserVoltage3V3(int32_t index, double userVoltage3V3);
98 
99 int32_t HALSIM_RegisterRoboRioUserCurrent3V3Callback(
100  int32_t index, HAL_NotifyCallback callback, void* param,
101  HAL_Bool initialNotify);
102 void HALSIM_CancelRoboRioUserCurrent3V3Callback(int32_t index, int32_t uid);
103 double HALSIM_GetRoboRioUserCurrent3V3(int32_t index);
104 void HALSIM_SetRoboRioUserCurrent3V3(int32_t index, double userCurrent3V3);
105 
106 int32_t HALSIM_RegisterRoboRioUserActive3V3Callback(int32_t index,
107  HAL_NotifyCallback callback,
108  void* param,
109  HAL_Bool initialNotify);
110 void HALSIM_CancelRoboRioUserActive3V3Callback(int32_t index, int32_t uid);
111 HAL_Bool HALSIM_GetRoboRioUserActive3V3(int32_t index);
112 void HALSIM_SetRoboRioUserActive3V3(int32_t index, HAL_Bool userActive3V3);
113 
114 int32_t HALSIM_RegisterRoboRioUserFaults6VCallback(int32_t index,
115  HAL_NotifyCallback callback,
116  void* param,
117  HAL_Bool initialNotify);
118 void HALSIM_CancelRoboRioUserFaults6VCallback(int32_t index, int32_t uid);
119 int32_t HALSIM_GetRoboRioUserFaults6V(int32_t index);
120 void HALSIM_SetRoboRioUserFaults6V(int32_t index, int32_t userFaults6V);
121 
122 int32_t HALSIM_RegisterRoboRioUserFaults5VCallback(int32_t index,
123  HAL_NotifyCallback callback,
124  void* param,
125  HAL_Bool initialNotify);
126 void HALSIM_CancelRoboRioUserFaults5VCallback(int32_t index, int32_t uid);
127 int32_t HALSIM_GetRoboRioUserFaults5V(int32_t index);
128 void HALSIM_SetRoboRioUserFaults5V(int32_t index, int32_t userFaults5V);
129 
130 int32_t HALSIM_RegisterRoboRioUserFaults3V3Callback(int32_t index,
131  HAL_NotifyCallback callback,
132  void* param,
133  HAL_Bool initialNotify);
134 void HALSIM_CancelRoboRioUserFaults3V3Callback(int32_t index, int32_t uid);
135 int32_t HALSIM_GetRoboRioUserFaults3V3(int32_t index);
136 void HALSIM_SetRoboRioUserFaults3V3(int32_t index, int32_t userFaults3V3);
137 
138 void HALSIM_RegisterRoboRioAllCallbacks(int32_t index,
139  HAL_NotifyCallback callback,
140  void* param, HAL_Bool initialNotify);
141 
142 #ifdef __cplusplus
143 } // extern "C"
144 #endif
145 
146 #endif