WPILibC++  2019.1.1-beta-2-8-g9207d78
 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 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
29 double HAL_GetVinVoltage(int32_t* status);
30 
36 double HAL_GetVinCurrent(int32_t* status);
37 
43 double HAL_GetUserVoltage6V(int32_t* status);
44 
50 double HAL_GetUserCurrent6V(int32_t* status);
51 
57 HAL_Bool HAL_GetUserActive6V(int32_t* status);
58 
64 int32_t HAL_GetUserCurrentFaults6V(int32_t* status);
65 
71 double HAL_GetUserVoltage5V(int32_t* status);
72 
78 double HAL_GetUserCurrent5V(int32_t* status);
79 
85 HAL_Bool HAL_GetUserActive5V(int32_t* status);
86 
92 int32_t HAL_GetUserCurrentFaults5V(int32_t* status);
93 
99 double HAL_GetUserVoltage3V3(int32_t* status);
100 
106 double HAL_GetUserCurrent3V3(int32_t* status);
107 
113 HAL_Bool HAL_GetUserActive3V3(int32_t* status);
114 
120 int32_t HAL_GetUserCurrentFaults3V3(int32_t* status);
121 #ifdef __cplusplus
122 } // extern "C"
123 #endif
124 
HAL_Bool HAL_GetUserActive3V3(int32_t *status)
Gets the active state of the 3V3 rail.
int32_t HAL_GetUserCurrentFaults3V3(int32_t *status)
Gets the fault count for the 3V3 rail.
int32_t HAL_GetUserCurrentFaults6V(int32_t *status)
Gets the fault count for the 6V rail.
HAL_Bool HAL_GetUserActive6V(int32_t *status)
Gets the active state of the 6V rail.
double HAL_GetUserVoltage3V3(int32_t *status)
Gets the 3V3 rail voltage.
double HAL_GetUserCurrent6V(int32_t *status)
Gets the 6V rail current.
double HAL_GetUserCurrent5V(int32_t *status)
Gets the 5V rail current.
double HAL_GetUserCurrent3V3(int32_t *status)
Gets the 3V3 rail current.
double HAL_GetVinVoltage(int32_t *status)
Gets the roboRIO input voltage.
double HAL_GetUserVoltage6V(int32_t *status)
Gets the 6V rail voltage.
double HAL_GetUserVoltage5V(int32_t *status)
Gets the 5V rail voltage.
double HAL_GetVinCurrent(int32_t *status)
Gets the roboRIO input current.
HAL_Bool HAL_GetUserActive5V(int32_t *status)
Gets the active state of the 5V rail.
int32_t HAL_GetUserCurrentFaults5V(int32_t *status)
Gets the fault count for the 5V rail.