[hal] Add method to detect if the CAN Stream has overflowed (#6105)

This commit is contained in:
Thad House
2023-12-29 09:10:48 -08:00
committed by GitHub
parent 9333951736
commit 24a76be694
5 changed files with 61 additions and 3 deletions

View File

@@ -51,6 +51,8 @@ inline bool CheckCANStatus(JNIEnv* env, int32_t status, int32_t message_id) {
return status == 0;
}
void ThrowCANStreamOverflowException(JNIEnv* env, jobjectArray messages,
jint length);
void ThrowIllegalArgumentException(JNIEnv* env, std::string_view msg);
void ThrowBoundaryException(JNIEnv* env, double value, double lower,
double upper);