[hal] Expose more FPGA functionality (#6942)

- function to reset user rail fault counters
- function to get comms disable count
- correct docs for user rail count functions
This commit is contained in:
Ryan Blue
2024-08-11 02:25:02 -04:00
committed by GitHub
parent 59dc29e701
commit 19b478a33b
13 changed files with 124 additions and 9 deletions

View File

@@ -115,6 +115,14 @@ class RobotController {
*/
static bool IsBrownedOut();
/**
* Gets the number of times the system has been disabled due to communication
* errors with the Driver Station.
*
* @return number of disables due to communication errors.
*/
static int GetCommsDisableCount();
/**
* Gets the current state of the Robot Signal Light (RSL)
* @return The current state of the RSL- true if on, false if off
@@ -174,7 +182,7 @@ class RobotController {
/**
* Get the count of the total current faults on the 3.3V rail since the
* controller has booted.
* code started.
*
* @return The number of faults
*/
@@ -212,7 +220,7 @@ class RobotController {
/**
* Get the count of the total current faults on the 5V rail since the
* controller has booted.
* code started.
*
* @return The number of faults
*/
@@ -250,12 +258,15 @@ class RobotController {
/**
* Get the count of the total current faults on the 6V rail since the
* controller has booted.
* code started.
*
* @return The number of faults.
*/
static int GetFaultCount6V();
/** Reset the overcurrent fault counters for all user rails to 0. */
static void ResetRailFaultCounts();
/**
* Get the current brownout voltage setting.
*