WPILibC++  2018.4.1-20180728210220-1136-g75a6720
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Power.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2016-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 #include <stdint.h>
11 
12 #include "hal/Types.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
23 double HAL_GetVinVoltage(int32_t* status);
24 
30 double HAL_GetVinCurrent(int32_t* status);
31 
37 double HAL_GetUserVoltage6V(int32_t* status);
38 
44 double HAL_GetUserCurrent6V(int32_t* status);
45 
51 HAL_Bool HAL_GetUserActive6V(int32_t* status);
52 
58 int32_t HAL_GetUserCurrentFaults6V(int32_t* status);
59 
65 double HAL_GetUserVoltage5V(int32_t* status);
66 
72 double HAL_GetUserCurrent5V(int32_t* status);
73 
79 HAL_Bool HAL_GetUserActive5V(int32_t* status);
80 
86 int32_t HAL_GetUserCurrentFaults5V(int32_t* status);
87 
93 double HAL_GetUserVoltage3V3(int32_t* status);
94 
100 double HAL_GetUserCurrent3V3(int32_t* status);
101 
107 HAL_Bool HAL_GetUserActive3V3(int32_t* status);
108 
114 int32_t HAL_GetUserCurrentFaults3V3(int32_t* status);
115 #ifdef __cplusplus
116 } // extern "C"
117 #endif