19 FwIndexType SeqDispatcher::getNextAvailableSequencerIdx() {
33 static_cast<FwAssertArgType>(sequencerIdx));
36 static_cast<FwAssertArgType>(this->m_entryTable[sequencerIdx].state));
44 this->m_sequencersAvailable--;
46 this->m_entryTable[sequencerIdx].sequenceRunning = fileName;
48 this->m_dispatchedCount++;
50 this->
seqRunOut_out(sequencerIdx, this->m_entryTable[sequencerIdx].sequenceRunning);
60 if (this->m_entryTable[portNum].sequenceRunning != fileName) {
65 this->m_entryTable[portNum].sequenceRunning);
66 this->m_entryTable[portNum].sequenceRunning = fileName;
77 this->m_entryTable[portNum].sequenceRunning = fileName;
78 this->m_sequencersAvailable--;
105 this->
cmdResponse_out(this->m_entryTable[portNum].opCode, this->m_entryTable[portNum].cmdSeq, response);
109 this->m_errorCount++;
118 this->m_entryTable[portNum].sequenceRunning =
"<no seq>";
119 this->m_sequencersAvailable++;
125 FwIndexType idx = this->getNextAvailableSequencerIdx();
138 void SeqDispatcher ::RUN_cmdHandler(
const FwOpcodeType opCode,
142 FwIndexType idx = this->getNextAvailableSequencerIdx();
150 this->runSequence(idx, fileName, block);
158 this->m_entryTable[idx].opCode = opCode;
159 this->m_entryTable[idx].cmdSeq = cmdSeq;
163 void SeqDispatcher::LOG_STATUS_cmdHandler(
const FwOpcodeType opCode,
void tlmWrite_sequencersAvailable(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite_errorCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
FwIdType FwOpcodeType
The type of a command opcode.
Wait or don't wait for something.
void seqDoneIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler for input port seqDoneIn.
Enum representing a command response.
void log_WARNING_LO_UnknownSequenceFinished(U16 idx) const
Log event UnknownSequenceFinished.
void log_ACTIVITY_LO_LogSequencerStatus(U16 idx, Svc::SeqDispatcher_CmdSequencerState state, const Fw::StringBase &filename) const
Log event LogSequencerStatus.
void log_WARNING_LO_UnexpectedSequenceStarted(U16 idx, const Fw::StringBase &newSequence) const
Log event UnexpectedSequenceStarted.
Command successfully executed.
SeqDispatcher(const char *const compName)
void log_WARNING_HI_NoAvailableSequencers() const
Log event NoAvailableSequencers.
Command had execution error.
void seqRunOut_out(FwIndexType portNum, const Fw::StringBase &filename)
Invoke output port seqRunOut.
void seqRunIn_handler(FwIndexType portNum, const Fw::StringBase &fileName)
Handler for input port seqRunIn.
bool isConnected_seqRunOut_OutputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
Auto-generated base for SeqDispatcher component.
RateGroupDivider component implementation.
Don't wait for something.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void seqStartIn_handler(FwIndexType portNum, const Fw::StringBase &fileName)
Handler for input port seqStartIn.
void log_WARNING_HI_ConflictingSequenceStarted(U16 idx, const Fw::StringBase &newSequence, const Fw::StringBase &sequenceInInternalState) const
Log event ConflictingSequenceStarted.
void tlmWrite_dispatchedCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const