WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
PDP.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2016. 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 #include <stdint.h>
11 
12 #include "HAL/Types.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 void HAL_InitializePDP(int32_t module, int32_t* status);
19 HAL_Bool HAL_CheckPDPChannel(int32_t channel);
20 HAL_Bool HAL_CheckPDPModule(int32_t module);
21 double HAL_GetPDPTemperature(int32_t module, int32_t* status);
22 double HAL_GetPDPVoltage(int32_t module, int32_t* status);
23 double HAL_GetPDPChannelCurrent(int32_t module, int32_t channel,
24  int32_t* status);
25 double HAL_GetPDPTotalCurrent(int32_t module, int32_t* status);
26 double HAL_GetPDPTotalPower(int32_t module, int32_t* status);
27 double HAL_GetPDPTotalEnergy(int32_t module, int32_t* status);
28 void HAL_ResetPDPTotalEnergy(int32_t module, int32_t* status);
29 void HAL_ClearPDPStickyFaults(int32_t module, int32_t* status);
30 #ifdef __cplusplus
31 }
32 #endif