10 #include "NotifyListener.h"
11 #include "hal/DriverStationTypes.h"
12 #include "hal/Types.h"
18 void HALSIM_ResetDriverStationData(
void);
19 int32_t HALSIM_RegisterDriverStationEnabledCallback(HAL_NotifyCallback callback,
21 HAL_Bool initialNotify);
22 void HALSIM_CancelDriverStationEnabledCallback(int32_t uid);
23 HAL_Bool HALSIM_GetDriverStationEnabled(
void);
24 void HALSIM_SetDriverStationEnabled(HAL_Bool enabled);
26 int32_t HALSIM_RegisterDriverStationAutonomousCallback(
27 HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify);
28 void HALSIM_CancelDriverStationAutonomousCallback(int32_t uid);
29 HAL_Bool HALSIM_GetDriverStationAutonomous(
void);
30 void HALSIM_SetDriverStationAutonomous(HAL_Bool autonomous);
32 int32_t HALSIM_RegisterDriverStationTestCallback(HAL_NotifyCallback callback,
34 HAL_Bool initialNotify);
35 void HALSIM_CancelDriverStationTestCallback(int32_t uid);
36 HAL_Bool HALSIM_GetDriverStationTest(
void);
37 void HALSIM_SetDriverStationTest(HAL_Bool test);
39 int32_t HALSIM_RegisterDriverStationEStopCallback(HAL_NotifyCallback callback,
41 HAL_Bool initialNotify);
42 void HALSIM_CancelDriverStationEStopCallback(int32_t uid);
43 HAL_Bool HALSIM_GetDriverStationEStop(
void);
44 void HALSIM_SetDriverStationEStop(HAL_Bool eStop);
46 int32_t HALSIM_RegisterDriverStationFmsAttachedCallback(
47 HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify);
48 void HALSIM_CancelDriverStationFmsAttachedCallback(int32_t uid);
49 HAL_Bool HALSIM_GetDriverStationFmsAttached(
void);
50 void HALSIM_SetDriverStationFmsAttached(HAL_Bool fmsAttached);
52 int32_t HALSIM_RegisterDriverStationDsAttachedCallback(
53 HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify);
54 void HALSIM_CancelDriverStationDsAttachedCallback(int32_t uid);
55 HAL_Bool HALSIM_GetDriverStationDsAttached(
void);
56 void HALSIM_SetDriverStationDsAttached(HAL_Bool dsAttached);
58 int32_t HALSIM_RegisterDriverStationAllianceStationIdCallback(
59 HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify);
60 void HALSIM_CancelDriverStationAllianceStationIdCallback(int32_t uid);
61 HAL_AllianceStationID HALSIM_GetDriverStationAllianceStationId(
void);
62 void HALSIM_SetDriverStationAllianceStationId(
63 HAL_AllianceStationID allianceStationId);
65 int32_t HALSIM_RegisterDriverStationMatchTimeCallback(
66 HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify);
67 void HALSIM_CancelDriverStationMatchTimeCallback(int32_t uid);
68 double HALSIM_GetDriverStationMatchTime(
void);
69 void HALSIM_SetDriverStationMatchTime(
double matchTime);
71 void HALSIM_SetJoystickAxes(int32_t joystickNum,
const HAL_JoystickAxes* axes);
72 void HALSIM_SetJoystickPOVs(int32_t joystickNum,
const HAL_JoystickPOVs* povs);
73 void HALSIM_SetJoystickButtons(int32_t joystickNum,
75 void HALSIM_SetJoystickDescriptor(int32_t joystickNum,
78 void HALSIM_GetJoystickOutputs(int32_t joystickNum, int64_t* outputs,
79 int32_t* leftRumble, int32_t* rightRumble);
83 void HALSIM_RegisterDriverStationAllCallbacks(HAL_NotifyCallback callback,
85 HAL_Bool initialNotify);
87 void HALSIM_NotifyDriverStationNewData(
void);