Added accessor for maxSubsequentTimeoutsExceeded flag

This commit is contained in:
2025-05-23 10:10:54 +02:00
parent cd7cc75eb7
commit b95e782ea8
2 changed files with 13 additions and 0 deletions

View File

@ -626,6 +626,10 @@ asynStatus sinqController::setMaxSubsequentTimeouts(int maxSubsequentTimeouts) {
return asynSuccess;
}
bool sinqController::maxSubsequentTimeoutsExceeded() {
return pSinqC_->maxSubsequentTimeoutsExceeded;
}
/**
* @brief Get a reference to the map used to control the maximum number of
* message repetitions. See the documentation of `printRepetitionWatchdog`

View File

@ -210,6 +210,15 @@ class epicsShareClass sinqController : public asynMotorController {
*/
asynStatus setMaxSubsequentTimeouts(int maxSubsequentTimeouts);
/**
* @brief If true, the maximum number of subsequent communication timeouts
* set in `setMaxSubsequentTimeouts` has been exceeded
*
* @return true
* @return false
*/
bool maxSubsequentTimeoutsExceeded();
/**
* @brief Get a reference to the map used to control the maximum number of
* message repetitions. See the documentation of `printRepetitionWatchdog`