mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user