10 #ifndef __FRC_ROBORIO__
12 #include "NotifyListener.h"
13 #include "hal/Types.h"
19 void HALSIM_ResetDIOData(int32_t index);
20 int32_t HALSIM_RegisterDIOInitializedCallback(int32_t index,
21 HAL_NotifyCallback callback,
23 HAL_Bool initialNotify);
24 void HALSIM_CancelDIOInitializedCallback(int32_t index, int32_t uid);
25 HAL_Bool HALSIM_GetDIOInitialized(int32_t index);
26 void HALSIM_SetDIOInitialized(int32_t index, HAL_Bool initialized);
28 int32_t HALSIM_RegisterDIOValueCallback(int32_t index,
29 HAL_NotifyCallback callback,
30 void* param, HAL_Bool initialNotify);
31 void HALSIM_CancelDIOValueCallback(int32_t index, int32_t uid);
32 HAL_Bool HALSIM_GetDIOValue(int32_t index);
33 void HALSIM_SetDIOValue(int32_t index, HAL_Bool value);
35 int32_t HALSIM_RegisterDIOPulseLengthCallback(int32_t index,
36 HAL_NotifyCallback callback,
38 HAL_Bool initialNotify);
39 void HALSIM_CancelDIOPulseLengthCallback(int32_t index, int32_t uid);
40 double HALSIM_GetDIOPulseLength(int32_t index);
41 void HALSIM_SetDIOPulseLength(int32_t index,
double pulseLength);
43 int32_t HALSIM_RegisterDIOIsInputCallback(int32_t index,
44 HAL_NotifyCallback callback,
45 void* param, HAL_Bool initialNotify);
46 void HALSIM_CancelDIOIsInputCallback(int32_t index, int32_t uid);
47 HAL_Bool HALSIM_GetDIOIsInput(int32_t index);
48 void HALSIM_SetDIOIsInput(int32_t index, HAL_Bool isInput);
50 int32_t HALSIM_RegisterDIOFilterIndexCallback(int32_t index,
51 HAL_NotifyCallback callback,
53 HAL_Bool initialNotify);
54 void HALSIM_CancelDIOFilterIndexCallback(int32_t index, int32_t uid);
55 int32_t HALSIM_GetDIOFilterIndex(int32_t index);
56 void HALSIM_SetDIOFilterIndex(int32_t index, int32_t filterIndex);
58 void HALSIM_RegisterDIOAllCallbacks(int32_t index, HAL_NotifyCallback callback,
59 void* param, HAL_Bool initialNotify);