WPILibC++  2019.4.1-3-g655763a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
PCMData.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/Types.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void HALSIM_ResetPCMData(int32_t index);
20 int32_t HALSIM_RegisterPCMSolenoidInitializedCallback(
21  int32_t index, int32_t channel, HAL_NotifyCallback callback, void* param,
22  HAL_Bool initialNotify);
23 void HALSIM_CancelPCMSolenoidInitializedCallback(int32_t index, int32_t channel,
24  int32_t uid);
25 HAL_Bool HALSIM_GetPCMSolenoidInitialized(int32_t index, int32_t channel);
26 void HALSIM_SetPCMSolenoidInitialized(int32_t index, int32_t channel,
27  HAL_Bool solenoidInitialized);
28 
29 int32_t HALSIM_RegisterPCMSolenoidOutputCallback(int32_t index, int32_t channel,
30  HAL_NotifyCallback callback,
31  void* param,
32  HAL_Bool initialNotify);
33 void HALSIM_CancelPCMSolenoidOutputCallback(int32_t index, int32_t channel,
34  int32_t uid);
35 HAL_Bool HALSIM_GetPCMSolenoidOutput(int32_t index, int32_t channel);
36 void HALSIM_SetPCMSolenoidOutput(int32_t index, int32_t channel,
37  HAL_Bool solenoidOutput);
38 
39 int32_t HALSIM_RegisterPCMCompressorInitializedCallback(
40  int32_t index, HAL_NotifyCallback callback, void* param,
41  HAL_Bool initialNotify);
42 void HALSIM_CancelPCMCompressorInitializedCallback(int32_t index, int32_t uid);
43 HAL_Bool HALSIM_GetPCMCompressorInitialized(int32_t index);
44 void HALSIM_SetPCMCompressorInitialized(int32_t index,
45  HAL_Bool compressorInitialized);
46 
47 int32_t HALSIM_RegisterPCMCompressorOnCallback(int32_t index,
48  HAL_NotifyCallback callback,
49  void* param,
50  HAL_Bool initialNotify);
51 void HALSIM_CancelPCMCompressorOnCallback(int32_t index, int32_t uid);
52 HAL_Bool HALSIM_GetPCMCompressorOn(int32_t index);
53 void HALSIM_SetPCMCompressorOn(int32_t index, HAL_Bool compressorOn);
54 
55 int32_t HALSIM_RegisterPCMClosedLoopEnabledCallback(int32_t index,
56  HAL_NotifyCallback callback,
57  void* param,
58  HAL_Bool initialNotify);
59 void HALSIM_CancelPCMClosedLoopEnabledCallback(int32_t index, int32_t uid);
60 HAL_Bool HALSIM_GetPCMClosedLoopEnabled(int32_t index);
61 void HALSIM_SetPCMClosedLoopEnabled(int32_t index, HAL_Bool closedLoopEnabled);
62 
63 int32_t HALSIM_RegisterPCMPressureSwitchCallback(int32_t index,
64  HAL_NotifyCallback callback,
65  void* param,
66  HAL_Bool initialNotify);
67 void HALSIM_CancelPCMPressureSwitchCallback(int32_t index, int32_t uid);
68 HAL_Bool HALSIM_GetPCMPressureSwitch(int32_t index);
69 void HALSIM_SetPCMPressureSwitch(int32_t index, HAL_Bool pressureSwitch);
70 
71 int32_t HALSIM_RegisterPCMCompressorCurrentCallback(int32_t index,
72  HAL_NotifyCallback callback,
73  void* param,
74  HAL_Bool initialNotify);
75 void HALSIM_CancelPCMCompressorCurrentCallback(int32_t index, int32_t uid);
76 double HALSIM_GetPCMCompressorCurrent(int32_t index);
77 void HALSIM_SetPCMCompressorCurrent(int32_t index, double compressorCurrent);
78 
79 void HALSIM_RegisterPCMAllNonSolenoidCallbacks(int32_t index,
80  HAL_NotifyCallback callback,
81  void* param,
82  HAL_Bool initialNotify);
83 
84 void HALSIM_RegisterPCMAllSolenoidCallbacks(int32_t index, int32_t channel,
85  HAL_NotifyCallback callback,
86  void* param,
87  HAL_Bool initialNotify);
88 
89 #ifdef __cplusplus
90 } // extern "C"
91 #endif
92 
93 #endif