19 FwIndexType SeqDispatcher::getNextAvailableSequencerIdx() {
29 void SeqDispatcher::runSequence(
FwIndexType sequencerIdx,
36 static_cast<FwAssertArgType>(sequencerIdx));
39 static_cast<FwAssertArgType>(this->m_entryTable[sequencerIdx].state));
47 this->m_sequencersAvailable--;
49 this->m_entryTable[sequencerIdx].sequenceRunning = fileName;
51 this->m_dispatchedCount++;
53 this->
seqRunOut_out(sequencerIdx, this->m_entryTable[sequencerIdx].sequenceRunning, args);
65 if (this->m_entryTable[portNum].sequenceRunning != fileName) {
70 this->m_entryTable[portNum].sequenceRunning);
71 this->m_entryTable[portNum].sequenceRunning = fileName;
82 this->m_entryTable[portNum].sequenceRunning = fileName;
83 this->m_sequencersAvailable--;
110 this->
cmdResponse_out(this->m_entryTable[portNum].opCode, this->m_entryTable[portNum].cmdSeq, response);
114 this->m_errorCount++;
123 this->m_entryTable[portNum].sequenceRunning =
"<no seq>";
124 this->m_sequencersAvailable++;
130 FwIndexType idx = this->getNextAvailableSequencerIdx();
144 void SeqDispatcher ::RUN_cmdHandler(
const FwOpcodeType opCode,
150 this->RUN_ARGS_cmdHandler(opCode, cmdSeq, fileName, block, emptyArgs);
154 void SeqDispatcher ::RUN_ARGS_cmdHandler(
const FwOpcodeType opCode,
159 FwIndexType idx = this->getNextAvailableSequencerIdx();
167 this->runSequence(idx, fileName, block, buffer);
175 this->m_entryTable[idx].opCode = opCode;
176 this->m_entryTable[idx].cmdSeq = cmdSeq;
180 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.
bool isConnected_seqRunOut_OutputPort(FwIndexType portNum) const
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 seqRunOut_out(FwIndexType portNum, const Fw::StringBase &filename, const Svc::SeqArgs &args) const
Invoke output port seqRunOut.
void seqRunIn_handler(FwIndexType portNum, const Fw::StringBase &fileName, const Svc::SeqArgs &args)
Handler for input port seqRunIn.
void log_WARNING_LO_UnexpectedSequenceStarted(U16 idx, const Fw::StringBase &newSequence) const
Log event UnexpectedSequenceStarted.
Command successfully executed.
void seqStartIn_handler(FwIndexType portNum, const Fw::StringBase &fileName, const Svc::SeqArgs &args)
Handler for input port seqStartIn.
SeqDispatcher(const char *const compName)
void log_WARNING_HI_NoAvailableSequencers() const
Log event NoAvailableSequencers.
Command had execution error.
A read-only abstract superclass for StringBase.
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 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