[wpilib, hal] Add function to read the RSL state (#5312)

This commit is contained in:
Ryan Blue
2023-05-13 00:30:19 -04:00
committed by GitHub
parent 7a90475eec
commit 463a90f1df
8 changed files with 59 additions and 0 deletions

View File

@@ -136,6 +136,21 @@ Java_edu_wpi_first_hal_HAL_getBrownedOut
return val;
}
/*
* Class: edu_wpi_first_hal_HAL
* Method: getRSLState
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL
Java_edu_wpi_first_hal_HAL_getRSLState
(JNIEnv* env, jclass)
{
int32_t status = 0;
bool val = HAL_GetRSLState(&status);
CheckStatus(env, status);
return val;
}
/*
* Class: edu_wpi_first_hal_HAL
* Method: getPortWithModule