10 #include "NotifyListener.h"
11 #include "hal/Types.h"
17 void HALSIM_ResetRoboRioData(int32_t index);
18 int32_t HALSIM_RegisterRoboRioFPGAButtonCallback(int32_t index,
19 HAL_NotifyCallback callback,
21 HAL_Bool initialNotify);
22 void HALSIM_CancelRoboRioFPGAButtonCallback(int32_t index, int32_t uid);
23 HAL_Bool HALSIM_GetRoboRioFPGAButton(int32_t index);
24 void HALSIM_SetRoboRioFPGAButton(int32_t index, HAL_Bool fPGAButton);
26 int32_t HALSIM_RegisterRoboRioVInVoltageCallback(int32_t index,
27 HAL_NotifyCallback callback,
29 HAL_Bool initialNotify);
30 void HALSIM_CancelRoboRioVInVoltageCallback(int32_t index, int32_t uid);
31 double HALSIM_GetRoboRioVInVoltage(int32_t index);
32 void HALSIM_SetRoboRioVInVoltage(int32_t index,
double vInVoltage);
34 int32_t HALSIM_RegisterRoboRioVInCurrentCallback(int32_t index,
35 HAL_NotifyCallback callback,
37 HAL_Bool initialNotify);
38 void HALSIM_CancelRoboRioVInCurrentCallback(int32_t index, int32_t uid);
39 double HALSIM_GetRoboRioVInCurrent(int32_t index);
40 void HALSIM_SetRoboRioVInCurrent(int32_t index,
double vInCurrent);
42 int32_t HALSIM_RegisterRoboRioUserVoltage6VCallback(int32_t index,
43 HAL_NotifyCallback callback,
45 HAL_Bool initialNotify);
46 void HALSIM_CancelRoboRioUserVoltage6VCallback(int32_t index, int32_t uid);
47 double HALSIM_GetRoboRioUserVoltage6V(int32_t index);
48 void HALSIM_SetRoboRioUserVoltage6V(int32_t index,
double userVoltage6V);
50 int32_t HALSIM_RegisterRoboRioUserCurrent6VCallback(int32_t index,
51 HAL_NotifyCallback callback,
53 HAL_Bool initialNotify);
54 void HALSIM_CancelRoboRioUserCurrent6VCallback(int32_t index, int32_t uid);
55 double HALSIM_GetRoboRioUserCurrent6V(int32_t index);
56 void HALSIM_SetRoboRioUserCurrent6V(int32_t index,
double userCurrent6V);
58 int32_t HALSIM_RegisterRoboRioUserActive6VCallback(int32_t index,
59 HAL_NotifyCallback callback,
61 HAL_Bool initialNotify);
62 void HALSIM_CancelRoboRioUserActive6VCallback(int32_t index, int32_t uid);
63 HAL_Bool HALSIM_GetRoboRioUserActive6V(int32_t index);
64 void HALSIM_SetRoboRioUserActive6V(int32_t index, HAL_Bool userActive6V);
66 int32_t HALSIM_RegisterRoboRioUserVoltage5VCallback(int32_t index,
67 HAL_NotifyCallback callback,
69 HAL_Bool initialNotify);
70 void HALSIM_CancelRoboRioUserVoltage5VCallback(int32_t index, int32_t uid);
71 double HALSIM_GetRoboRioUserVoltage5V(int32_t index);
72 void HALSIM_SetRoboRioUserVoltage5V(int32_t index,
double userVoltage5V);
74 int32_t HALSIM_RegisterRoboRioUserCurrent5VCallback(int32_t index,
75 HAL_NotifyCallback callback,
77 HAL_Bool initialNotify);
78 void HALSIM_CancelRoboRioUserCurrent5VCallback(int32_t index, int32_t uid);
79 double HALSIM_GetRoboRioUserCurrent5V(int32_t index);
80 void HALSIM_SetRoboRioUserCurrent5V(int32_t index,
double userCurrent5V);
82 int32_t HALSIM_RegisterRoboRioUserActive5VCallback(int32_t index,
83 HAL_NotifyCallback callback,
85 HAL_Bool initialNotify);
86 void HALSIM_CancelRoboRioUserActive5VCallback(int32_t index, int32_t uid);
87 HAL_Bool HALSIM_GetRoboRioUserActive5V(int32_t index);
88 void HALSIM_SetRoboRioUserActive5V(int32_t index, HAL_Bool userActive5V);
90 int32_t HALSIM_RegisterRoboRioUserVoltage3V3Callback(
91 int32_t index, HAL_NotifyCallback callback,
void* param,
92 HAL_Bool initialNotify);
93 void HALSIM_CancelRoboRioUserVoltage3V3Callback(int32_t index, int32_t uid);
94 double HALSIM_GetRoboRioUserVoltage3V3(int32_t index);
95 void HALSIM_SetRoboRioUserVoltage3V3(int32_t index,
double userVoltage3V3);
97 int32_t HALSIM_RegisterRoboRioUserCurrent3V3Callback(
98 int32_t index, HAL_NotifyCallback callback,
void* param,
99 HAL_Bool initialNotify);
100 void HALSIM_CancelRoboRioUserCurrent3V3Callback(int32_t index, int32_t uid);
101 double HALSIM_GetRoboRioUserCurrent3V3(int32_t index);
102 void HALSIM_SetRoboRioUserCurrent3V3(int32_t index,
double userCurrent3V3);
104 int32_t HALSIM_RegisterRoboRioUserActive3V3Callback(int32_t index,
105 HAL_NotifyCallback callback,
107 HAL_Bool initialNotify);
108 void HALSIM_CancelRoboRioUserActive3V3Callback(int32_t index, int32_t uid);
109 HAL_Bool HALSIM_GetRoboRioUserActive3V3(int32_t index);
110 void HALSIM_SetRoboRioUserActive3V3(int32_t index, HAL_Bool userActive3V3);
112 int32_t HALSIM_RegisterRoboRioUserFaults6VCallback(int32_t index,
113 HAL_NotifyCallback callback,
115 HAL_Bool initialNotify);
116 void HALSIM_CancelRoboRioUserFaults6VCallback(int32_t index, int32_t uid);
117 int32_t HALSIM_GetRoboRioUserFaults6V(int32_t index);
118 void HALSIM_SetRoboRioUserFaults6V(int32_t index, int32_t userFaults6V);
120 int32_t HALSIM_RegisterRoboRioUserFaults5VCallback(int32_t index,
121 HAL_NotifyCallback callback,
123 HAL_Bool initialNotify);
124 void HALSIM_CancelRoboRioUserFaults5VCallback(int32_t index, int32_t uid);
125 int32_t HALSIM_GetRoboRioUserFaults5V(int32_t index);
126 void HALSIM_SetRoboRioUserFaults5V(int32_t index, int32_t userFaults5V);
128 int32_t HALSIM_RegisterRoboRioUserFaults3V3Callback(int32_t index,
129 HAL_NotifyCallback callback,
131 HAL_Bool initialNotify);
132 void HALSIM_CancelRoboRioUserFaults3V3Callback(int32_t index, int32_t uid);
133 int32_t HALSIM_GetRoboRioUserFaults3V3(int32_t index);
134 void HALSIM_SetRoboRioUserFaults3V3(int32_t index, int32_t userFaults3V3);
136 void HALSIM_RegisterRoboRioAllCallbacks(int32_t index,
137 HAL_NotifyCallback callback,
138 void* param, HAL_Bool initialNotify);