10 #ifndef __FRC_ROBORIO__
12 #include "NotifyListener.h"
19 void HALSIM_ResetRoboRioData(int32_t index);
20 int32_t HALSIM_RegisterRoboRioFPGAButtonCallback(int32_t index,
21 HAL_NotifyCallback callback,
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);
28 int32_t HALSIM_RegisterRoboRioVInVoltageCallback(int32_t index,
29 HAL_NotifyCallback callback,
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);
36 int32_t HALSIM_RegisterRoboRioVInCurrentCallback(int32_t index,
37 HAL_NotifyCallback callback,
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);
44 int32_t HALSIM_RegisterRoboRioUserVoltage6VCallback(int32_t index,
45 HAL_NotifyCallback callback,
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);
52 int32_t HALSIM_RegisterRoboRioUserCurrent6VCallback(int32_t index,
53 HAL_NotifyCallback callback,
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);
60 int32_t HALSIM_RegisterRoboRioUserActive6VCallback(int32_t index,
61 HAL_NotifyCallback callback,
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);
68 int32_t HALSIM_RegisterRoboRioUserVoltage5VCallback(int32_t index,
69 HAL_NotifyCallback callback,
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);
76 int32_t HALSIM_RegisterRoboRioUserCurrent5VCallback(int32_t index,
77 HAL_NotifyCallback callback,
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);
84 int32_t HALSIM_RegisterRoboRioUserActive5VCallback(int32_t index,
85 HAL_NotifyCallback callback,
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);
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);
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);
106 int32_t HALSIM_RegisterRoboRioUserActive3V3Callback(int32_t index,
107 HAL_NotifyCallback callback,
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);
114 int32_t HALSIM_RegisterRoboRioUserFaults6VCallback(int32_t index,
115 HAL_NotifyCallback callback,
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);
122 int32_t HALSIM_RegisterRoboRioUserFaults5VCallback(int32_t index,
123 HAL_NotifyCallback callback,
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);
130 int32_t HALSIM_RegisterRoboRioUserFaults3V3Callback(int32_t index,
131 HAL_NotifyCallback callback,
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);
138 void HALSIM_RegisterRoboRioAllCallbacks(int32_t index,
139 HAL_NotifyCallback callback,
140 void* param, HAL_Bool initialNotify);