10 #if FW_ENABLE_TEXT_LOGGING 19 SEQDONEIN_CMDRESPONSE,
37 class ComponentIpcSerializableBuffer :
47 MAX_DATA_SIZE =
sizeof(BuffUnion),
49 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
53 return sizeof(m_buff);
60 const U8* getBuffAddr()
const {
66 U8 m_buff[SERIALIZATION_SIZE];
90 this->m_cmdIn_InputPort[port].
init();
95 this->m_cmdIn_InputPort[port].
setPortNum(port);
97 #if FW_OBJECT_NAMES == 1 101 this->m_objName.toChar(),
104 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
114 this->m_seqDoneIn_InputPort[port].
init();
119 this->m_seqDoneIn_InputPort[port].
setPortNum(port);
121 #if FW_OBJECT_NAMES == 1 125 this->m_objName.toChar(),
128 this->m_seqDoneIn_InputPort[port].setObjName(portName.
toChar());
138 this->m_seqRunIn_InputPort[port].
init();
143 this->m_seqRunIn_InputPort[port].
setPortNum(port);
145 #if FW_OBJECT_NAMES == 1 149 this->m_objName.toChar(),
152 this->m_seqRunIn_InputPort[port].setObjName(portName.
toChar());
162 this->m_seqStartIn_InputPort[port].
init();
167 this->m_seqStartIn_InputPort[port].
setPortNum(port);
169 #if FW_OBJECT_NAMES == 1 173 this->m_objName.toChar(),
176 this->m_seqStartIn_InputPort[port].setObjName(portName.
toChar());
186 this->m_cmdRegOut_OutputPort[port].
init();
188 #if FW_OBJECT_NAMES == 1 192 this->m_objName.toChar(),
195 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
205 this->m_cmdResponseOut_OutputPort[port].
init();
207 #if FW_OBJECT_NAMES == 1 211 this->m_objName.toChar(),
214 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
224 this->m_logOut_OutputPort[port].
init();
226 #if FW_OBJECT_NAMES == 1 230 this->m_objName.toChar(),
233 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
237 #if FW_ENABLE_TEXT_LOGGING == 1 241 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
244 this->m_logTextOut_OutputPort[port].
init();
246 #if FW_OBJECT_NAMES == 1 250 this->m_objName.toChar(),
253 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
264 this->m_timeCaller_OutputPort[port].
init();
266 #if FW_OBJECT_NAMES == 1 270 this->m_objName.toChar(),
273 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
283 this->m_tlmOut_OutputPort[port].
init();
285 #if FW_OBJECT_NAMES == 1 289 this->m_objName.toChar(),
292 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
302 this->m_seqRunOut_OutputPort[port].
init();
304 #if FW_OBJECT_NAMES == 1 308 this->m_objName.toChar(),
311 this->m_seqRunOut_OutputPort[port].setObjName(portName.
toChar());
318 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
322 static_cast<FwAssertArgType>(qStat)
335 static_cast<FwAssertArgType>(portNum)
338 return &this->m_cmdIn_InputPort[portNum];
350 static_cast<FwAssertArgType>(portNum)
353 return &this->m_seqDoneIn_InputPort[portNum];
361 static_cast<FwAssertArgType>(portNum)
364 return &this->m_seqRunIn_InputPort[portNum];
372 static_cast<FwAssertArgType>(portNum)
375 return &this->m_seqStartIn_InputPort[portNum];
390 static_cast<FwAssertArgType>(portNum)
393 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
404 static_cast<FwAssertArgType>(portNum)
407 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
418 static_cast<FwAssertArgType>(portNum)
421 this->m_logOut_OutputPort[portNum].
addCallPort(port);
424 #if FW_ENABLE_TEXT_LOGGING == 1 426 void SeqDispatcherComponentBase ::
427 set_logTextOut_OutputPort(
433 portNum < this->getNum_logTextOut_OutputPorts(),
434 static_cast<FwAssertArgType>(portNum)
437 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
450 static_cast<FwAssertArgType>(portNum)
453 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
464 static_cast<FwAssertArgType>(portNum)
467 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
482 static_cast<FwAssertArgType>(portNum)
485 this->m_seqRunOut_OutputPort[portNum].
addCallPort(port);
488 #if FW_PORT_SERIALIZATION 497 Fw::InputSerializePort* port
502 static_cast<FwAssertArgType>(portNum)
505 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
511 Fw::InputSerializePort* port
516 static_cast<FwAssertArgType>(portNum)
519 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
525 Fw::InputSerializePort* port
530 static_cast<FwAssertArgType>(portNum)
533 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
536 #if FW_ENABLE_TEXT_LOGGING == 1 538 void SeqDispatcherComponentBase ::
539 set_logTextOut_OutputPort(
541 Fw::InputSerializePort* port
545 portNum < this->getNum_logTextOut_OutputPorts(),
546 static_cast<FwAssertArgType>(portNum)
549 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
557 Fw::InputSerializePort* port
562 static_cast<FwAssertArgType>(portNum)
565 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
571 Fw::InputSerializePort* port
576 static_cast<FwAssertArgType>(portNum)
579 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
584 #if FW_PORT_SERIALIZATION 593 Fw::InputSerializePort* port
598 static_cast<FwAssertArgType>(portNum)
601 this->m_seqRunOut_OutputPort[portNum].registerSerialPort(port);
613 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
615 this->m_cmdRegOut_OutputPort[0].
invoke(
619 this->m_cmdRegOut_OutputPort[0].
invoke(
630 Fw::ActiveComponentBase(compName)
695 #if FW_ENABLE_TEXT_LOGGING == 1 698 getNum_logTextOut_OutputPorts()
const 736 static_cast<FwAssertArgType>(portNum)
739 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
747 static_cast<FwAssertArgType>(portNum)
750 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
758 static_cast<FwAssertArgType>(portNum)
761 return this->m_logOut_OutputPort[portNum].
isConnected();
764 #if FW_ENABLE_TEXT_LOGGING == 1 766 bool SeqDispatcherComponentBase ::
767 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
770 portNum < this->getNum_logTextOut_OutputPorts(),
771 static_cast<FwAssertArgType>(portNum)
774 return this->m_logTextOut_OutputPort[portNum].isConnected();
784 static_cast<FwAssertArgType>(portNum)
787 return this->m_timeCaller_OutputPort[portNum].
isConnected();
795 static_cast<FwAssertArgType>(portNum)
798 return this->m_tlmOut_OutputPort[portNum].
isConnected();
810 static_cast<FwAssertArgType>(portNum)
813 return this->m_seqRunOut_OutputPort[portNum].
isConnected();
833 static_cast<FwAssertArgType>(portNum)
843 ComponentIpcSerializableBuffer msg;
847 _status = msg.serialize(
848 static_cast<FwEnumStoreType>(SEQDONEIN_CMDRESPONSE)
852 static_cast<FwAssertArgType>(_status)
856 _status = msg.serialize(portNum);
859 static_cast<FwAssertArgType>(_status)
863 _status = msg.serialize(opCode);
866 static_cast<FwAssertArgType>(_status)
870 _status = msg.serialize(cmdSeq);
873 static_cast<FwAssertArgType>(_status)
877 _status = msg.serialize(response);
880 static_cast<FwAssertArgType>(_status)
889 static_cast<FwAssertArgType>(qStatus)
902 static_cast<FwAssertArgType>(portNum)
910 ComponentIpcSerializableBuffer msg;
914 _status = msg.serialize(
915 static_cast<FwEnumStoreType>(SEQRUNIN_CMDSEQIN)
919 static_cast<FwAssertArgType>(_status)
923 _status = msg.serialize(portNum);
926 static_cast<FwAssertArgType>(_status)
933 static_cast<FwAssertArgType>(_status)
942 static_cast<FwAssertArgType>(qStatus)
955 static_cast<FwAssertArgType>(portNum)
963 ComponentIpcSerializableBuffer msg;
967 _status = msg.serialize(
968 static_cast<FwEnumStoreType>(SEQSTARTIN_CMDSEQIN)
972 static_cast<FwAssertArgType>(_status)
976 _status = msg.serialize(portNum);
979 static_cast<FwAssertArgType>(_status)
986 static_cast<FwAssertArgType>(_status)
995 static_cast<FwAssertArgType>(qStatus)
1048 static_cast<FwAssertArgType>(portNum)
1050 this->m_seqRunOut_OutputPort[portNum].
invoke(
1066 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1067 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
1088 ComponentIpcSerializableBuffer msg;
1092 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_RUN));
1095 static_cast<FwAssertArgType>(_status)
1101 _status = msg.serialize(port);
1104 static_cast<FwAssertArgType>(_status)
1107 _status = msg.serialize(opCode);
1110 static_cast<FwAssertArgType>(_status)
1113 _status = msg.serialize(cmdSeq);
1116 static_cast<FwAssertArgType>(_status)
1119 _status = msg.serialize(args);
1122 static_cast<FwAssertArgType>(_status)
1131 static_cast<FwAssertArgType>(qStatus)
1147 ComponentIpcSerializableBuffer msg;
1151 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_LOG_STATUS));
1154 static_cast<FwAssertArgType>(_status)
1160 _status = msg.serialize(port);
1163 static_cast<FwAssertArgType>(_status)
1166 _status = msg.serialize(opCode);
1169 static_cast<FwAssertArgType>(_status)
1172 _status = msg.serialize(cmdSeq);
1175 static_cast<FwAssertArgType>(_status)
1178 _status = msg.serialize(args);
1181 static_cast<FwAssertArgType>(_status)
1190 static_cast<FwAssertArgType>(qStatus)
1233 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1234 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1242 if (this->m_logOut_OutputPort[0].isConnected()) {
1246 #if FW_AMPCS_COMPATIBLE 1248 _status = _logBuff.
serialize(static_cast<U8>(1));
1251 static_cast<FwAssertArgType>(_status)
1255 #if FW_AMPCS_COMPATIBLE 1258 static_cast<U8>(
sizeof(U16))
1262 static_cast<FwAssertArgType>(_status)
1268 static_cast<FwAssertArgType>(_status)
1271 this->m_logOut_OutputPort[0].
invoke(
1280 #if FW_ENABLE_TEXT_LOGGING 1281 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1282 #if FW_OBJECT_NAMES == 1 1283 const char* _formatString =
1284 "(%s) %s: Invalid sequence index %" PRIu16
"";
1286 const char* _formatString =
1287 "%s: Invalid sequence index %" PRIu16
"";
1294 this->m_objName.toChar(),
1296 "InvalidSequencer ",
1300 this->m_logTextOut_OutputPort[0].invoke(
1315 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1316 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1324 if (this->m_logOut_OutputPort[0].isConnected()) {
1327 #if FW_AMPCS_COMPATIBLE 1330 _status = _logBuff.
serialize(static_cast<U8>(0));
1333 static_cast<FwAssertArgType>(_status)
1337 this->m_logOut_OutputPort[0].
invoke(
1346 #if FW_ENABLE_TEXT_LOGGING 1347 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1348 #if FW_OBJECT_NAMES == 1 1349 const char* _formatString =
1350 "(%s) %s: No available cmd sequencers to dispatch a sequence to";
1352 const char* _formatString =
1353 "%s: No available cmd sequencers to dispatch a sequence to";
1360 this->m_objName.toChar(),
1362 "NoAvailableSequencers " 1365 this->m_logTextOut_OutputPort[0].invoke(
1380 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1381 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1389 if (this->m_logOut_OutputPort[0].isConnected()) {
1393 #if FW_AMPCS_COMPATIBLE 1395 _status = _logBuff.
serialize(static_cast<U8>(1));
1398 static_cast<FwAssertArgType>(_status)
1402 #if FW_AMPCS_COMPATIBLE 1405 static_cast<U8>(
sizeof(U16))
1409 static_cast<FwAssertArgType>(_status)
1415 static_cast<FwAssertArgType>(_status)
1418 this->m_logOut_OutputPort[0].
invoke(
1427 #if FW_ENABLE_TEXT_LOGGING 1428 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1429 #if FW_OBJECT_NAMES == 1 1430 const char* _formatString =
1431 "(%s) %s: Sequencer %" PRIu16
" completed a sequence with no matching start notification";
1433 const char* _formatString =
1434 "%s: Sequencer %" PRIu16
" completed a sequence with no matching start notification";
1441 this->m_objName.toChar(),
1443 "UnknownSequenceFinished ",
1447 this->m_logTextOut_OutputPort[0].invoke(
1466 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1467 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1475 if (this->m_logOut_OutputPort[0].isConnected()) {
1479 #if FW_AMPCS_COMPATIBLE 1481 _status = _logBuff.
serialize(static_cast<U8>(3));
1484 static_cast<FwAssertArgType>(_status)
1488 #if FW_AMPCS_COMPATIBLE 1491 static_cast<U8>(
sizeof(U16))
1495 static_cast<FwAssertArgType>(_status)
1501 static_cast<FwAssertArgType>(_status)
1507 static_cast<FwAssertArgType>(_status)
1513 static_cast<FwAssertArgType>(_status)
1516 this->m_logOut_OutputPort[0].
invoke(
1525 #if FW_ENABLE_TEXT_LOGGING 1526 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1527 #if FW_OBJECT_NAMES == 1 1528 const char* _formatString =
1529 "(%s) %s: Sequencer %" PRIu16
" started a sequence %s while still running %s";
1531 const char* _formatString =
1532 "%s: Sequencer %" PRIu16
" started a sequence %s while still running %s";
1539 this->m_objName.toChar(),
1541 "ConflictingSequenceStarted ",
1544 sequenceInInternalState.
toChar()
1547 this->m_logTextOut_OutputPort[0].invoke(
1565 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1566 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1574 if (this->m_logOut_OutputPort[0].isConnected()) {
1578 #if FW_AMPCS_COMPATIBLE 1580 _status = _logBuff.
serialize(static_cast<U8>(2));
1583 static_cast<FwAssertArgType>(_status)
1587 #if FW_AMPCS_COMPATIBLE 1590 static_cast<U8>(
sizeof(U16))
1594 static_cast<FwAssertArgType>(_status)
1600 static_cast<FwAssertArgType>(_status)
1606 static_cast<FwAssertArgType>(_status)
1609 this->m_logOut_OutputPort[0].
invoke(
1618 #if FW_ENABLE_TEXT_LOGGING 1619 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1620 #if FW_OBJECT_NAMES == 1 1621 const char* _formatString =
1622 "(%s) %s: Sequencer %" PRIu16
" was externally commanded to start a sequence %s";
1624 const char* _formatString =
1625 "%s: Sequencer %" PRIu16
" was externally commanded to start a sequence %s";
1632 this->m_objName.toChar(),
1634 "UnexpectedSequenceStarted ",
1639 this->m_logTextOut_OutputPort[0].invoke(
1658 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1659 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1667 if (this->m_logOut_OutputPort[0].isConnected()) {
1671 #if FW_AMPCS_COMPATIBLE 1673 _status = _logBuff.
serialize(static_cast<U8>(3));
1676 static_cast<FwAssertArgType>(_status)
1680 #if FW_AMPCS_COMPATIBLE 1683 static_cast<U8>(
sizeof(U16))
1687 static_cast<FwAssertArgType>(_status)
1693 static_cast<FwAssertArgType>(_status)
1696 #if FW_AMPCS_COMPATIBLE 1703 static_cast<FwAssertArgType>(_status)
1709 static_cast<FwAssertArgType>(_status)
1715 static_cast<FwAssertArgType>(_status)
1718 this->m_logOut_OutputPort[0].
invoke(
1727 #if FW_ENABLE_TEXT_LOGGING 1728 if (this->m_logTextOut_OutputPort[0].isConnected()) {
1729 #if FW_OBJECT_NAMES == 1 1730 const char* _formatString =
1731 "(%s) %s: Sequencer %" PRIu16
" with state %s is running file %s";
1733 const char* _formatString =
1734 "%s: Sequencer %" PRIu16
" with state %s is running file %s";
1738 state.toString(stateStr);
1744 this->m_objName.toChar(),
1746 "LogSequencerStatus ",
1752 this->m_logTextOut_OutputPort[0].invoke(
1772 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1774 this->m_timeCaller_OutputPort[0].isConnected() &&
1777 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1784 static_cast<FwAssertArgType>(_stat)
1791 this->m_tlmOut_OutputPort[0].
invoke(
1805 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1807 this->m_timeCaller_OutputPort[0].isConnected() &&
1810 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1817 static_cast<FwAssertArgType>(_stat)
1824 this->m_tlmOut_OutputPort[0].
invoke(
1838 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1840 this->m_timeCaller_OutputPort[0].isConnected() &&
1843 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1850 static_cast<FwAssertArgType>(_stat)
1857 this->m_tlmOut_OutputPort[0].
invoke(
1872 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1874 this->m_timeCaller_OutputPort[0].
invoke(_time);
1889 ComponentIpcSerializableBuffer msg;
1899 static_cast<FwAssertArgType>(msgStatus)
1909 static_cast<FwAssertArgType>(deserStatus)
1912 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
1914 if (msgType == SEQDISPATCHER_COMPONENT_EXIT) {
1919 deserStatus = msg.deserialize(portNum);
1922 static_cast<FwAssertArgType>(deserStatus)
1927 case SEQDONEIN_CMDRESPONSE: {
1930 deserStatus = msg.deserialize(opCode);
1933 static_cast<FwAssertArgType>(deserStatus)
1938 deserStatus = msg.deserialize(cmdSeq);
1941 static_cast<FwAssertArgType>(deserStatus)
1946 deserStatus = msg.deserialize(response);
1949 static_cast<FwAssertArgType>(deserStatus)
1963 case SEQRUNIN_CMDSEQIN: {
1966 Fw::ExternalString filename(__fprime_ac_filename_buffer,
sizeof __fprime_ac_filename_buffer);
1967 deserStatus = msg.deserialize(filename);
1970 static_cast<FwAssertArgType>(deserStatus)
1982 case SEQSTARTIN_CMDSEQIN: {
1985 Fw::ExternalString filename(__fprime_ac_filename_buffer,
sizeof __fprime_ac_filename_buffer);
1986 deserStatus = msg.deserialize(filename);
1989 static_cast<FwAssertArgType>(deserStatus)
2004 deserStatus = msg.deserialize(opCode);
2007 static_cast<FwAssertArgType>(deserStatus)
2012 deserStatus = msg.deserialize(cmdSeq);
2015 static_cast<FwAssertArgType>(deserStatus)
2020 deserStatus = msg.deserialize(args);
2023 static_cast<FwAssertArgType>(deserStatus)
2033 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2048 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2061 #if FW_CMD_CHECK_RESIDUAL 2063 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2082 case CMD_LOG_STATUS: {
2085 deserStatus = msg.deserialize(opCode);
2088 static_cast<FwAssertArgType>(deserStatus)
2093 deserStatus = msg.deserialize(cmdSeq);
2096 static_cast<FwAssertArgType>(deserStatus)
2101 deserStatus = msg.deserialize(args);
2104 static_cast<FwAssertArgType>(deserStatus)
2112 #if FW_CMD_CHECK_RESIDUAL 2114 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2139 void SeqDispatcherComponentBase ::
2151 const U32 idBase = callComp->
getIdBase();
2152 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
2155 switch (opCode - idBase) {
2157 compPtr->RUN_cmdHandlerBase(
2166 compPtr->LOG_STATUS_cmdHandlerBase(
2180 void SeqDispatcherComponentBase ::
2191 compPtr->seqDoneIn_handlerBase(
2199 void SeqDispatcherComponentBase ::
2208 compPtr->seqRunIn_handlerBase(
2214 void SeqDispatcherComponentBase ::
2223 compPtr->seqStartIn_handlerBase(
Serialization/Deserialization operation was successful.
Fw::InputCmdResponsePort * get_seqDoneIn_InputPort(FwIndexType portNum)
virtual void seqDoneIn_preMsgHook(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Pre-message hook for async input port seqDoneIn.
void addCallPort(InputTimePort *callPort)
Register an input port.
void tlmWrite_sequencersAvailable(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
FwIndexType getNum_seqRunIn_InputPorts() const
virtual void LOG_STATUS_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command LOG_STATUS.
void tlmWrite_errorCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void seqRunIn_handlerBase(FwIndexType portNum, const Fw::StringBase &filename)
Handler base-class function for input port seqRunIn.
Svc::InputCmdSeqInPort * get_seqRunIn_InputPort(FwIndexType portNum)
Wait or don't wait for something.
virtual void RUN_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RUN.
NATIVE_UINT_TYPE SizeType
Status
status returned from the queue send function
Svc::InputCmdSeqInPort * get_seqStartIn_InputPort(FwIndexType portNum)
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
const char * toChar() const
void init()
Initialization function.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
PlatformSizeType FwSizeType
FwIndexType getNum_logOut_OutputPorts() const
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
Channel ID for dispatchedCount.
void init()
Initialization function.
Enum representing a command response.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void regCommands()
Register commands with the Command Dispatcher.
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
PlatformIndexType FwIndexType
virtual void seqRunIn_preMsgHook(FwIndexType portNum, const Fw::StringBase &filename)
Pre-message hook for async input port seqRunIn.
void seqDoneIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port seqDoneIn.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
Os::Queue m_queue
queue object for active component
void addCallPort(InputTlmPort *callPort)
Register an input port.
void RUN_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Object initializer.
The size of the serial representation.
SerializeStatus
forward declaration for string
virtual void seqRunIn_handler(FwIndexType portNum, const Fw::StringBase &filename)=0
Handler for input port seqRunIn.
virtual void seqStartIn_handler(FwIndexType portNum, const Fw::StringBase &filename)=0
Handler for input port seqStartIn.
virtual void LOG_STATUS_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Message will block until space is available.
FwIndexType getNum_seqStartIn_InputPorts() const
void log_WARNING_LO_UnknownSequenceFinished(U16 idx) const
Log event UnknownSequenceFinished.
virtual ~SeqDispatcherComponentBase()
Destroy SeqDispatcherComponentBase object.
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
void log_ACTIVITY_LO_LogSequencerStatus(U16 idx, Svc::SeqDispatcher_CmdSequencerState state, const Fw::StringBase &filename) const
Log event LogSequencerStatus.
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
Serializable::SizeType getBuffLeft() const
returns how much deserialization buffer is left
void init()
Initialization function.
Less important informational events.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
#define FW_MIN(a, b)
MIN macro.
A less serious but recoverable event.
void set_seqRunOut_OutputPort(FwIndexType portNum, Svc::InputCmdSeqInPort *port)
Connect port to seqRunOut[portNum].
Dispatches a sequence to the first available sequencer.
FwIndexType getNum_timeCaller_OutputPorts() const
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port interface.
No time base has been established.
SeqDispatcherComponentBase(const char *compName="")
Construct SeqDispatcherComponentBase object.
virtual void RUN_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, Fw::Wait block)=0
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
FwIndexType getNum_cmdRegOut_OutputPorts() const
Channel ID for errorCount.
void resetDeser()
reset deserialization to beginning
A string backed by an external buffer.
A serious but recoverable event.
Errors dispatching messages.
void log_WARNING_LO_UnexpectedSequenceStarted(U16 idx, const Fw::StringBase &newSequence) const
Log event UnexpectedSequenceStarted.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
void invoke(const Fw::StringBase &filename) const
Invoke a port interface.
FwIndexType getNum_cmdResponseOut_OutputPorts() const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
FwIndexType getNum_cmdIn_InputPorts() const
bool isConnected_logOut_OutputPort(FwIndexType portNum)
uint8_t U8
8-bit unsigned integer
#define PRI_PlatformIntType
Command failed to deserialize.
void log_WARNING_HI_NoAvailableSequencers() const
Log event NoAvailableSequencers.
void seqStartIn_handlerBase(FwIndexType portNum, const Fw::StringBase &filename)
Handler base-class function for input port seqStartIn.
void seqRunOut_out(FwIndexType portNum, const Fw::StringBase &filename)
Invoke output port seqRunOut.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
PlatformQueuePriorityType FwQueuePriorityType
message to exit active component task
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
bool isConnected_seqRunOut_OutputPort(FwIndexType portNum)
A message was sent requesting an exit of the loop.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
FwIndexType getNum_seqDoneIn_InputPorts() const
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void addCallPort(InputCmdSeqInPort *callPort)
Register an input port.
void init()
Initialization function.
virtual void seqDoneIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port seqDoneIn.
void LOG_STATUS_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
message sent/received okay
void log_WARNING_HI_InvalidSequencer(U16 idx) const
Log event InvalidSequencer.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
Logs via Events the state of each connected command sequencer.
Channel ID for sequencersAvailable.
virtual SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
Message will return with status when space is unavailable.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
void init()
Initialization function.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
virtual void seqStartIn_preMsgHook(FwIndexType portNum, const Fw::StringBase &filename)
Pre-message hook for async input port seqStartIn.
FwIndexType getNum_seqRunOut_OutputPorts() const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void log_WARNING_HI_ConflictingSequenceStarted(U16 idx, const Fw::StringBase &newSequence, const Fw::StringBase &sequenceInInternalState) const
Log event ConflictingSequenceStarted.
FwIndexType getNum_tlmOut_OutputPorts() const
void tlmWrite_dispatchedCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
virtual const CHAR * toChar() const =0
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.