11#if FW_ENABLE_TEXT_LOGGING
20 CMDRESPONSEIN_CMDRESPONSE,
23 SEQCANCELIN_CMDSEQCANCEL,
48 class ComponentIpcSerializableBuffer :
63 return sizeof(m_buff);
70 const U8* getBuffAddr()
const {
76 U8 m_buff[SERIALIZATION_SIZE];
85 void CmdSequencerComponentBase ::
97 port < static_cast<PlatformIntType>(this->getNum_cmdIn_InputPorts());
100 this->m_cmdIn_InputPort[port].init();
101 this->m_cmdIn_InputPort[port].addCallComp(
105 this->m_cmdIn_InputPort[port].setPortNum(port);
107#if FW_OBJECT_NAMES == 1
116 this->m_cmdIn_InputPort[port].setObjName(portName);
123 port < static_cast<PlatformIntType>(this->getNum_cmdResponseIn_InputPorts());
126 this->m_cmdResponseIn_InputPort[port].init();
127 this->m_cmdResponseIn_InputPort[port].addCallComp(
131 this->m_cmdResponseIn_InputPort[port].setPortNum(port);
133#if FW_OBJECT_NAMES == 1
142 this->m_cmdResponseIn_InputPort[port].setObjName(portName);
149 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
152 this->m_pingIn_InputPort[port].init();
153 this->m_pingIn_InputPort[port].addCallComp(
157 this->m_pingIn_InputPort[port].setPortNum(port);
159#if FW_OBJECT_NAMES == 1
168 this->m_pingIn_InputPort[port].setObjName(portName);
175 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
178 this->m_schedIn_InputPort[port].init();
179 this->m_schedIn_InputPort[port].addCallComp(
183 this->m_schedIn_InputPort[port].setPortNum(port);
185#if FW_OBJECT_NAMES == 1
194 this->m_schedIn_InputPort[port].setObjName(portName);
201 port < static_cast<PlatformIntType>(this->getNum_seqCancelIn_InputPorts());
204 this->m_seqCancelIn_InputPort[port].init();
205 this->m_seqCancelIn_InputPort[port].addCallComp(
209 this->m_seqCancelIn_InputPort[port].setPortNum(port);
211#if FW_OBJECT_NAMES == 1
220 this->m_seqCancelIn_InputPort[port].setObjName(portName);
227 port < static_cast<PlatformIntType>(this->getNum_seqRunIn_InputPorts());
230 this->m_seqRunIn_InputPort[port].init();
231 this->m_seqRunIn_InputPort[port].addCallComp(
235 this->m_seqRunIn_InputPort[port].setPortNum(port);
237#if FW_OBJECT_NAMES == 1
246 this->m_seqRunIn_InputPort[port].setObjName(portName);
250#if FW_ENABLE_TEXT_LOGGING == 1
254 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
257 this->m_LogText_OutputPort[port].init();
259#if FW_OBJECT_NAMES == 1
268 this->m_LogText_OutputPort[port].setObjName(portName);
276 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
279 this->m_cmdRegOut_OutputPort[port].init();
281#if FW_OBJECT_NAMES == 1
290 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
297 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
300 this->m_cmdResponseOut_OutputPort[port].init();
302#if FW_OBJECT_NAMES == 1
311 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
318 port < static_cast<PlatformIntType>(this->getNum_logOut_OutputPorts());
321 this->m_logOut_OutputPort[port].init();
323#if FW_OBJECT_NAMES == 1
332 this->m_logOut_OutputPort[port].setObjName(portName);
339 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
342 this->m_timeCaller_OutputPort[port].init();
344#if FW_OBJECT_NAMES == 1
353 this->m_timeCaller_OutputPort[port].setObjName(portName);
360 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
363 this->m_tlmOut_OutputPort[port].init();
365#if FW_OBJECT_NAMES == 1
374 this->m_tlmOut_OutputPort[port].setObjName(portName);
381 port < static_cast<PlatformIntType>(this->getNum_comCmdOut_OutputPorts());
384 this->m_comCmdOut_OutputPort[port].init();
386#if FW_OBJECT_NAMES == 1
395 this->m_comCmdOut_OutputPort[port].setObjName(portName);
402 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
405 this->m_pingOut_OutputPort[port].init();
407#if FW_OBJECT_NAMES == 1
416 this->m_pingOut_OutputPort[port].setObjName(portName);
423 port < static_cast<PlatformIntType>(this->getNum_seqDone_OutputPorts());
426 this->m_seqDone_OutputPort[port].init();
428#if FW_OBJECT_NAMES == 1
437 this->m_seqDone_OutputPort[port].setObjName(portName);
443 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
85 void CmdSequencerComponentBase :: {
…}
459 portNum < this->getNum_cmdIn_InputPorts(),
463 return &this->m_cmdIn_InputPort[portNum];
474 portNum < this->getNum_cmdResponseIn_InputPorts(),
478 return &this->m_cmdResponseIn_InputPort[portNum];
485 portNum < this->getNum_pingIn_InputPorts(),
489 return &this->m_pingIn_InputPort[portNum];
496 portNum < this->getNum_schedIn_InputPorts(),
500 return &this->m_schedIn_InputPort[portNum];
507 portNum < this->getNum_seqCancelIn_InputPorts(),
511 return &this->m_seqCancelIn_InputPort[portNum];
518 portNum < this->getNum_seqRunIn_InputPorts(),
522 return &this->m_seqRunIn_InputPort[portNum];
529#if FW_ENABLE_TEXT_LOGGING == 1
531 void CmdSequencerComponentBase ::
532 set_LogText_OutputPort(
538 portNum < this->getNum_LogText_OutputPorts(),
542 this->m_LogText_OutputPort[portNum].addCallPort(port);
547 void CmdSequencerComponentBase ::
548 set_cmdRegOut_OutputPort(
554 portNum < this->getNum_cmdRegOut_OutputPorts(),
558 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
547 void CmdSequencerComponentBase :: {
…}
561 void CmdSequencerComponentBase ::
562 set_cmdResponseOut_OutputPort(
568 portNum < this->getNum_cmdResponseOut_OutputPorts(),
572 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
561 void CmdSequencerComponentBase :: {
…}
575 void CmdSequencerComponentBase ::
576 set_logOut_OutputPort(
582 portNum < this->getNum_logOut_OutputPorts(),
586 this->m_logOut_OutputPort[portNum].addCallPort(port);
575 void CmdSequencerComponentBase :: {
…}
589 void CmdSequencerComponentBase ::
590 set_timeCaller_OutputPort(
596 portNum < this->getNum_timeCaller_OutputPorts(),
600 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
589 void CmdSequencerComponentBase :: {
…}
603 void CmdSequencerComponentBase ::
604 set_tlmOut_OutputPort(
610 portNum < this->getNum_tlmOut_OutputPorts(),
614 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
603 void CmdSequencerComponentBase :: {
…}
621 void CmdSequencerComponentBase ::
622 set_comCmdOut_OutputPort(
628 portNum < this->getNum_comCmdOut_OutputPorts(),
632 this->m_comCmdOut_OutputPort[portNum].addCallPort(port);
621 void CmdSequencerComponentBase :: {
…}
635 void CmdSequencerComponentBase ::
636 set_pingOut_OutputPort(
642 portNum < this->getNum_pingOut_OutputPorts(),
646 this->m_pingOut_OutputPort[portNum].addCallPort(port);
635 void CmdSequencerComponentBase :: {
…}
649 void CmdSequencerComponentBase ::
650 set_seqDone_OutputPort(
656 portNum < this->getNum_seqDone_OutputPorts(),
660 this->m_seqDone_OutputPort[portNum].addCallPort(port);
649 void CmdSequencerComponentBase :: {
…}
663#if FW_PORT_SERIALIZATION
669#if FW_ENABLE_TEXT_LOGGING == 1
671 void CmdSequencerComponentBase ::
672 set_LogText_OutputPort(
674 Fw::InputSerializePort* port
678 portNum < this->getNum_LogText_OutputPorts(),
682 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
687 void CmdSequencerComponentBase ::
688 set_cmdRegOut_OutputPort(
690 Fw::InputSerializePort* port
694 portNum < this->getNum_cmdRegOut_OutputPorts(),
698 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
701 void CmdSequencerComponentBase ::
702 set_cmdResponseOut_OutputPort(
704 Fw::InputSerializePort* port
708 portNum < this->getNum_cmdResponseOut_OutputPorts(),
712 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
715 void CmdSequencerComponentBase ::
716 set_logOut_OutputPort(
718 Fw::InputSerializePort* port
722 portNum < this->getNum_logOut_OutputPorts(),
726 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
729 void CmdSequencerComponentBase ::
730 set_timeCaller_OutputPort(
732 Fw::InputSerializePort* port
736 portNum < this->getNum_timeCaller_OutputPorts(),
740 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
743 void CmdSequencerComponentBase ::
744 set_tlmOut_OutputPort(
746 Fw::InputSerializePort* port
750 portNum < this->getNum_tlmOut_OutputPorts(),
754 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
759#if FW_PORT_SERIALIZATION
765 void CmdSequencerComponentBase ::
766 set_comCmdOut_OutputPort(
768 Fw::InputSerializePort* port
772 portNum < this->getNum_comCmdOut_OutputPorts(),
776 this->m_comCmdOut_OutputPort[portNum].registerSerialPort(port);
779 void CmdSequencerComponentBase ::
780 set_pingOut_OutputPort(
782 Fw::InputSerializePort* port
786 portNum < this->getNum_pingOut_OutputPorts(),
790 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
793 void CmdSequencerComponentBase ::
794 set_seqDone_OutputPort(
796 Fw::InputSerializePort* port
800 portNum < this->getNum_seqDone_OutputPorts(),
804 this->m_seqDone_OutputPort[portNum].registerSerialPort(port);
813 void CmdSequencerComponentBase ::
816 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
818 this->m_cmdRegOut_OutputPort[0].invoke(
819 this->getIdBase() + OPCODE_CS_RUN
822 this->m_cmdRegOut_OutputPort[0].invoke(
823 this->getIdBase() + OPCODE_CS_VALIDATE
826 this->m_cmdRegOut_OutputPort[0].invoke(
827 this->getIdBase() + OPCODE_CS_CANCEL
830 this->m_cmdRegOut_OutputPort[0].invoke(
831 this->getIdBase() + OPCODE_CS_START
834 this->m_cmdRegOut_OutputPort[0].invoke(
835 this->getIdBase() + OPCODE_CS_STEP
838 this->m_cmdRegOut_OutputPort[0].invoke(
839 this->getIdBase() + OPCODE_CS_AUTO
842 this->m_cmdRegOut_OutputPort[0].invoke(
843 this->getIdBase() + OPCODE_CS_MANUAL
846 this->m_cmdRegOut_OutputPort[0].invoke(
847 this->getIdBase() + OPCODE_CS_JOIN_WAIT
813 void CmdSequencerComponentBase :: {
…}
855 CmdSequencerComponentBase ::
856 CmdSequencerComponentBase(
const char* compName) :
857 Fw::ActiveComponentBase(compName)
855 CmdSequencerComponentBase :: {
…}
862 CmdSequencerComponentBase ::
863 ~CmdSequencerComponentBase()
862 CmdSequencerComponentBase :: {
…}
873 getNum_cmdIn_InputPorts()
const
883 getNum_cmdResponseIn_InputPorts()
const
889 getNum_pingIn_InputPorts()
const
895 getNum_schedIn_InputPorts()
const
901 getNum_seqCancelIn_InputPorts()
const
907 getNum_seqRunIn_InputPorts()
const
916#if FW_ENABLE_TEXT_LOGGING == 1
919 getNum_LogText_OutputPorts()
const
927 getNum_cmdRegOut_OutputPorts()
const
933 getNum_cmdResponseOut_OutputPorts()
const
939 getNum_logOut_OutputPorts()
const
945 getNum_timeCaller_OutputPorts()
const
951 getNum_tlmOut_OutputPorts()
const
961 getNum_comCmdOut_OutputPorts()
const
967 getNum_pingOut_OutputPorts()
const
973 getNum_seqDone_OutputPorts()
const
982#if FW_ENABLE_TEXT_LOGGING == 1
984 bool CmdSequencerComponentBase ::
988 portNum < this->getNum_LogText_OutputPorts(),
992 return this->m_LogText_OutputPort[portNum].isConnected();
997 bool CmdSequencerComponentBase ::
1001 portNum < this->getNum_cmdRegOut_OutputPorts(),
1005 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
997 bool CmdSequencerComponentBase :: {
…}
1008 bool CmdSequencerComponentBase ::
1012 portNum < this->getNum_cmdResponseOut_OutputPorts(),
1016 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
1008 bool CmdSequencerComponentBase :: {
…}
1019 bool CmdSequencerComponentBase ::
1023 portNum < this->getNum_logOut_OutputPorts(),
1027 return this->m_logOut_OutputPort[portNum].isConnected();
1019 bool CmdSequencerComponentBase :: {
…}
1030 bool CmdSequencerComponentBase ::
1034 portNum < this->getNum_timeCaller_OutputPorts(),
1038 return this->m_timeCaller_OutputPort[portNum].isConnected();
1030 bool CmdSequencerComponentBase :: {
…}
1041 bool CmdSequencerComponentBase ::
1045 portNum < this->getNum_tlmOut_OutputPorts(),
1049 return this->m_tlmOut_OutputPort[portNum].isConnected();
1041 bool CmdSequencerComponentBase :: {
…}
1056 bool CmdSequencerComponentBase ::
1060 portNum < this->getNum_comCmdOut_OutputPorts(),
1064 return this->m_comCmdOut_OutputPort[portNum].isConnected();
1056 bool CmdSequencerComponentBase :: {
…}
1067 bool CmdSequencerComponentBase ::
1071 portNum < this->getNum_pingOut_OutputPorts(),
1075 return this->m_pingOut_OutputPort[portNum].isConnected();
1067 bool CmdSequencerComponentBase :: {
…}
1078 bool CmdSequencerComponentBase ::
1082 portNum < this->getNum_seqDone_OutputPorts(),
1086 return this->m_seqDone_OutputPort[portNum].isConnected();
1078 bool CmdSequencerComponentBase :: {
…}
1095 void CmdSequencerComponentBase ::
1096 cmdResponseIn_handlerBase(
1105 portNum < this->getNum_cmdResponseIn_InputPorts(),
1110 cmdResponseIn_preMsgHook(
1116 ComponentIpcSerializableBuffer msg;
1120 _status = msg.serialize(
1129 _status = msg.serialize(portNum);
1136 _status = msg.serialize(opCode);
1143 _status = msg.serialize(cmdSeq);
1150 _status = msg.serialize(response);
1095 void CmdSequencerComponentBase :: {
…}
1166 void CmdSequencerComponentBase ::
1174 portNum < this->getNum_pingIn_InputPorts(),
1183 ComponentIpcSerializableBuffer msg;
1187 _status = msg.serialize(
1196 _status = msg.serialize(portNum);
1203 _status = msg.serialize(key);
1166 void CmdSequencerComponentBase :: {
…}
1219 void CmdSequencerComponentBase ::
1220 schedIn_handlerBase(
1227 portNum < this->getNum_schedIn_InputPorts(),
1236 ComponentIpcSerializableBuffer msg;
1240 _status = msg.serialize(
1249 _status = msg.serialize(portNum);
1256 _status = msg.serialize(context);
1219 void CmdSequencerComponentBase :: {
…}
1272 void CmdSequencerComponentBase ::
1277 portNum < this->getNum_seqCancelIn_InputPorts(),
1282 seqCancelIn_preMsgHook(portNum);
1283 ComponentIpcSerializableBuffer msg;
1287 _status = msg.serialize(
1296 _status = msg.serialize(portNum);
1272 void CmdSequencerComponentBase :: {
…}
1312 void CmdSequencerComponentBase ::
1313 seqRunIn_handlerBase(
1320 portNum < this->getNum_seqRunIn_InputPorts(),
1325 seqRunIn_preMsgHook(
1329 ComponentIpcSerializableBuffer msg;
1333 _status = msg.serialize(
1342 _status = msg.serialize(portNum);
1349 _status = msg.serialize(filename);
1312 void CmdSequencerComponentBase :: {
…}
1373 void CmdSequencerComponentBase ::
1374 cmdResponseIn_preMsgHook(
1373 void CmdSequencerComponentBase :: {
…}
1384 void CmdSequencerComponentBase ::
1384 void CmdSequencerComponentBase :: {
…}
1393 void CmdSequencerComponentBase ::
1393 void CmdSequencerComponentBase :: {
…}
1402 void CmdSequencerComponentBase ::
1402 void CmdSequencerComponentBase :: {
…}
1408 void CmdSequencerComponentBase ::
1409 seqRunIn_preMsgHook(
1408 void CmdSequencerComponentBase :: {
…}
1421 void CmdSequencerComponentBase ::
1429 portNum < this->getNum_comCmdOut_OutputPorts(),
1432 this->m_comCmdOut_OutputPort[portNum].invoke(
1421 void CmdSequencerComponentBase :: {
…}
1438 void CmdSequencerComponentBase ::
1445 portNum < this->getNum_pingOut_OutputPorts(),
1448 this->m_pingOut_OutputPort[portNum].invoke(
1438 void CmdSequencerComponentBase :: {
…}
1453 void CmdSequencerComponentBase ::
1462 portNum < this->getNum_seqDone_OutputPorts(),
1465 this->m_seqDone_OutputPort[portNum].invoke(
1453 void CmdSequencerComponentBase :: {
…}
1476 void CmdSequencerComponentBase ::
1483 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1484 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1476 void CmdSequencerComponentBase :: {
…}
1493 void CmdSequencerComponentBase ::
1494 CS_RUN_cmdHandlerBase(
1501 this->CS_RUN_preMsgHook(opCode,cmdSeq);
1505 ComponentIpcSerializableBuffer msg;
1518 _status = msg.serialize(port);
1524 _status = msg.serialize(opCode);
1530 _status = msg.serialize(cmdSeq);
1536 _status = msg.serialize(args);
1493 void CmdSequencerComponentBase :: {
…}
1552 void CmdSequencerComponentBase ::
1553 CS_VALIDATE_cmdHandlerBase(
1560 this->CS_VALIDATE_preMsgHook(opCode,cmdSeq);
1564 ComponentIpcSerializableBuffer msg;
1568 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_VALIDATE));
1577 _status = msg.serialize(port);
1583 _status = msg.serialize(opCode);
1589 _status = msg.serialize(cmdSeq);
1595 _status = msg.serialize(args);
1552 void CmdSequencerComponentBase :: {
…}
1611 void CmdSequencerComponentBase ::
1612 CS_CANCEL_cmdHandlerBase(
1619 this->CS_CANCEL_preMsgHook(opCode,cmdSeq);
1623 ComponentIpcSerializableBuffer msg;
1636 _status = msg.serialize(port);
1642 _status = msg.serialize(opCode);
1648 _status = msg.serialize(cmdSeq);
1654 _status = msg.serialize(args);
1611 void CmdSequencerComponentBase :: {
…}
1670 void CmdSequencerComponentBase ::
1671 CS_START_cmdHandlerBase(
1678 this->CS_START_preMsgHook(opCode,cmdSeq);
1682 ComponentIpcSerializableBuffer msg;
1695 _status = msg.serialize(port);
1701 _status = msg.serialize(opCode);
1707 _status = msg.serialize(cmdSeq);
1713 _status = msg.serialize(args);
1670 void CmdSequencerComponentBase :: {
…}
1729 void CmdSequencerComponentBase ::
1730 CS_STEP_cmdHandlerBase(
1737 this->CS_STEP_preMsgHook(opCode,cmdSeq);
1741 ComponentIpcSerializableBuffer msg;
1754 _status = msg.serialize(port);
1760 _status = msg.serialize(opCode);
1766 _status = msg.serialize(cmdSeq);
1772 _status = msg.serialize(args);
1729 void CmdSequencerComponentBase :: {
…}
1788 void CmdSequencerComponentBase ::
1789 CS_AUTO_cmdHandlerBase(
1796 this->CS_AUTO_preMsgHook(opCode,cmdSeq);
1800 ComponentIpcSerializableBuffer msg;
1813 _status = msg.serialize(port);
1819 _status = msg.serialize(opCode);
1825 _status = msg.serialize(cmdSeq);
1831 _status = msg.serialize(args);
1788 void CmdSequencerComponentBase :: {
…}
1847 void CmdSequencerComponentBase ::
1848 CS_MANUAL_cmdHandlerBase(
1855 this->CS_MANUAL_preMsgHook(opCode,cmdSeq);
1859 ComponentIpcSerializableBuffer msg;
1872 _status = msg.serialize(port);
1878 _status = msg.serialize(opCode);
1884 _status = msg.serialize(cmdSeq);
1890 _status = msg.serialize(args);
1847 void CmdSequencerComponentBase :: {
…}
1906 void CmdSequencerComponentBase ::
1907 CS_JOIN_WAIT_cmdHandlerBase(
1914 this->CS_JOIN_WAIT_preMsgHook(opCode,cmdSeq);
1918 ComponentIpcSerializableBuffer msg;
1922 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_JOIN_WAIT));
1931 _status = msg.serialize(port);
1937 _status = msg.serialize(opCode);
1943 _status = msg.serialize(cmdSeq);
1949 _status = msg.serialize(args);
1906 void CmdSequencerComponentBase :: {
…}
1973 void CmdSequencerComponentBase ::
1973 void CmdSequencerComponentBase :: {
…}
1982 void CmdSequencerComponentBase ::
1983 CS_VALIDATE_preMsgHook(
1982 void CmdSequencerComponentBase :: {
…}
1991 void CmdSequencerComponentBase ::
1992 CS_CANCEL_preMsgHook(
1991 void CmdSequencerComponentBase :: {
…}
2000 void CmdSequencerComponentBase ::
2001 CS_START_preMsgHook(
2000 void CmdSequencerComponentBase :: {
…}
2009 void CmdSequencerComponentBase ::
2009 void CmdSequencerComponentBase :: {
…}
2018 void CmdSequencerComponentBase ::
2018 void CmdSequencerComponentBase :: {
…}
2027 void CmdSequencerComponentBase ::
2028 CS_MANUAL_preMsgHook(
2027 void CmdSequencerComponentBase :: {
…}
2036 void CmdSequencerComponentBase ::
2037 CS_JOIN_WAIT_preMsgHook(
2036 void CmdSequencerComponentBase :: {
…}
2049 void CmdSequencerComponentBase ::
2054 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2055 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2060 _id = this->getIdBase() + EVENTID_CS_SEQUENCELOADED;
2063 if (this->m_logOut_OutputPort[0].isConnected()) {
2067#if FW_AMPCS_COMPATIBLE
2076 _status = fileName.
serialize(_logBuff, 60);
2082 this->m_logOut_OutputPort[0].invoke(
2091#if FW_ENABLE_TEXT_LOGGING
2092 if (this->m_LogText_OutputPort[0].isConnected()) {
2093#if FW_OBJECT_NAMES == 1
2094 const char* _formatString =
2095 "(%s) %s: Loaded sequence %s";
2097 const char* _formatString =
2098 "%s: Loaded sequence %s";
2110 "CS_SequenceLoaded ",
2117 this->m_LogText_OutputPort[0].invoke(
2049 void CmdSequencerComponentBase :: {
…}
2127 void CmdSequencerComponentBase ::
2132 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2133 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2138 _id = this->getIdBase() + EVENTID_CS_SEQUENCECANCELED;
2141 if (this->m_logOut_OutputPort[0].isConnected()) {
2145#if FW_AMPCS_COMPATIBLE
2154 _status = fileName.
serialize(_logBuff, 60);
2160 this->m_logOut_OutputPort[0].invoke(
2169#if FW_ENABLE_TEXT_LOGGING
2170 if (this->m_LogText_OutputPort[0].isConnected()) {
2171#if FW_OBJECT_NAMES == 1
2172 const char* _formatString =
2173 "(%s) %s: Sequence file %s canceled";
2175 const char* _formatString =
2176 "%s: Sequence file %s canceled";
2188 "CS_SequenceCanceled ",
2195 this->m_LogText_OutputPort[0].invoke(
2127 void CmdSequencerComponentBase :: {
…}
2205 void CmdSequencerComponentBase ::
2210 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2211 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2216 _id = this->getIdBase() + EVENTID_CS_FILEREADERROR;
2219 if (this->m_logOut_OutputPort[0].isConnected()) {
2223#if FW_AMPCS_COMPATIBLE
2232 _status = fileName.
serialize(_logBuff, 60);
2238 this->m_logOut_OutputPort[0].invoke(
2247#if FW_ENABLE_TEXT_LOGGING
2248 if (this->m_LogText_OutputPort[0].isConnected()) {
2249#if FW_OBJECT_NAMES == 1
2250 const char* _formatString =
2251 "(%s) %s: Error reading sequence file %s";
2253 const char* _formatString =
2254 "%s: Error reading sequence file %s";
2266 "CS_FileReadError ",
2273 this->m_LogText_OutputPort[0].invoke(
2205 void CmdSequencerComponentBase :: {
…}
2283 void CmdSequencerComponentBase ::
2284 log_WARNING_HI_CS_FileInvalid(
2292 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2293 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2298 _id = this->getIdBase() + EVENTID_CS_FILEINVALID;
2301 if (this->m_logOut_OutputPort[0].isConnected()) {
2305#if FW_AMPCS_COMPATIBLE
2314 _status = fileName.
serialize(_logBuff, 60);
2320#if FW_AMPCS_COMPATIBLE
2336#if FW_AMPCS_COMPATIBLE
2339 static_cast<U8>(
sizeof(I32))
2352 this->m_logOut_OutputPort[0].invoke(
2361#if FW_ENABLE_TEXT_LOGGING
2362 if (this->m_LogText_OutputPort[0].isConnected()) {
2363#if FW_OBJECT_NAMES == 1
2364 const char* _formatString =
2365 "(%s) %s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2367 const char* _formatString =
2368 "%s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2374 stage.toString(stageStr);
2392 this->m_LogText_OutputPort[0].invoke(
2283 void CmdSequencerComponentBase :: {
…}
2402 void CmdSequencerComponentBase ::
2403 log_WARNING_HI_CS_RecordInvalid(
2411 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2412 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2417 _id = this->getIdBase() + EVENTID_CS_RECORDINVALID;
2420 if (this->m_logOut_OutputPort[0].isConnected()) {
2424#if FW_AMPCS_COMPATIBLE
2433 _status = fileName.
serialize(_logBuff, 60);
2439#if FW_AMPCS_COMPATIBLE
2442 static_cast<U8>(
sizeof(U32))
2449 _status = _logBuff.
serialize(recordNumber);
2455#if FW_AMPCS_COMPATIBLE
2458 static_cast<U8>(
sizeof(I32))
2471 this->m_logOut_OutputPort[0].invoke(
2480#if FW_ENABLE_TEXT_LOGGING
2481 if (this->m_LogText_OutputPort[0].isConnected()) {
2482#if FW_OBJECT_NAMES == 1
2483 const char* _formatString =
2484 "(%s) %s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2486 const char* _formatString =
2487 "%s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2499 "CS_RecordInvalid ",
2508 this->m_LogText_OutputPort[0].invoke(
2402 void CmdSequencerComponentBase :: {
…}
2518 void CmdSequencerComponentBase ::
2519 log_WARNING_HI_CS_FileSizeError(
2526 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2527 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2532 _id = this->getIdBase() + EVENTID_CS_FILESIZEERROR;
2535 if (this->m_logOut_OutputPort[0].isConnected()) {
2539#if FW_AMPCS_COMPATIBLE
2548 _status = fileName.
serialize(_logBuff, 60);
2554#if FW_AMPCS_COMPATIBLE
2557 static_cast<U8>(
sizeof(U32))
2570 this->m_logOut_OutputPort[0].invoke(
2579#if FW_ENABLE_TEXT_LOGGING
2580 if (this->m_LogText_OutputPort[0].isConnected()) {
2581#if FW_OBJECT_NAMES == 1
2582 const char* _formatString =
2583 "(%s) %s: Sequence file %s too large. Size: %" PRIu32
"";
2585 const char* _formatString =
2586 "%s: Sequence file %s too large. Size: %" PRIu32
"";
2598 "CS_FileSizeError ",
2606 this->m_LogText_OutputPort[0].invoke(
2518 void CmdSequencerComponentBase :: {
…}
2616 void CmdSequencerComponentBase ::
2621 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2622 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2627 _id = this->getIdBase() + EVENTID_CS_FILENOTFOUND;
2630 if (this->m_logOut_OutputPort[0].isConnected()) {
2634#if FW_AMPCS_COMPATIBLE
2643 _status = fileName.
serialize(_logBuff, 60);
2649 this->m_logOut_OutputPort[0].invoke(
2658#if FW_ENABLE_TEXT_LOGGING
2659 if (this->m_LogText_OutputPort[0].isConnected()) {
2660#if FW_OBJECT_NAMES == 1
2661 const char* _formatString =
2662 "(%s) %s: Sequence file %s not found.";
2664 const char* _formatString =
2665 "%s: Sequence file %s not found.";
2684 this->m_LogText_OutputPort[0].invoke(
2616 void CmdSequencerComponentBase :: {
…}
2694 void CmdSequencerComponentBase ::
2695 log_WARNING_HI_CS_FileCrcFailure(
2703 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2704 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2709 _id = this->getIdBase() + EVENTID_CS_FILECRCFAILURE;
2712 if (this->m_logOut_OutputPort[0].isConnected()) {
2716#if FW_AMPCS_COMPATIBLE
2725 _status = fileName.
serialize(_logBuff, 60);
2731#if FW_AMPCS_COMPATIBLE
2734 static_cast<U8>(
sizeof(U32))
2741 _status = _logBuff.
serialize(storedCRC);
2747#if FW_AMPCS_COMPATIBLE
2750 static_cast<U8>(
sizeof(U32))
2757 _status = _logBuff.
serialize(computedCRC);
2763 this->m_logOut_OutputPort[0].invoke(
2772#if FW_ENABLE_TEXT_LOGGING
2773 if (this->m_LogText_OutputPort[0].isConnected()) {
2774#if FW_OBJECT_NAMES == 1
2775 const char* _formatString =
2776 "(%s) %s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2778 const char* _formatString =
2779 "%s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2791 "CS_FileCrcFailure ",
2800 this->m_LogText_OutputPort[0].invoke(
2694 void CmdSequencerComponentBase :: {
…}
2810 void CmdSequencerComponentBase ::
2811 log_ACTIVITY_LO_CS_CommandComplete(
2819 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2820 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2825 _id = this->getIdBase() + EVENTID_CS_COMMANDCOMPLETE;
2828 if (this->m_logOut_OutputPort[0].isConnected()) {
2832#if FW_AMPCS_COMPATIBLE
2841 _status = fileName.
serialize(_logBuff, 60);
2847#if FW_AMPCS_COMPATIBLE
2850 static_cast<U8>(
sizeof(U32))
2857 _status = _logBuff.
serialize(recordNumber);
2863#if FW_AMPCS_COMPATIBLE
2866 static_cast<U8>(
sizeof(U32))
2879 this->m_logOut_OutputPort[0].invoke(
2888#if FW_ENABLE_TEXT_LOGGING
2889 if (this->m_LogText_OutputPort[0].isConnected()) {
2890#if FW_OBJECT_NAMES == 1
2891 const char* _formatString =
2892 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
2894 const char* _formatString =
2895 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
2907 "CS_CommandComplete ",
2916 this->m_LogText_OutputPort[0].invoke(
2810 void CmdSequencerComponentBase :: {
…}
2926 void CmdSequencerComponentBase ::
2931 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2932 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2937 _id = this->getIdBase() + EVENTID_CS_SEQUENCECOMPLETE;
2940 if (this->m_logOut_OutputPort[0].isConnected()) {
2944#if FW_AMPCS_COMPATIBLE
2953 _status = fileName.
serialize(_logBuff, 60);
2959 this->m_logOut_OutputPort[0].invoke(
2968#if FW_ENABLE_TEXT_LOGGING
2969 if (this->m_LogText_OutputPort[0].isConnected()) {
2970#if FW_OBJECT_NAMES == 1
2971 const char* _formatString =
2972 "(%s) %s: Sequence file %s complete";
2974 const char* _formatString =
2975 "%s: Sequence file %s complete";
2987 "CS_SequenceComplete ",
2994 this->m_LogText_OutputPort[0].invoke(
2926 void CmdSequencerComponentBase :: {
…}
3004 void CmdSequencerComponentBase ::
3005 log_WARNING_HI_CS_CommandError(
3014 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3015 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3020 _id = this->getIdBase() + EVENTID_CS_COMMANDERROR;
3023 if (this->m_logOut_OutputPort[0].isConnected()) {
3027#if FW_AMPCS_COMPATIBLE
3036 _status = fileName.
serialize(_logBuff, 60);
3042#if FW_AMPCS_COMPATIBLE
3045 static_cast<U8>(
sizeof(U32))
3052 _status = _logBuff.
serialize(recordNumber);
3058#if FW_AMPCS_COMPATIBLE
3061 static_cast<U8>(
sizeof(U32))
3074#if FW_AMPCS_COMPATIBLE
3077 static_cast<U8>(
sizeof(U32))
3084 _status = _logBuff.
serialize(errorStatus);
3090 this->m_logOut_OutputPort[0].invoke(
3099#if FW_ENABLE_TEXT_LOGGING
3100 if (this->m_LogText_OutputPort[0].isConnected()) {
3101#if FW_OBJECT_NAMES == 1
3102 const char* _formatString =
3103 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3105 const char* _formatString =
3106 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3128 this->m_LogText_OutputPort[0].invoke(
3004 void CmdSequencerComponentBase :: {
…}
3138 void CmdSequencerComponentBase ::
3139 log_WARNING_HI_CS_InvalidMode()
3143 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3144 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3149 _id = this->getIdBase() + EVENTID_CS_INVALIDMODE;
3152 if (this->m_logOut_OutputPort[0].isConnected()) {
3155#if FW_AMPCS_COMPATIBLE
3165 this->m_logOut_OutputPort[0].invoke(
3174#if FW_ENABLE_TEXT_LOGGING
3175 if (this->m_LogText_OutputPort[0].isConnected()) {
3176#if FW_OBJECT_NAMES == 1
3177 const char* _formatString =
3178 "(%s) %s: Invalid mode";
3180 const char* _formatString =
3199 this->m_LogText_OutputPort[0].invoke(
3138 void CmdSequencerComponentBase :: {
…}
3209 void CmdSequencerComponentBase ::
3210 log_WARNING_HI_CS_RecordMismatch(
3218 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3219 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3224 _id = this->getIdBase() + EVENTID_CS_RECORDMISMATCH;
3227 if (this->m_logOut_OutputPort[0].isConnected()) {
3231#if FW_AMPCS_COMPATIBLE
3240 _status = fileName.
serialize(_logBuff, 60);
3246#if FW_AMPCS_COMPATIBLE
3249 static_cast<U8>(
sizeof(U32))
3256 _status = _logBuff.
serialize(header_records);
3262#if FW_AMPCS_COMPATIBLE
3265 static_cast<U8>(
sizeof(U32))
3272 _status = _logBuff.
serialize(extra_bytes);
3278 this->m_logOut_OutputPort[0].invoke(
3287#if FW_ENABLE_TEXT_LOGGING
3288 if (this->m_LogText_OutputPort[0].isConnected()) {
3289#if FW_OBJECT_NAMES == 1
3290 const char* _formatString =
3291 "(%s) %s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3293 const char* _formatString =
3294 "%s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3306 "CS_RecordMismatch ",
3315 this->m_LogText_OutputPort[0].invoke(
3209 void CmdSequencerComponentBase :: {
…}
3325 void CmdSequencerComponentBase ::
3326 log_WARNING_HI_CS_TimeBaseMismatch(
3334 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3335 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3340 _id = this->getIdBase() + EVENTID_CS_TIMEBASEMISMATCH;
3343 if (this->m_logOut_OutputPort[0].isConnected()) {
3347#if FW_AMPCS_COMPATIBLE
3356 _status = fileName.
serialize(_logBuff, 60);
3362#if FW_AMPCS_COMPATIBLE
3365 static_cast<U8>(
sizeof(U16))
3372 _status = _logBuff.
serialize(time_base);
3378#if FW_AMPCS_COMPATIBLE
3381 static_cast<U8>(
sizeof(U16))
3388 _status = _logBuff.
serialize(seq_time_base);
3394 this->m_logOut_OutputPort[0].invoke(
3403#if FW_ENABLE_TEXT_LOGGING
3404 if (this->m_LogText_OutputPort[0].isConnected()) {
3405#if FW_OBJECT_NAMES == 1
3406 const char* _formatString =
3407 "(%s) %s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3409 const char* _formatString =
3410 "%s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3422 "CS_TimeBaseMismatch ",
3431 this->m_LogText_OutputPort[0].invoke(
3325 void CmdSequencerComponentBase :: {
…}
3441 void CmdSequencerComponentBase ::
3442 log_WARNING_HI_CS_TimeContextMismatch(
3450 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3451 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3456 _id = this->getIdBase() + EVENTID_CS_TIMECONTEXTMISMATCH;
3459 if (this->m_logOut_OutputPort[0].isConnected()) {
3463#if FW_AMPCS_COMPATIBLE
3472 _status = fileName.
serialize(_logBuff, 60);
3478#if FW_AMPCS_COMPATIBLE
3481 static_cast<U8>(
sizeof(
U8))
3488 _status = _logBuff.
serialize(currTimeBase);
3494#if FW_AMPCS_COMPATIBLE
3497 static_cast<U8>(
sizeof(
U8))
3504 _status = _logBuff.
serialize(seqTimeBase);
3510 this->m_logOut_OutputPort[0].invoke(
3519#if FW_ENABLE_TEXT_LOGGING
3520 if (this->m_LogText_OutputPort[0].isConnected()) {
3521#if FW_OBJECT_NAMES == 1
3522 const char* _formatString =
3523 "(%s) %s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3525 const char* _formatString =
3526 "%s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3538 "CS_TimeContextMismatch ",
3547 this->m_LogText_OutputPort[0].invoke(
3441 void CmdSequencerComponentBase :: {
…}
3557 void CmdSequencerComponentBase ::
3562 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3563 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3568 _id = this->getIdBase() + EVENTID_CS_PORTSEQUENCESTARTED;
3571 if (this->m_logOut_OutputPort[0].isConnected()) {
3575#if FW_AMPCS_COMPATIBLE
3584 _status = filename.
serialize(_logBuff, 60);
3590 this->m_logOut_OutputPort[0].invoke(
3599#if FW_ENABLE_TEXT_LOGGING
3600 if (this->m_LogText_OutputPort[0].isConnected()) {
3601#if FW_OBJECT_NAMES == 1
3602 const char* _formatString =
3603 "(%s) %s: Local request for sequence %s started.";
3605 const char* _formatString =
3606 "%s: Local request for sequence %s started.";
3618 "CS_PortSequenceStarted ",
3625 this->m_LogText_OutputPort[0].invoke(
3557 void CmdSequencerComponentBase :: {
…}
3635 void CmdSequencerComponentBase ::
3636 log_WARNING_HI_CS_UnexpectedCompletion(U32 opcode)
3640 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3641 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3646 _id = this->getIdBase() + EVENTID_CS_UNEXPECTEDCOMPLETION;
3649 if (this->m_logOut_OutputPort[0].isConnected()) {
3653#if FW_AMPCS_COMPATIBLE
3662#if FW_AMPCS_COMPATIBLE
3665 static_cast<U8>(
sizeof(U32))
3678 this->m_logOut_OutputPort[0].invoke(
3687#if FW_ENABLE_TEXT_LOGGING
3688 if (this->m_LogText_OutputPort[0].isConnected()) {
3689#if FW_OBJECT_NAMES == 1
3690 const char* _formatString =
3691 "(%s) %s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3693 const char* _formatString =
3694 "%s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3706 "CS_UnexpectedCompletion ",
3713 this->m_LogText_OutputPort[0].invoke(
3635 void CmdSequencerComponentBase :: {
…}
3723 void CmdSequencerComponentBase ::
3728 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3729 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3734 _id = this->getIdBase() + EVENTID_CS_MODESWITCHED;
3737 if (this->m_logOut_OutputPort[0].isConnected()) {
3741#if FW_AMPCS_COMPATIBLE
3750#if FW_AMPCS_COMPATIBLE
3766 this->m_logOut_OutputPort[0].invoke(
3775#if FW_ENABLE_TEXT_LOGGING
3776 if (this->m_LogText_OutputPort[0].isConnected()) {
3777#if FW_OBJECT_NAMES == 1
3778 const char* _formatString =
3779 "(%s) %s: Sequencer switched to %s step mode";
3781 const char* _formatString =
3782 "%s: Sequencer switched to %s step mode";
3788 mode.toString(modeStr);
3804 this->m_LogText_OutputPort[0].invoke(
3723 void CmdSequencerComponentBase :: {
…}
3814 void CmdSequencerComponentBase ::
3815 log_WARNING_LO_CS_NoSequenceActive()
3819 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3820 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3825 _id = this->getIdBase() + EVENTID_CS_NOSEQUENCEACTIVE;
3828 if (this->m_logOut_OutputPort[0].isConnected()) {
3831#if FW_AMPCS_COMPATIBLE
3841 this->m_logOut_OutputPort[0].invoke(
3850#if FW_ENABLE_TEXT_LOGGING
3851 if (this->m_LogText_OutputPort[0].isConnected()) {
3852#if FW_OBJECT_NAMES == 1
3853 const char* _formatString =
3854 "(%s) %s: No sequence active.";
3856 const char* _formatString =
3857 "%s: No sequence active.";
3869 "CS_NoSequenceActive "
3875 this->m_LogText_OutputPort[0].invoke(
3814 void CmdSequencerComponentBase :: {
…}
3885 void CmdSequencerComponentBase ::
3890 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3891 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3896 _id = this->getIdBase() + EVENTID_CS_SEQUENCEVALID;
3899 if (this->m_logOut_OutputPort[0].isConnected()) {
3903#if FW_AMPCS_COMPATIBLE
3912 _status = filename.
serialize(_logBuff, 60);
3918 this->m_logOut_OutputPort[0].invoke(
3927#if FW_ENABLE_TEXT_LOGGING
3928 if (this->m_LogText_OutputPort[0].isConnected()) {
3929#if FW_OBJECT_NAMES == 1
3930 const char* _formatString =
3931 "(%s) %s: Sequence %s is valid.";
3933 const char* _formatString =
3934 "%s: Sequence %s is valid.";
3946 "CS_SequenceValid ",
3953 this->m_LogText_OutputPort[0].invoke(
3885 void CmdSequencerComponentBase :: {
…}
3963 void CmdSequencerComponentBase ::
3964 log_WARNING_HI_CS_SequenceTimeout(
3971 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3972 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3977 _id = this->getIdBase() + EVENTID_CS_SEQUENCETIMEOUT;
3980 if (this->m_logOut_OutputPort[0].isConnected()) {
3984#if FW_AMPCS_COMPATIBLE
3993 _status = filename.
serialize(_logBuff, 60);
3999#if FW_AMPCS_COMPATIBLE
4002 static_cast<U8>(
sizeof(U32))
4015 this->m_logOut_OutputPort[0].invoke(
4024#if FW_ENABLE_TEXT_LOGGING
4025 if (this->m_LogText_OutputPort[0].isConnected()) {
4026#if FW_OBJECT_NAMES == 1
4027 const char* _formatString =
4028 "(%s) %s: Sequence %s timed out on command %" PRIu32
"";
4030 const char* _formatString =
4031 "%s: Sequence %s timed out on command %" PRIu32
"";
4043 "CS_SequenceTimeout ",
4051 this->m_LogText_OutputPort[0].invoke(
3963 void CmdSequencerComponentBase :: {
…}
4061 void CmdSequencerComponentBase ::
4062 log_ACTIVITY_HI_CS_CmdStepped(
4069 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4070 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4075 _id = this->getIdBase() + EVENTID_CS_CMDSTEPPED;
4078 if (this->m_logOut_OutputPort[0].isConnected()) {
4082#if FW_AMPCS_COMPATIBLE
4091 _status = filename.
serialize(_logBuff, 60);
4097#if FW_AMPCS_COMPATIBLE
4100 static_cast<U8>(
sizeof(U32))
4113 this->m_logOut_OutputPort[0].invoke(
4122#if FW_ENABLE_TEXT_LOGGING
4123 if (this->m_LogText_OutputPort[0].isConnected()) {
4124#if FW_OBJECT_NAMES == 1
4125 const char* _formatString =
4126 "(%s) %s: Sequence %s command %" PRIu32
" stepped";
4128 const char* _formatString =
4129 "%s: Sequence %s command %" PRIu32
" stepped";
4149 this->m_LogText_OutputPort[0].invoke(
4061 void CmdSequencerComponentBase :: {
…}
4159 void CmdSequencerComponentBase ::
4164 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4165 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4170 _id = this->getIdBase() + EVENTID_CS_CMDSTARTED;
4173 if (this->m_logOut_OutputPort[0].isConnected()) {
4177#if FW_AMPCS_COMPATIBLE
4186 _status = filename.
serialize(_logBuff, 60);
4192 this->m_logOut_OutputPort[0].invoke(
4201#if FW_ENABLE_TEXT_LOGGING
4202 if (this->m_LogText_OutputPort[0].isConnected()) {
4203#if FW_OBJECT_NAMES == 1
4204 const char* _formatString =
4205 "(%s) %s: Sequence %s started";
4207 const char* _formatString =
4208 "%s: Sequence %s started";
4227 this->m_LogText_OutputPort[0].invoke(
4159 void CmdSequencerComponentBase :: {
…}
4237 void CmdSequencerComponentBase ::
4238 log_ACTIVITY_HI_CS_JoinWaiting(
4246 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4247 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4252 _id = this->getIdBase() + EVENTID_CS_JOINWAITING;
4255 if (this->m_logOut_OutputPort[0].isConnected()) {
4259#if FW_AMPCS_COMPATIBLE
4268 _status = filename.
serialize(_logBuff, 60);
4274#if FW_AMPCS_COMPATIBLE
4277 static_cast<U8>(
sizeof(U32))
4284 _status = _logBuff.
serialize(recordNumber);
4290#if FW_AMPCS_COMPATIBLE
4293 static_cast<U8>(
sizeof(U32))
4306 this->m_logOut_OutputPort[0].invoke(
4315#if FW_ENABLE_TEXT_LOGGING
4316 if (this->m_LogText_OutputPort[0].isConnected()) {
4317#if FW_OBJECT_NAMES == 1
4318 const char* _formatString =
4319 "(%s) %s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4321 const char* _formatString =
4322 "%s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4343 this->m_LogText_OutputPort[0].invoke(
4237 void CmdSequencerComponentBase :: {
…}
4353 void CmdSequencerComponentBase ::
4354 log_WARNING_HI_CS_JoinWaitingNotComplete()
4358 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4359 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4364 _id = this->getIdBase() + EVENTID_CS_JOINWAITINGNOTCOMPLETE;
4367 if (this->m_logOut_OutputPort[0].isConnected()) {
4370#if FW_AMPCS_COMPATIBLE
4380 this->m_logOut_OutputPort[0].invoke(
4389#if FW_ENABLE_TEXT_LOGGING
4390 if (this->m_LogText_OutputPort[0].isConnected()) {
4391#if FW_OBJECT_NAMES == 1
4392 const char* _formatString =
4393 "(%s) %s: Still waiting for sequence file to complete";
4395 const char* _formatString =
4396 "%s: Still waiting for sequence file to complete";
4408 "CS_JoinWaitingNotComplete "
4414 this->m_LogText_OutputPort[0].invoke(
4353 void CmdSequencerComponentBase :: {
…}
4428 void CmdSequencerComponentBase ::
4429 tlmWrite_CS_LoadCommands(
4434 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4436 this->m_timeCaller_OutputPort[0].isConnected() &&
4439 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4451 _id = this->getIdBase() + CHANNELID_CS_LOADCOMMANDS;
4453 this->m_tlmOut_OutputPort[0].invoke(
4428 void CmdSequencerComponentBase :: {
…}
4461 void CmdSequencerComponentBase ::
4462 tlmWrite_CS_CancelCommands(
4467 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4469 this->m_timeCaller_OutputPort[0].isConnected() &&
4472 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4484 _id = this->getIdBase() + CHANNELID_CS_CANCELCOMMANDS;
4486 this->m_tlmOut_OutputPort[0].invoke(
4461 void CmdSequencerComponentBase :: {
…}
4494 void CmdSequencerComponentBase ::
4500 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4502 this->m_timeCaller_OutputPort[0].isConnected() &&
4505 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4517 _id = this->getIdBase() + CHANNELID_CS_ERRORS;
4519 this->m_tlmOut_OutputPort[0].invoke(
4494 void CmdSequencerComponentBase :: {
…}
4527 void CmdSequencerComponentBase ::
4528 tlmWrite_CS_CommandsExecuted(
4533 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4535 this->m_timeCaller_OutputPort[0].isConnected() &&
4538 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4550 _id = this->getIdBase() + CHANNELID_CS_COMMANDSEXECUTED;
4552 this->m_tlmOut_OutputPort[0].invoke(
4527 void CmdSequencerComponentBase :: {
…}
4560 void CmdSequencerComponentBase ::
4561 tlmWrite_CS_SequencesCompleted(
4566 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4568 this->m_timeCaller_OutputPort[0].isConnected() &&
4571 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4583 _id = this->getIdBase() + CHANNELID_CS_SEQUENCESCOMPLETED;
4585 this->m_tlmOut_OutputPort[0].invoke(
4560 void CmdSequencerComponentBase :: {
…}
4600 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4602 this->m_timeCaller_OutputPort[0].invoke(_time);
4617 ComponentIpcSerializableBuffer msg;
4640 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
4642 if (msgType == CMDSEQUENCER_COMPONENT_EXIT) {
4643 return MSG_DISPATCH_EXIT;
4647 deserStatus = msg.deserialize(portNum);
4655 case CMDRESPONSEIN_CMDRESPONSE: {
4658 deserStatus = msg.deserialize(opCode);
4666 deserStatus = msg.deserialize(cmdSeq);
4674 deserStatus = msg.deserialize(response);
4680 this->cmdResponseIn_handler(
4694 deserStatus = msg.deserialize(key);
4700 this->pingIn_handler(
4709 case SCHEDIN_SCHED: {
4712 deserStatus = msg.deserialize(context);
4718 this->schedIn_handler(
4727 case SEQCANCELIN_CMDSEQCANCEL: {
4729 this->seqCancelIn_handler(portNum);
4735 case SEQRUNIN_CMDSEQIN: {
4738 deserStatus = msg.deserialize(filename);
4744 this->seqRunIn_handler(
4756 deserStatus = msg.deserialize(opCode);
4764 deserStatus = msg.deserialize(cmdSeq);
4772 deserStatus = msg.deserialize(args);
4785 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4786 this->cmdResponse_out(
4800 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4801 this->cmdResponse_out(
4813#if FW_CMD_CHECK_RESIDUAL
4815 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4824 this->CS_RUN_cmdHandler(
4834 case CMD_CS_VALIDATE: {
4837 deserStatus = msg.deserialize(opCode);
4845 deserStatus = msg.deserialize(cmdSeq);
4853 deserStatus = msg.deserialize(args);
4866 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4867 this->cmdResponse_out(
4879#if FW_CMD_CHECK_RESIDUAL
4881 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4890 this->CS_VALIDATE_cmdHandler(
4899 case CMD_CS_CANCEL: {
4902 deserStatus = msg.deserialize(opCode);
4910 deserStatus = msg.deserialize(cmdSeq);
4918 deserStatus = msg.deserialize(args);
4929#if FW_CMD_CHECK_RESIDUAL
4931 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4940 this->CS_CANCEL_cmdHandler(opCode, cmdSeq);
4946 case CMD_CS_START: {
4949 deserStatus = msg.deserialize(opCode);
4957 deserStatus = msg.deserialize(cmdSeq);
4965 deserStatus = msg.deserialize(args);
4976#if FW_CMD_CHECK_RESIDUAL
4978 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4987 this->CS_START_cmdHandler(opCode, cmdSeq);
4996 deserStatus = msg.deserialize(opCode);
5004 deserStatus = msg.deserialize(cmdSeq);
5012 deserStatus = msg.deserialize(args);
5023#if FW_CMD_CHECK_RESIDUAL
5025 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5034 this->CS_STEP_cmdHandler(opCode, cmdSeq);
5043 deserStatus = msg.deserialize(opCode);
5051 deserStatus = msg.deserialize(cmdSeq);
5059 deserStatus = msg.deserialize(args);
5070#if FW_CMD_CHECK_RESIDUAL
5072 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5081 this->CS_AUTO_cmdHandler(opCode, cmdSeq);
5087 case CMD_CS_MANUAL: {
5090 deserStatus = msg.deserialize(opCode);
5098 deserStatus = msg.deserialize(cmdSeq);
5106 deserStatus = msg.deserialize(args);
5117#if FW_CMD_CHECK_RESIDUAL
5119 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5128 this->CS_MANUAL_cmdHandler(opCode, cmdSeq);
5134 case CMD_CS_JOIN_WAIT: {
5137 deserStatus = msg.deserialize(opCode);
5145 deserStatus = msg.deserialize(cmdSeq);
5153 deserStatus = msg.deserialize(args);
5164#if FW_CMD_CHECK_RESIDUAL
5166 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5175 this->CS_JOIN_WAIT_cmdHandler(opCode, cmdSeq);
5181 return MSG_DISPATCH_ERROR;
5184 return MSG_DISPATCH_OK;
5191 void CmdSequencerComponentBase ::
5201 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5203 const U32 idBase = callComp->
getIdBase();
5204 FW_ASSERT(opCode >= idBase, opCode, idBase);
5207 switch (opCode - idBase) {
5208 case OPCODE_CS_RUN: {
5209 compPtr->CS_RUN_cmdHandlerBase(
5217 case OPCODE_CS_VALIDATE: {
5218 compPtr->CS_VALIDATE_cmdHandlerBase(
5226 case OPCODE_CS_CANCEL: {
5227 compPtr->CS_CANCEL_cmdHandlerBase(
5235 case OPCODE_CS_START: {
5236 compPtr->CS_START_cmdHandlerBase(
5244 case OPCODE_CS_STEP: {
5245 compPtr->CS_STEP_cmdHandlerBase(
5253 case OPCODE_CS_AUTO: {
5254 compPtr->CS_AUTO_cmdHandlerBase(
5262 case OPCODE_CS_MANUAL: {
5263 compPtr->CS_MANUAL_cmdHandlerBase(
5271 case OPCODE_CS_JOIN_WAIT: {
5272 compPtr->CS_JOIN_WAIT_cmdHandlerBase(
5286 void CmdSequencerComponentBase ::
5287 m_p_cmdResponseIn_in(
5296 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5297 compPtr->cmdResponseIn_handlerBase(
5305 void CmdSequencerComponentBase ::
5313 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5314 compPtr->pingIn_handlerBase(
5320 void CmdSequencerComponentBase ::
5328 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5329 compPtr->schedIn_handlerBase(
5335 void CmdSequencerComponentBase ::
5342 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5343 compPtr->seqCancelIn_handlerBase(portNum);
5346 void CmdSequencerComponentBase ::
5354 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5355 compPtr->seqRunIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
@ ACTIVE_COMPONENT_EXIT
message to exit active component task
Enum representing a command response.
@ FORMAT_ERROR
Command failed to deserialize.
@ WARNING_HI
A serious but recoverable event.
@ ACTIVITY_HI
Important informational events.
@ WARNING_LO
A less serious but recoverable event.
@ ACTIVITY_LO
Less important informational events.
const char * toChar() const override
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
void init()
Object initializer.
NATIVE_UINT_TYPE getBuffLeft() const
returns how much deserialization buffer is left
void resetDeser()
reset deserialization to beginning
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
const char * toChar() const
gets char buffer
@ QUEUE_OK
message sent/received okay
@ QUEUE_BLOCKING
Queue receive blocks until a message arrives.
@ QUEUE_NONBLOCKING
Queue receive always returns even if there is no message.
Sequencer blocking state.
The stage of the file read operation.
@ SERIALIZED_SIZE
The size of the serial representation.
@ SERIALIZED_SIZE
The size of the serial representation.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.