blob: da53f728eb8ccc53b893e61d2652dd389b5b752f [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2016-2017. 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
15extern "C" {
16#endif
17
18double HAL_GetVinVoltage(int32_t* status);
19double HAL_GetVinCurrent(int32_t* status);
20double HAL_GetUserVoltage6V(int32_t* status);
21double HAL_GetUserCurrent6V(int32_t* status);
22HAL_Bool HAL_GetUserActive6V(int32_t* status);
23int32_t HAL_GetUserCurrentFaults6V(int32_t* status);
24double HAL_GetUserVoltage5V(int32_t* status);
25double HAL_GetUserCurrent5V(int32_t* status);
26HAL_Bool HAL_GetUserActive5V(int32_t* status);
27int32_t HAL_GetUserCurrentFaults5V(int32_t* status);
28double HAL_GetUserVoltage3V3(int32_t* status);
29double HAL_GetUserCurrent3V3(int32_t* status);
30HAL_Bool HAL_GetUserActive3V3(int32_t* status);
31int32_t HAL_GetUserCurrentFaults3V3(int32_t* status);
32#ifdef __cplusplus
33}
34#endif