[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

@@ -59,6 +59,11 @@ int32_t HAL_GetUserCurrentFaults3V3(int32_t* status) {
return SimRoboRioData->userFaults3V3;
}
void HAL_SetUserRailEnabled3V3(HAL_Bool enabled, int32_t* status) {}
void HAL_ResetUserCurrentFaults(int32_t* status) {
SimRoboRioData->userFaults3V3 = 0;
SimRoboRioData->userFaults5V = 0;
SimRoboRioData->userFaults6V = 0;
}
void HAL_SetBrownoutVoltage(double voltage, int32_t* status) {
SimRoboRioData->brownoutVoltage = voltage;
}