10 #ifndef __FRC_ROBORIO__
12 #include "NotifyListener.h"
13 #include "hal/Types.h"
19 void HALSIM_ResetPWMData(int32_t index);
20 int32_t HALSIM_RegisterPWMInitializedCallback(int32_t index,
21 HAL_NotifyCallback callback,
23 HAL_Bool initialNotify);
24 void HALSIM_CancelPWMInitializedCallback(int32_t index, int32_t uid);
25 HAL_Bool HALSIM_GetPWMInitialized(int32_t index);
26 void HALSIM_SetPWMInitialized(int32_t index, HAL_Bool initialized);
28 int32_t HALSIM_RegisterPWMRawValueCallback(int32_t index,
29 HAL_NotifyCallback callback,
30 void* param, HAL_Bool initialNotify);
31 void HALSIM_CancelPWMRawValueCallback(int32_t index, int32_t uid);
32 int32_t HALSIM_GetPWMRawValue(int32_t index);
33 void HALSIM_SetPWMRawValue(int32_t index, int32_t rawValue);
35 int32_t HALSIM_RegisterPWMSpeedCallback(int32_t index,
36 HAL_NotifyCallback callback,
37 void* param, HAL_Bool initialNotify);
38 void HALSIM_CancelPWMSpeedCallback(int32_t index, int32_t uid);
39 double HALSIM_GetPWMSpeed(int32_t index);
40 void HALSIM_SetPWMSpeed(int32_t index,
double speed);
42 int32_t HALSIM_RegisterPWMPositionCallback(int32_t index,
43 HAL_NotifyCallback callback,
44 void* param, HAL_Bool initialNotify);
45 void HALSIM_CancelPWMPositionCallback(int32_t index, int32_t uid);
46 double HALSIM_GetPWMPosition(int32_t index);
47 void HALSIM_SetPWMPosition(int32_t index,
double position);
49 int32_t HALSIM_RegisterPWMPeriodScaleCallback(int32_t index,
50 HAL_NotifyCallback callback,
52 HAL_Bool initialNotify);
53 void HALSIM_CancelPWMPeriodScaleCallback(int32_t index, int32_t uid);
54 int32_t HALSIM_GetPWMPeriodScale(int32_t index);
55 void HALSIM_SetPWMPeriodScale(int32_t index, int32_t periodScale);
57 int32_t HALSIM_RegisterPWMZeroLatchCallback(int32_t index,
58 HAL_NotifyCallback callback,
60 HAL_Bool initialNotify);
61 void HALSIM_CancelPWMZeroLatchCallback(int32_t index, int32_t uid);
62 HAL_Bool HALSIM_GetPWMZeroLatch(int32_t index);
63 void HALSIM_SetPWMZeroLatch(int32_t index, HAL_Bool zeroLatch);
65 void HALSIM_RegisterPWMAllCallbacks(int32_t index, HAL_NotifyCallback callback,
66 void* param, HAL_Bool initialNotify);