WPILibC++  2019.1.1-beta-1-11-g761933a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
PDPData.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_ResetPDPData(int32_t index);
20 int32_t HALSIM_RegisterPDPInitializedCallback(int32_t index,
21  HAL_NotifyCallback callback,
22  void* param,
23  HAL_Bool initialNotify);
24 void HALSIM_CancelPDPInitializedCallback(int32_t index, int32_t uid);
25 HAL_Bool HALSIM_GetPDPInitialized(int32_t index);
26 void HALSIM_SetPDPInitialized(int32_t index, HAL_Bool initialized);
27 
28 int32_t HALSIM_RegisterPDPTemperatureCallback(int32_t index,
29  HAL_NotifyCallback callback,
30  void* param,
31  HAL_Bool initialNotify);
32 void HALSIM_CancelPDPTemperatureCallback(int32_t index, int32_t uid);
33 double HALSIM_GetPDPTemperature(int32_t index);
34 void HALSIM_SetPDPTemperature(int32_t index, double temperature);
35 
36 int32_t HALSIM_RegisterPDPVoltageCallback(int32_t index,
37  HAL_NotifyCallback callback,
38  void* param, HAL_Bool initialNotify);
39 void HALSIM_CancelPDPVoltageCallback(int32_t index, int32_t uid);
40 double HALSIM_GetPDPVoltage(int32_t index);
41 void HALSIM_SetPDPVoltage(int32_t index, double voltage);
42 
43 int32_t HALSIM_RegisterPDPCurrentCallback(int32_t index, int32_t channel,
44  HAL_NotifyCallback callback,
45  void* param, HAL_Bool initialNotify);
46 void HALSIM_CancelPDPCurrentCallback(int32_t index, int32_t channel,
47  int32_t uid);
48 double HALSIM_GetPDPCurrent(int32_t index, int32_t channel);
49 void HALSIM_SetPDPCurrent(int32_t index, int32_t channel, double current);
50 
51 void HALSIM_RegisterPDPAllNonCurrentCallbacks(int32_t index, int32_t channel,
52  HAL_NotifyCallback callback,
53  void* param,
54  HAL_Bool initialNotify);
55 
56 #ifdef __cplusplus
57 } // extern "C"
58 #endif
59 
60 #endif