WPILibC++  2018.4.1-20180930034747-1211-g175c6c1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
RelayData.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #ifndef __FRC_ROBORIO__
11 
12 #include "NotifyListener.h"
13 #include "hal/HAL.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void HALSIM_ResetRelayData(int32_t index);
20 int32_t HALSIM_RegisterRelayInitializedForwardCallback(
21  int32_t index, HAL_NotifyCallback callback, void* param,
22  HAL_Bool initialNotify);
23 void HALSIM_CancelRelayInitializedForwardCallback(int32_t index, int32_t uid);
24 HAL_Bool HALSIM_GetRelayInitializedForward(int32_t index);
25 void HALSIM_SetRelayInitializedForward(int32_t index,
26  HAL_Bool initializedForward);
27 
28 int32_t HALSIM_RegisterRelayInitializedReverseCallback(
29  int32_t index, HAL_NotifyCallback callback, void* param,
30  HAL_Bool initialNotify);
31 void HALSIM_CancelRelayInitializedReverseCallback(int32_t index, int32_t uid);
32 HAL_Bool HALSIM_GetRelayInitializedReverse(int32_t index);
33 void HALSIM_SetRelayInitializedReverse(int32_t index,
34  HAL_Bool initializedReverse);
35 
36 int32_t HALSIM_RegisterRelayForwardCallback(int32_t index,
37  HAL_NotifyCallback callback,
38  void* param,
39  HAL_Bool initialNotify);
40 void HALSIM_CancelRelayForwardCallback(int32_t index, int32_t uid);
41 HAL_Bool HALSIM_GetRelayForward(int32_t index);
42 void HALSIM_SetRelayForward(int32_t index, HAL_Bool forward);
43 
44 int32_t HALSIM_RegisterRelayReverseCallback(int32_t index,
45  HAL_NotifyCallback callback,
46  void* param,
47  HAL_Bool initialNotify);
48 void HALSIM_CancelRelayReverseCallback(int32_t index, int32_t uid);
49 HAL_Bool HALSIM_GetRelayReverse(int32_t index);
50 void HALSIM_SetRelayReverse(int32_t index, HAL_Bool reverse);
51 
52 void HALSIM_RegisterRelayAllCallbacks(int32_t index,
53  HAL_NotifyCallback callback, void* param,
54  HAL_Bool initialNotify);
55 
56 #ifdef __cplusplus
57 } // extern "C"
58 #endif
59 
60 #endif