WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Power.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 double HAL_GetVinVoltage(int32_t* status);
19 double HAL_GetVinCurrent(int32_t* status);
20 double HAL_GetUserVoltage6V(int32_t* status);
21 double HAL_GetUserCurrent6V(int32_t* status);
22 HAL_Bool HAL_GetUserActive6V(int32_t* status);
23 int32_t HAL_GetUserCurrentFaults6V(int32_t* status);
24 double HAL_GetUserVoltage5V(int32_t* status);
25 double HAL_GetUserCurrent5V(int32_t* status);
26 HAL_Bool HAL_GetUserActive5V(int32_t* status);
27 int32_t HAL_GetUserCurrentFaults5V(int32_t* status);
28 double HAL_GetUserVoltage3V3(int32_t* status);
29 double HAL_GetUserCurrent3V3(int32_t* status);
30 HAL_Bool HAL_GetUserActive3V3(int32_t* status);
31 int32_t HAL_GetUserCurrentFaults3V3(int32_t* status);
32 #ifdef __cplusplus
33 }
34 #endif