common function for irq limiters
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
bcce945cce
commit
94262a9d04
@ -185,8 +185,7 @@ ReturnValue_t PdecHandler::irqOperation() {
|
|||||||
// No TCs for timeout period
|
// No TCs for timeout period
|
||||||
checkLocks();
|
checkLocks();
|
||||||
genericCheckCd.resetTimer();
|
genericCheckCd.resetTimer();
|
||||||
interruptCounter = 0;
|
resetIrqLimiters();
|
||||||
interruptWindowCd.resetTimer();
|
|
||||||
} else if (ret >= 1) {
|
} else if (ret >= 1) {
|
||||||
nb = read(fd, &info, sizeof(info));
|
nb = read(fd, &info, sizeof(info));
|
||||||
interruptCounter++;
|
interruptCounter++;
|
||||||
@ -214,8 +213,7 @@ ReturnValue_t PdecHandler::irqOperation() {
|
|||||||
TaskFactory::delayTask(400);
|
TaskFactory::delayTask(400);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
interruptWindowCd.resetTimer();
|
resetIrqLimiters();
|
||||||
interruptCounter = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Clear interrupts with dummy read
|
// Clear interrupts with dummy read
|
||||||
@ -638,6 +636,11 @@ void PdecHandler::printPdecMon() {
|
|||||||
|
|
||||||
uint32_t PdecHandler::readFar() { return *(registerBaseAddress + PDEC_FAR_OFFSET); }
|
uint32_t PdecHandler::readFar() { return *(registerBaseAddress + PDEC_FAR_OFFSET); }
|
||||||
|
|
||||||
|
void PdecHandler::resetIrqLimiters() {
|
||||||
|
interruptWindowCd.resetTimer();
|
||||||
|
interruptCounter = 0;
|
||||||
|
}
|
||||||
|
|
||||||
std::string PdecHandler::getMonStatusString(uint32_t status) {
|
std::string PdecHandler::getMonStatusString(uint32_t status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case TC_CHANNEL_INACTIVE:
|
case TC_CHANNEL_INACTIVE:
|
||||||
|
@ -301,6 +301,8 @@ class PdecHandler : public SystemObject, public ExecutableObjectIF, public HasAc
|
|||||||
*/
|
*/
|
||||||
void checkLocks();
|
void checkLocks();
|
||||||
|
|
||||||
|
void resetIrqLimiters();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Analyzes the FramAna field (frame analysis data) of a FAR report.
|
* @brief Analyzes the FramAna field (frame analysis data) of a FAR report.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user