WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
Power.h File Reference
#include <stdint.h>
#include "hal/Types.h"

Go to the source code of this file.

Functions

double HAL_GetVinVoltage (int32_t *status)
 Gets the roboRIO input voltage.
 
double HAL_GetVinCurrent (int32_t *status)
 Gets the roboRIO input current.
 
double HAL_GetUserVoltage6V (int32_t *status)
 Gets the 6V rail voltage.
 
double HAL_GetUserCurrent6V (int32_t *status)
 Gets the 6V rail current.
 
HAL_Bool HAL_GetUserActive6V (int32_t *status)
 Gets the active state of the 6V rail.
 
int32_t HAL_GetUserCurrentFaults6V (int32_t *status)
 Gets the fault count for the 6V rail.
 
void HAL_SetUserRailEnabled6V (HAL_Bool enabled, int32_t *status)
 Enables or disables the 6V rail.
 
double HAL_GetUserVoltage5V (int32_t *status)
 Gets the 5V rail voltage.
 
double HAL_GetUserCurrent5V (int32_t *status)
 Gets the 5V rail 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.
 
void HAL_SetUserRailEnabled5V (HAL_Bool enabled, int32_t *status)
 Enables or disables the 5V rail.
 
double HAL_GetUserVoltage3V3 (int32_t *status)
 Gets the 3V3 rail voltage.
 
double HAL_GetUserCurrent3V3 (int32_t *status)
 Gets the 3V3 rail current.
 
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.
 
void HAL_SetUserRailEnabled3V3 (HAL_Bool enabled, int32_t *status)
 Enables or disables the 3V3 rail.
 
void HAL_ResetUserCurrentFaults (int32_t *status)
 Resets the overcurrent fault counters for all user rails to 0.
 
double HAL_GetBrownoutVoltage (int32_t *status)
 Get the current brownout voltage setting.
 
void HAL_SetBrownoutVoltage (double voltage, int32_t *status)
 Set the voltage the roboRIO will brownout and disable all outputs.
 
double HAL_GetCPUTemp (int32_t *status)
 Get the current CPU temperature in degrees Celsius.