11#if FW_ENABLE_TEXT_LOGGING
20 CMDRESPONSEIN_CMDRESPONSE,
23 SEQCANCELIN_CMDSEQCANCEL,
47 class ComponentIpcSerializableBuffer :
62 return sizeof(m_buff);
69 const U8* getBuffAddr()
const {
75 U8 m_buff[SERIALIZATION_SIZE];
84 void CmdSequencerComponentBase ::
96 port < static_cast<PlatformIntType>(this->getNum_cmdIn_InputPorts());
99 this->m_cmdIn_InputPort[port].init();
100 this->m_cmdIn_InputPort[port].addCallComp(
104 this->m_cmdIn_InputPort[port].setPortNum(port);
106#if FW_OBJECT_NAMES == 1
115 this->m_cmdIn_InputPort[port].setObjName(portName);
122 port < static_cast<PlatformIntType>(this->getNum_cmdResponseIn_InputPorts());
125 this->m_cmdResponseIn_InputPort[port].init();
126 this->m_cmdResponseIn_InputPort[port].addCallComp(
130 this->m_cmdResponseIn_InputPort[port].setPortNum(port);
132#if FW_OBJECT_NAMES == 1
141 this->m_cmdResponseIn_InputPort[port].setObjName(portName);
148 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
151 this->m_pingIn_InputPort[port].init();
152 this->m_pingIn_InputPort[port].addCallComp(
156 this->m_pingIn_InputPort[port].setPortNum(port);
158#if FW_OBJECT_NAMES == 1
167 this->m_pingIn_InputPort[port].setObjName(portName);
174 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
177 this->m_schedIn_InputPort[port].init();
178 this->m_schedIn_InputPort[port].addCallComp(
182 this->m_schedIn_InputPort[port].setPortNum(port);
184#if FW_OBJECT_NAMES == 1
193 this->m_schedIn_InputPort[port].setObjName(portName);
200 port < static_cast<PlatformIntType>(this->getNum_seqCancelIn_InputPorts());
203 this->m_seqCancelIn_InputPort[port].init();
204 this->m_seqCancelIn_InputPort[port].addCallComp(
208 this->m_seqCancelIn_InputPort[port].setPortNum(port);
210#if FW_OBJECT_NAMES == 1
219 this->m_seqCancelIn_InputPort[port].setObjName(portName);
226 port < static_cast<PlatformIntType>(this->getNum_seqRunIn_InputPorts());
229 this->m_seqRunIn_InputPort[port].init();
230 this->m_seqRunIn_InputPort[port].addCallComp(
234 this->m_seqRunIn_InputPort[port].setPortNum(port);
236#if FW_OBJECT_NAMES == 1
245 this->m_seqRunIn_InputPort[port].setObjName(portName);
249#if FW_ENABLE_TEXT_LOGGING == 1
253 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
256 this->m_LogText_OutputPort[port].init();
258#if FW_OBJECT_NAMES == 1
267 this->m_LogText_OutputPort[port].setObjName(portName);
275 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
278 this->m_cmdRegOut_OutputPort[port].init();
280#if FW_OBJECT_NAMES == 1
289 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
296 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
299 this->m_cmdResponseOut_OutputPort[port].init();
301#if FW_OBJECT_NAMES == 1
310 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
317 port < static_cast<PlatformIntType>(this->getNum_logOut_OutputPorts());
320 this->m_logOut_OutputPort[port].init();
322#if FW_OBJECT_NAMES == 1
331 this->m_logOut_OutputPort[port].setObjName(portName);
338 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
341 this->m_timeCaller_OutputPort[port].init();
343#if FW_OBJECT_NAMES == 1
352 this->m_timeCaller_OutputPort[port].setObjName(portName);
359 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
362 this->m_tlmOut_OutputPort[port].init();
364#if FW_OBJECT_NAMES == 1
373 this->m_tlmOut_OutputPort[port].setObjName(portName);
380 port < static_cast<PlatformIntType>(this->getNum_comCmdOut_OutputPorts());
383 this->m_comCmdOut_OutputPort[port].init();
385#if FW_OBJECT_NAMES == 1
394 this->m_comCmdOut_OutputPort[port].setObjName(portName);
401 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
404 this->m_pingOut_OutputPort[port].init();
406#if FW_OBJECT_NAMES == 1
415 this->m_pingOut_OutputPort[port].setObjName(portName);
422 port < static_cast<PlatformIntType>(this->getNum_seqDone_OutputPorts());
425 this->m_seqDone_OutputPort[port].init();
427#if FW_OBJECT_NAMES == 1
436 this->m_seqDone_OutputPort[port].setObjName(portName);
442 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
84 void CmdSequencerComponentBase :: {
…}
458 portNum < this->getNum_cmdIn_InputPorts(),
462 return &this->m_cmdIn_InputPort[portNum];
473 portNum < this->getNum_cmdResponseIn_InputPorts(),
477 return &this->m_cmdResponseIn_InputPort[portNum];
484 portNum < this->getNum_pingIn_InputPorts(),
488 return &this->m_pingIn_InputPort[portNum];
495 portNum < this->getNum_schedIn_InputPorts(),
499 return &this->m_schedIn_InputPort[portNum];
506 portNum < this->getNum_seqCancelIn_InputPorts(),
510 return &this->m_seqCancelIn_InputPort[portNum];
517 portNum < this->getNum_seqRunIn_InputPorts(),
521 return &this->m_seqRunIn_InputPort[portNum];
528#if FW_ENABLE_TEXT_LOGGING == 1
530 void CmdSequencerComponentBase ::
531 set_LogText_OutputPort(
537 portNum < this->getNum_LogText_OutputPorts(),
541 this->m_LogText_OutputPort[portNum].addCallPort(port);
546 void CmdSequencerComponentBase ::
547 set_cmdRegOut_OutputPort(
553 portNum < this->getNum_cmdRegOut_OutputPorts(),
557 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
546 void CmdSequencerComponentBase :: {
…}
560 void CmdSequencerComponentBase ::
561 set_cmdResponseOut_OutputPort(
567 portNum < this->getNum_cmdResponseOut_OutputPorts(),
571 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
560 void CmdSequencerComponentBase :: {
…}
574 void CmdSequencerComponentBase ::
575 set_logOut_OutputPort(
581 portNum < this->getNum_logOut_OutputPorts(),
585 this->m_logOut_OutputPort[portNum].addCallPort(port);
574 void CmdSequencerComponentBase :: {
…}
588 void CmdSequencerComponentBase ::
589 set_timeCaller_OutputPort(
595 portNum < this->getNum_timeCaller_OutputPorts(),
599 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
588 void CmdSequencerComponentBase :: {
…}
602 void CmdSequencerComponentBase ::
603 set_tlmOut_OutputPort(
609 portNum < this->getNum_tlmOut_OutputPorts(),
613 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
602 void CmdSequencerComponentBase :: {
…}
620 void CmdSequencerComponentBase ::
621 set_comCmdOut_OutputPort(
627 portNum < this->getNum_comCmdOut_OutputPorts(),
631 this->m_comCmdOut_OutputPort[portNum].addCallPort(port);
620 void CmdSequencerComponentBase :: {
…}
634 void CmdSequencerComponentBase ::
635 set_pingOut_OutputPort(
641 portNum < this->getNum_pingOut_OutputPorts(),
645 this->m_pingOut_OutputPort[portNum].addCallPort(port);
634 void CmdSequencerComponentBase :: {
…}
648 void CmdSequencerComponentBase ::
649 set_seqDone_OutputPort(
655 portNum < this->getNum_seqDone_OutputPorts(),
659 this->m_seqDone_OutputPort[portNum].addCallPort(port);
648 void CmdSequencerComponentBase :: {
…}
662#if FW_PORT_SERIALIZATION
668#if FW_ENABLE_TEXT_LOGGING == 1
670 void CmdSequencerComponentBase ::
671 set_LogText_OutputPort(
673 Fw::InputSerializePort* port
677 portNum < this->getNum_LogText_OutputPorts(),
681 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
686 void CmdSequencerComponentBase ::
687 set_cmdRegOut_OutputPort(
689 Fw::InputSerializePort* port
693 portNum < this->getNum_cmdRegOut_OutputPorts(),
697 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
700 void CmdSequencerComponentBase ::
701 set_cmdResponseOut_OutputPort(
703 Fw::InputSerializePort* port
707 portNum < this->getNum_cmdResponseOut_OutputPorts(),
711 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
714 void CmdSequencerComponentBase ::
715 set_logOut_OutputPort(
717 Fw::InputSerializePort* port
721 portNum < this->getNum_logOut_OutputPorts(),
725 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
728 void CmdSequencerComponentBase ::
729 set_timeCaller_OutputPort(
731 Fw::InputSerializePort* port
735 portNum < this->getNum_timeCaller_OutputPorts(),
739 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
742 void CmdSequencerComponentBase ::
743 set_tlmOut_OutputPort(
745 Fw::InputSerializePort* port
749 portNum < this->getNum_tlmOut_OutputPorts(),
753 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
758#if FW_PORT_SERIALIZATION
764 void CmdSequencerComponentBase ::
765 set_comCmdOut_OutputPort(
767 Fw::InputSerializePort* port
771 portNum < this->getNum_comCmdOut_OutputPorts(),
775 this->m_comCmdOut_OutputPort[portNum].registerSerialPort(port);
778 void CmdSequencerComponentBase ::
779 set_pingOut_OutputPort(
781 Fw::InputSerializePort* port
785 portNum < this->getNum_pingOut_OutputPorts(),
789 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
792 void CmdSequencerComponentBase ::
793 set_seqDone_OutputPort(
795 Fw::InputSerializePort* port
799 portNum < this->getNum_seqDone_OutputPorts(),
803 this->m_seqDone_OutputPort[portNum].registerSerialPort(port);
812 void CmdSequencerComponentBase ::
815 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
817 this->m_cmdRegOut_OutputPort[0].invoke(
818 this->getIdBase() + OPCODE_CS_RUN
821 this->m_cmdRegOut_OutputPort[0].invoke(
822 this->getIdBase() + OPCODE_CS_VALIDATE
825 this->m_cmdRegOut_OutputPort[0].invoke(
826 this->getIdBase() + OPCODE_CS_CANCEL
829 this->m_cmdRegOut_OutputPort[0].invoke(
830 this->getIdBase() + OPCODE_CS_START
833 this->m_cmdRegOut_OutputPort[0].invoke(
834 this->getIdBase() + OPCODE_CS_STEP
837 this->m_cmdRegOut_OutputPort[0].invoke(
838 this->getIdBase() + OPCODE_CS_AUTO
841 this->m_cmdRegOut_OutputPort[0].invoke(
842 this->getIdBase() + OPCODE_CS_MANUAL
845 this->m_cmdRegOut_OutputPort[0].invoke(
846 this->getIdBase() + OPCODE_CS_JOIN_WAIT
812 void CmdSequencerComponentBase :: {
…}
854 CmdSequencerComponentBase ::
855 CmdSequencerComponentBase(
const char* compName) :
856 Fw::ActiveComponentBase(compName)
854 CmdSequencerComponentBase :: {
…}
861 CmdSequencerComponentBase ::
862 ~CmdSequencerComponentBase()
861 CmdSequencerComponentBase :: {
…}
872 getNum_cmdIn_InputPorts()
882 getNum_cmdResponseIn_InputPorts()
888 getNum_pingIn_InputPorts()
894 getNum_schedIn_InputPorts()
900 getNum_seqCancelIn_InputPorts()
906 getNum_seqRunIn_InputPorts()
915#if FW_ENABLE_TEXT_LOGGING == 1
918 getNum_LogText_OutputPorts()
926 getNum_cmdRegOut_OutputPorts()
932 getNum_cmdResponseOut_OutputPorts()
938 getNum_logOut_OutputPorts()
944 getNum_timeCaller_OutputPorts()
950 getNum_tlmOut_OutputPorts()
960 getNum_comCmdOut_OutputPorts()
966 getNum_pingOut_OutputPorts()
972 getNum_seqDone_OutputPorts()
981#if FW_ENABLE_TEXT_LOGGING == 1
983 bool CmdSequencerComponentBase ::
987 portNum < this->getNum_LogText_OutputPorts(),
991 return this->m_LogText_OutputPort[portNum].isConnected();
996 bool CmdSequencerComponentBase ::
1000 portNum < this->getNum_cmdRegOut_OutputPorts(),
1004 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
996 bool CmdSequencerComponentBase :: {
…}
1007 bool CmdSequencerComponentBase ::
1011 portNum < this->getNum_cmdResponseOut_OutputPorts(),
1015 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
1007 bool CmdSequencerComponentBase :: {
…}
1018 bool CmdSequencerComponentBase ::
1022 portNum < this->getNum_logOut_OutputPorts(),
1026 return this->m_logOut_OutputPort[portNum].isConnected();
1018 bool CmdSequencerComponentBase :: {
…}
1029 bool CmdSequencerComponentBase ::
1033 portNum < this->getNum_timeCaller_OutputPorts(),
1037 return this->m_timeCaller_OutputPort[portNum].isConnected();
1029 bool CmdSequencerComponentBase :: {
…}
1040 bool CmdSequencerComponentBase ::
1044 portNum < this->getNum_tlmOut_OutputPorts(),
1048 return this->m_tlmOut_OutputPort[portNum].isConnected();
1040 bool CmdSequencerComponentBase :: {
…}
1055 bool CmdSequencerComponentBase ::
1059 portNum < this->getNum_comCmdOut_OutputPorts(),
1063 return this->m_comCmdOut_OutputPort[portNum].isConnected();
1055 bool CmdSequencerComponentBase :: {
…}
1066 bool CmdSequencerComponentBase ::
1070 portNum < this->getNum_pingOut_OutputPorts(),
1074 return this->m_pingOut_OutputPort[portNum].isConnected();
1066 bool CmdSequencerComponentBase :: {
…}
1077 bool CmdSequencerComponentBase ::
1081 portNum < this->getNum_seqDone_OutputPorts(),
1085 return this->m_seqDone_OutputPort[portNum].isConnected();
1077 bool CmdSequencerComponentBase :: {
…}
1094 void CmdSequencerComponentBase ::
1095 cmdResponseIn_handlerBase(
1104 portNum < this->getNum_cmdResponseIn_InputPorts(),
1109 cmdResponseIn_preMsgHook(
1115 ComponentIpcSerializableBuffer msg;
1119 _status = msg.serialize(
1128 _status = msg.serialize(portNum);
1135 _status = msg.serialize(opCode);
1142 _status = msg.serialize(cmdSeq);
1149 _status = msg.serialize(response);
1094 void CmdSequencerComponentBase :: {
…}
1165 void CmdSequencerComponentBase ::
1173 portNum < this->getNum_pingIn_InputPorts(),
1182 ComponentIpcSerializableBuffer msg;
1186 _status = msg.serialize(
1195 _status = msg.serialize(portNum);
1202 _status = msg.serialize(key);
1165 void CmdSequencerComponentBase :: {
…}
1218 void CmdSequencerComponentBase ::
1219 schedIn_handlerBase(
1226 portNum < this->getNum_schedIn_InputPorts(),
1235 ComponentIpcSerializableBuffer msg;
1239 _status = msg.serialize(
1248 _status = msg.serialize(portNum);
1255 _status = msg.serialize(context);
1218 void CmdSequencerComponentBase :: {
…}
1271 void CmdSequencerComponentBase ::
1276 portNum < this->getNum_seqCancelIn_InputPorts(),
1281 seqCancelIn_preMsgHook(portNum);
1282 ComponentIpcSerializableBuffer msg;
1286 _status = msg.serialize(
1295 _status = msg.serialize(portNum);
1271 void CmdSequencerComponentBase :: {
…}
1311 void CmdSequencerComponentBase ::
1312 seqRunIn_handlerBase(
1319 portNum < this->getNum_seqRunIn_InputPorts(),
1324 seqRunIn_preMsgHook(
1328 ComponentIpcSerializableBuffer msg;
1332 _status = msg.serialize(
1341 _status = msg.serialize(portNum);
1348 _status = msg.serialize(filename);
1311 void CmdSequencerComponentBase :: {
…}
1372 void CmdSequencerComponentBase ::
1373 cmdResponseIn_preMsgHook(
1372 void CmdSequencerComponentBase :: {
…}
1383 void CmdSequencerComponentBase ::
1383 void CmdSequencerComponentBase :: {
…}
1392 void CmdSequencerComponentBase ::
1392 void CmdSequencerComponentBase :: {
…}
1401 void CmdSequencerComponentBase ::
1401 void CmdSequencerComponentBase :: {
…}
1407 void CmdSequencerComponentBase ::
1408 seqRunIn_preMsgHook(
1407 void CmdSequencerComponentBase :: {
…}
1420 void CmdSequencerComponentBase ::
1428 portNum < this->getNum_comCmdOut_OutputPorts(),
1431 this->m_comCmdOut_OutputPort[portNum].invoke(
1420 void CmdSequencerComponentBase :: {
…}
1437 void CmdSequencerComponentBase ::
1444 portNum < this->getNum_pingOut_OutputPorts(),
1447 this->m_pingOut_OutputPort[portNum].invoke(
1437 void CmdSequencerComponentBase :: {
…}
1452 void CmdSequencerComponentBase ::
1461 portNum < this->getNum_seqDone_OutputPorts(),
1464 this->m_seqDone_OutputPort[portNum].invoke(
1452 void CmdSequencerComponentBase :: {
…}
1475 void CmdSequencerComponentBase ::
1482 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1483 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1475 void CmdSequencerComponentBase :: {
…}
1492 void CmdSequencerComponentBase ::
1493 CS_RUN_cmdHandlerBase(
1500 this->CS_RUN_preMsgHook(opCode,cmdSeq);
1504 ComponentIpcSerializableBuffer msg;
1517 _status = msg.serialize(port);
1523 _status = msg.serialize(opCode);
1529 _status = msg.serialize(cmdSeq);
1535 _status = msg.serialize(args);
1492 void CmdSequencerComponentBase :: {
…}
1551 void CmdSequencerComponentBase ::
1552 CS_VALIDATE_cmdHandlerBase(
1559 this->CS_VALIDATE_preMsgHook(opCode,cmdSeq);
1563 ComponentIpcSerializableBuffer msg;
1567 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_VALIDATE));
1576 _status = msg.serialize(port);
1582 _status = msg.serialize(opCode);
1588 _status = msg.serialize(cmdSeq);
1594 _status = msg.serialize(args);
1551 void CmdSequencerComponentBase :: {
…}
1610 void CmdSequencerComponentBase ::
1611 CS_CANCEL_cmdHandlerBase(
1618 this->CS_CANCEL_preMsgHook(opCode,cmdSeq);
1622 ComponentIpcSerializableBuffer msg;
1635 _status = msg.serialize(port);
1641 _status = msg.serialize(opCode);
1647 _status = msg.serialize(cmdSeq);
1653 _status = msg.serialize(args);
1610 void CmdSequencerComponentBase :: {
…}
1669 void CmdSequencerComponentBase ::
1670 CS_START_cmdHandlerBase(
1677 this->CS_START_preMsgHook(opCode,cmdSeq);
1681 ComponentIpcSerializableBuffer msg;
1694 _status = msg.serialize(port);
1700 _status = msg.serialize(opCode);
1706 _status = msg.serialize(cmdSeq);
1712 _status = msg.serialize(args);
1669 void CmdSequencerComponentBase :: {
…}
1728 void CmdSequencerComponentBase ::
1729 CS_STEP_cmdHandlerBase(
1736 this->CS_STEP_preMsgHook(opCode,cmdSeq);
1740 ComponentIpcSerializableBuffer msg;
1753 _status = msg.serialize(port);
1759 _status = msg.serialize(opCode);
1765 _status = msg.serialize(cmdSeq);
1771 _status = msg.serialize(args);
1728 void CmdSequencerComponentBase :: {
…}
1787 void CmdSequencerComponentBase ::
1788 CS_AUTO_cmdHandlerBase(
1795 this->CS_AUTO_preMsgHook(opCode,cmdSeq);
1799 ComponentIpcSerializableBuffer msg;
1812 _status = msg.serialize(port);
1818 _status = msg.serialize(opCode);
1824 _status = msg.serialize(cmdSeq);
1830 _status = msg.serialize(args);
1787 void CmdSequencerComponentBase :: {
…}
1846 void CmdSequencerComponentBase ::
1847 CS_MANUAL_cmdHandlerBase(
1854 this->CS_MANUAL_preMsgHook(opCode,cmdSeq);
1858 ComponentIpcSerializableBuffer msg;
1871 _status = msg.serialize(port);
1877 _status = msg.serialize(opCode);
1883 _status = msg.serialize(cmdSeq);
1889 _status = msg.serialize(args);
1846 void CmdSequencerComponentBase :: {
…}
1905 void CmdSequencerComponentBase ::
1906 CS_JOIN_WAIT_cmdHandlerBase(
1913 this->CS_JOIN_WAIT_preMsgHook(opCode,cmdSeq);
1917 ComponentIpcSerializableBuffer msg;
1921 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_JOIN_WAIT));
1930 _status = msg.serialize(port);
1936 _status = msg.serialize(opCode);
1942 _status = msg.serialize(cmdSeq);
1948 _status = msg.serialize(args);
1905 void CmdSequencerComponentBase :: {
…}
1972 void CmdSequencerComponentBase ::
1972 void CmdSequencerComponentBase :: {
…}
1981 void CmdSequencerComponentBase ::
1982 CS_VALIDATE_preMsgHook(
1981 void CmdSequencerComponentBase :: {
…}
1990 void CmdSequencerComponentBase ::
1991 CS_CANCEL_preMsgHook(
1990 void CmdSequencerComponentBase :: {
…}
1999 void CmdSequencerComponentBase ::
2000 CS_START_preMsgHook(
1999 void CmdSequencerComponentBase :: {
…}
2008 void CmdSequencerComponentBase ::
2008 void CmdSequencerComponentBase :: {
…}
2017 void CmdSequencerComponentBase ::
2017 void CmdSequencerComponentBase :: {
…}
2026 void CmdSequencerComponentBase ::
2027 CS_MANUAL_preMsgHook(
2026 void CmdSequencerComponentBase :: {
…}
2035 void CmdSequencerComponentBase ::
2036 CS_JOIN_WAIT_preMsgHook(
2035 void CmdSequencerComponentBase :: {
…}
2048 void CmdSequencerComponentBase ::
2053 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2054 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2059 _id = this->getIdBase() + EVENTID_CS_SEQUENCELOADED;
2062 if (this->m_logOut_OutputPort[0].isConnected()) {
2066#if FW_AMPCS_COMPATIBLE
2075 _status = fileName.
serialize(_logBuff, 60);
2081 this->m_logOut_OutputPort[0].invoke(
2090#if FW_ENABLE_TEXT_LOGGING
2091 if (this->m_LogText_OutputPort[0].isConnected()) {
2092#if FW_OBJECT_NAMES == 1
2093 const char* _formatString =
2094 "(%s) %s: Loaded sequence %s";
2096 const char* _formatString =
2097 "%s: Loaded sequence %s";
2109 "CS_SequenceLoaded ",
2116 this->m_LogText_OutputPort[0].invoke(
2048 void CmdSequencerComponentBase :: {
…}
2126 void CmdSequencerComponentBase ::
2131 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2132 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2137 _id = this->getIdBase() + EVENTID_CS_SEQUENCECANCELED;
2140 if (this->m_logOut_OutputPort[0].isConnected()) {
2144#if FW_AMPCS_COMPATIBLE
2153 _status = fileName.
serialize(_logBuff, 60);
2159 this->m_logOut_OutputPort[0].invoke(
2168#if FW_ENABLE_TEXT_LOGGING
2169 if (this->m_LogText_OutputPort[0].isConnected()) {
2170#if FW_OBJECT_NAMES == 1
2171 const char* _formatString =
2172 "(%s) %s: Sequence file %s canceled";
2174 const char* _formatString =
2175 "%s: Sequence file %s canceled";
2187 "CS_SequenceCanceled ",
2194 this->m_LogText_OutputPort[0].invoke(
2126 void CmdSequencerComponentBase :: {
…}
2204 void CmdSequencerComponentBase ::
2209 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2210 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2215 _id = this->getIdBase() + EVENTID_CS_FILEREADERROR;
2218 if (this->m_logOut_OutputPort[0].isConnected()) {
2222#if FW_AMPCS_COMPATIBLE
2231 _status = fileName.
serialize(_logBuff, 60);
2237 this->m_logOut_OutputPort[0].invoke(
2246#if FW_ENABLE_TEXT_LOGGING
2247 if (this->m_LogText_OutputPort[0].isConnected()) {
2248#if FW_OBJECT_NAMES == 1
2249 const char* _formatString =
2250 "(%s) %s: Error reading sequence file %s";
2252 const char* _formatString =
2253 "%s: Error reading sequence file %s";
2265 "CS_FileReadError ",
2272 this->m_LogText_OutputPort[0].invoke(
2204 void CmdSequencerComponentBase :: {
…}
2282 void CmdSequencerComponentBase ::
2283 log_WARNING_HI_CS_FileInvalid(
2291 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2292 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2297 _id = this->getIdBase() + EVENTID_CS_FILEINVALID;
2300 if (this->m_logOut_OutputPort[0].isConnected()) {
2304#if FW_AMPCS_COMPATIBLE
2313 _status = fileName.
serialize(_logBuff, 60);
2319#if FW_AMPCS_COMPATIBLE
2335#if FW_AMPCS_COMPATIBLE
2338 static_cast<U8>(
sizeof(I32))
2351 this->m_logOut_OutputPort[0].invoke(
2360#if FW_ENABLE_TEXT_LOGGING
2361 if (this->m_LogText_OutputPort[0].isConnected()) {
2362#if FW_OBJECT_NAMES == 1
2363 const char* _formatString =
2364 "(%s) %s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2366 const char* _formatString =
2367 "%s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2373 stage.toString(stageStr);
2391 this->m_LogText_OutputPort[0].invoke(
2282 void CmdSequencerComponentBase :: {
…}
2401 void CmdSequencerComponentBase ::
2402 log_WARNING_HI_CS_RecordInvalid(
2410 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2411 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2416 _id = this->getIdBase() + EVENTID_CS_RECORDINVALID;
2419 if (this->m_logOut_OutputPort[0].isConnected()) {
2423#if FW_AMPCS_COMPATIBLE
2432 _status = fileName.
serialize(_logBuff, 60);
2438#if FW_AMPCS_COMPATIBLE
2441 static_cast<U8>(
sizeof(U32))
2448 _status = _logBuff.
serialize(recordNumber);
2454#if FW_AMPCS_COMPATIBLE
2457 static_cast<U8>(
sizeof(I32))
2470 this->m_logOut_OutputPort[0].invoke(
2479#if FW_ENABLE_TEXT_LOGGING
2480 if (this->m_LogText_OutputPort[0].isConnected()) {
2481#if FW_OBJECT_NAMES == 1
2482 const char* _formatString =
2483 "(%s) %s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2485 const char* _formatString =
2486 "%s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2498 "CS_RecordInvalid ",
2507 this->m_LogText_OutputPort[0].invoke(
2401 void CmdSequencerComponentBase :: {
…}
2517 void CmdSequencerComponentBase ::
2518 log_WARNING_HI_CS_FileSizeError(
2525 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2526 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2531 _id = this->getIdBase() + EVENTID_CS_FILESIZEERROR;
2534 if (this->m_logOut_OutputPort[0].isConnected()) {
2538#if FW_AMPCS_COMPATIBLE
2547 _status = fileName.
serialize(_logBuff, 60);
2553#if FW_AMPCS_COMPATIBLE
2556 static_cast<U8>(
sizeof(U32))
2569 this->m_logOut_OutputPort[0].invoke(
2578#if FW_ENABLE_TEXT_LOGGING
2579 if (this->m_LogText_OutputPort[0].isConnected()) {
2580#if FW_OBJECT_NAMES == 1
2581 const char* _formatString =
2582 "(%s) %s: Sequence file %s too large. Size: %" PRIu32
"";
2584 const char* _formatString =
2585 "%s: Sequence file %s too large. Size: %" PRIu32
"";
2597 "CS_FileSizeError ",
2605 this->m_LogText_OutputPort[0].invoke(
2517 void CmdSequencerComponentBase :: {
…}
2615 void CmdSequencerComponentBase ::
2620 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2621 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2626 _id = this->getIdBase() + EVENTID_CS_FILENOTFOUND;
2629 if (this->m_logOut_OutputPort[0].isConnected()) {
2633#if FW_AMPCS_COMPATIBLE
2642 _status = fileName.
serialize(_logBuff, 60);
2648 this->m_logOut_OutputPort[0].invoke(
2657#if FW_ENABLE_TEXT_LOGGING
2658 if (this->m_LogText_OutputPort[0].isConnected()) {
2659#if FW_OBJECT_NAMES == 1
2660 const char* _formatString =
2661 "(%s) %s: Sequence file %s not found.";
2663 const char* _formatString =
2664 "%s: Sequence file %s not found.";
2683 this->m_LogText_OutputPort[0].invoke(
2615 void CmdSequencerComponentBase :: {
…}
2693 void CmdSequencerComponentBase ::
2694 log_WARNING_HI_CS_FileCrcFailure(
2702 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2703 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2708 _id = this->getIdBase() + EVENTID_CS_FILECRCFAILURE;
2711 if (this->m_logOut_OutputPort[0].isConnected()) {
2715#if FW_AMPCS_COMPATIBLE
2724 _status = fileName.
serialize(_logBuff, 60);
2730#if FW_AMPCS_COMPATIBLE
2733 static_cast<U8>(
sizeof(U32))
2740 _status = _logBuff.
serialize(storedCRC);
2746#if FW_AMPCS_COMPATIBLE
2749 static_cast<U8>(
sizeof(U32))
2756 _status = _logBuff.
serialize(computedCRC);
2762 this->m_logOut_OutputPort[0].invoke(
2771#if FW_ENABLE_TEXT_LOGGING
2772 if (this->m_LogText_OutputPort[0].isConnected()) {
2773#if FW_OBJECT_NAMES == 1
2774 const char* _formatString =
2775 "(%s) %s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2777 const char* _formatString =
2778 "%s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2790 "CS_FileCrcFailure ",
2799 this->m_LogText_OutputPort[0].invoke(
2693 void CmdSequencerComponentBase :: {
…}
2809 void CmdSequencerComponentBase ::
2810 log_ACTIVITY_LO_CS_CommandComplete(
2818 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2819 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2824 _id = this->getIdBase() + EVENTID_CS_COMMANDCOMPLETE;
2827 if (this->m_logOut_OutputPort[0].isConnected()) {
2831#if FW_AMPCS_COMPATIBLE
2840 _status = fileName.
serialize(_logBuff, 60);
2846#if FW_AMPCS_COMPATIBLE
2849 static_cast<U8>(
sizeof(U32))
2856 _status = _logBuff.
serialize(recordNumber);
2862#if FW_AMPCS_COMPATIBLE
2865 static_cast<U8>(
sizeof(U32))
2878 this->m_logOut_OutputPort[0].invoke(
2887#if FW_ENABLE_TEXT_LOGGING
2888 if (this->m_LogText_OutputPort[0].isConnected()) {
2889#if FW_OBJECT_NAMES == 1
2890 const char* _formatString =
2891 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
2893 const char* _formatString =
2894 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
2906 "CS_CommandComplete ",
2915 this->m_LogText_OutputPort[0].invoke(
2809 void CmdSequencerComponentBase :: {
…}
2925 void CmdSequencerComponentBase ::
2930 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2931 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2936 _id = this->getIdBase() + EVENTID_CS_SEQUENCECOMPLETE;
2939 if (this->m_logOut_OutputPort[0].isConnected()) {
2943#if FW_AMPCS_COMPATIBLE
2952 _status = fileName.
serialize(_logBuff, 60);
2958 this->m_logOut_OutputPort[0].invoke(
2967#if FW_ENABLE_TEXT_LOGGING
2968 if (this->m_LogText_OutputPort[0].isConnected()) {
2969#if FW_OBJECT_NAMES == 1
2970 const char* _formatString =
2971 "(%s) %s: Sequence file %s complete";
2973 const char* _formatString =
2974 "%s: Sequence file %s complete";
2986 "CS_SequenceComplete ",
2993 this->m_LogText_OutputPort[0].invoke(
2925 void CmdSequencerComponentBase :: {
…}
3003 void CmdSequencerComponentBase ::
3004 log_WARNING_HI_CS_CommandError(
3013 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3014 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3019 _id = this->getIdBase() + EVENTID_CS_COMMANDERROR;
3022 if (this->m_logOut_OutputPort[0].isConnected()) {
3026#if FW_AMPCS_COMPATIBLE
3035 _status = fileName.
serialize(_logBuff, 60);
3041#if FW_AMPCS_COMPATIBLE
3044 static_cast<U8>(
sizeof(U32))
3051 _status = _logBuff.
serialize(recordNumber);
3057#if FW_AMPCS_COMPATIBLE
3060 static_cast<U8>(
sizeof(U32))
3073#if FW_AMPCS_COMPATIBLE
3076 static_cast<U8>(
sizeof(U32))
3083 _status = _logBuff.
serialize(errorStatus);
3089 this->m_logOut_OutputPort[0].invoke(
3098#if FW_ENABLE_TEXT_LOGGING
3099 if (this->m_LogText_OutputPort[0].isConnected()) {
3100#if FW_OBJECT_NAMES == 1
3101 const char* _formatString =
3102 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3104 const char* _formatString =
3105 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3127 this->m_LogText_OutputPort[0].invoke(
3003 void CmdSequencerComponentBase :: {
…}
3137 void CmdSequencerComponentBase ::
3138 log_WARNING_HI_CS_InvalidMode()
3142 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3143 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3148 _id = this->getIdBase() + EVENTID_CS_INVALIDMODE;
3151 if (this->m_logOut_OutputPort[0].isConnected()) {
3154#if FW_AMPCS_COMPATIBLE
3164 this->m_logOut_OutputPort[0].invoke(
3173#if FW_ENABLE_TEXT_LOGGING
3174 if (this->m_LogText_OutputPort[0].isConnected()) {
3175#if FW_OBJECT_NAMES == 1
3176 const char* _formatString =
3177 "(%s) %s: Invalid mode";
3179 const char* _formatString =
3198 this->m_LogText_OutputPort[0].invoke(
3137 void CmdSequencerComponentBase :: {
…}
3208 void CmdSequencerComponentBase ::
3209 log_WARNING_HI_CS_RecordMismatch(
3217 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3218 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3223 _id = this->getIdBase() + EVENTID_CS_RECORDMISMATCH;
3226 if (this->m_logOut_OutputPort[0].isConnected()) {
3230#if FW_AMPCS_COMPATIBLE
3239 _status = fileName.
serialize(_logBuff, 60);
3245#if FW_AMPCS_COMPATIBLE
3248 static_cast<U8>(
sizeof(U32))
3255 _status = _logBuff.
serialize(header_records);
3261#if FW_AMPCS_COMPATIBLE
3264 static_cast<U8>(
sizeof(U32))
3271 _status = _logBuff.
serialize(extra_bytes);
3277 this->m_logOut_OutputPort[0].invoke(
3286#if FW_ENABLE_TEXT_LOGGING
3287 if (this->m_LogText_OutputPort[0].isConnected()) {
3288#if FW_OBJECT_NAMES == 1
3289 const char* _formatString =
3290 "(%s) %s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3292 const char* _formatString =
3293 "%s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3305 "CS_RecordMismatch ",
3314 this->m_LogText_OutputPort[0].invoke(
3208 void CmdSequencerComponentBase :: {
…}
3324 void CmdSequencerComponentBase ::
3325 log_WARNING_HI_CS_TimeBaseMismatch(
3333 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3334 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3339 _id = this->getIdBase() + EVENTID_CS_TIMEBASEMISMATCH;
3342 if (this->m_logOut_OutputPort[0].isConnected()) {
3346#if FW_AMPCS_COMPATIBLE
3355 _status = fileName.
serialize(_logBuff, 60);
3361#if FW_AMPCS_COMPATIBLE
3364 static_cast<U8>(
sizeof(U16))
3371 _status = _logBuff.
serialize(time_base);
3377#if FW_AMPCS_COMPATIBLE
3380 static_cast<U8>(
sizeof(U16))
3387 _status = _logBuff.
serialize(seq_time_base);
3393 this->m_logOut_OutputPort[0].invoke(
3402#if FW_ENABLE_TEXT_LOGGING
3403 if (this->m_LogText_OutputPort[0].isConnected()) {
3404#if FW_OBJECT_NAMES == 1
3405 const char* _formatString =
3406 "(%s) %s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3408 const char* _formatString =
3409 "%s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3421 "CS_TimeBaseMismatch ",
3430 this->m_LogText_OutputPort[0].invoke(
3324 void CmdSequencerComponentBase :: {
…}
3440 void CmdSequencerComponentBase ::
3441 log_WARNING_HI_CS_TimeContextMismatch(
3449 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3450 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3455 _id = this->getIdBase() + EVENTID_CS_TIMECONTEXTMISMATCH;
3458 if (this->m_logOut_OutputPort[0].isConnected()) {
3462#if FW_AMPCS_COMPATIBLE
3471 _status = fileName.
serialize(_logBuff, 60);
3477#if FW_AMPCS_COMPATIBLE
3480 static_cast<U8>(
sizeof(
U8))
3487 _status = _logBuff.
serialize(currTimeBase);
3493#if FW_AMPCS_COMPATIBLE
3496 static_cast<U8>(
sizeof(
U8))
3503 _status = _logBuff.
serialize(seqTimeBase);
3509 this->m_logOut_OutputPort[0].invoke(
3518#if FW_ENABLE_TEXT_LOGGING
3519 if (this->m_LogText_OutputPort[0].isConnected()) {
3520#if FW_OBJECT_NAMES == 1
3521 const char* _formatString =
3522 "(%s) %s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3524 const char* _formatString =
3525 "%s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3537 "CS_TimeContextMismatch ",
3546 this->m_LogText_OutputPort[0].invoke(
3440 void CmdSequencerComponentBase :: {
…}
3556 void CmdSequencerComponentBase ::
3561 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3562 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3567 _id = this->getIdBase() + EVENTID_CS_PORTSEQUENCESTARTED;
3570 if (this->m_logOut_OutputPort[0].isConnected()) {
3574#if FW_AMPCS_COMPATIBLE
3583 _status = filename.
serialize(_logBuff, 60);
3589 this->m_logOut_OutputPort[0].invoke(
3598#if FW_ENABLE_TEXT_LOGGING
3599 if (this->m_LogText_OutputPort[0].isConnected()) {
3600#if FW_OBJECT_NAMES == 1
3601 const char* _formatString =
3602 "(%s) %s: Local request for sequence %s started.";
3604 const char* _formatString =
3605 "%s: Local request for sequence %s started.";
3617 "CS_PortSequenceStarted ",
3624 this->m_LogText_OutputPort[0].invoke(
3556 void CmdSequencerComponentBase :: {
…}
3634 void CmdSequencerComponentBase ::
3635 log_WARNING_HI_CS_UnexpectedCompletion(U32 opcode)
3639 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3640 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3645 _id = this->getIdBase() + EVENTID_CS_UNEXPECTEDCOMPLETION;
3648 if (this->m_logOut_OutputPort[0].isConnected()) {
3652#if FW_AMPCS_COMPATIBLE
3661#if FW_AMPCS_COMPATIBLE
3664 static_cast<U8>(
sizeof(U32))
3677 this->m_logOut_OutputPort[0].invoke(
3686#if FW_ENABLE_TEXT_LOGGING
3687 if (this->m_LogText_OutputPort[0].isConnected()) {
3688#if FW_OBJECT_NAMES == 1
3689 const char* _formatString =
3690 "(%s) %s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3692 const char* _formatString =
3693 "%s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3705 "CS_UnexpectedCompletion ",
3712 this->m_LogText_OutputPort[0].invoke(
3634 void CmdSequencerComponentBase :: {
…}
3722 void CmdSequencerComponentBase ::
3727 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3728 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3733 _id = this->getIdBase() + EVENTID_CS_MODESWITCHED;
3736 if (this->m_logOut_OutputPort[0].isConnected()) {
3740#if FW_AMPCS_COMPATIBLE
3749#if FW_AMPCS_COMPATIBLE
3765 this->m_logOut_OutputPort[0].invoke(
3774#if FW_ENABLE_TEXT_LOGGING
3775 if (this->m_LogText_OutputPort[0].isConnected()) {
3776#if FW_OBJECT_NAMES == 1
3777 const char* _formatString =
3778 "(%s) %s: Sequencer switched to %s step mode";
3780 const char* _formatString =
3781 "%s: Sequencer switched to %s step mode";
3787 mode.toString(modeStr);
3803 this->m_LogText_OutputPort[0].invoke(
3722 void CmdSequencerComponentBase :: {
…}
3813 void CmdSequencerComponentBase ::
3814 log_WARNING_LO_CS_NoSequenceActive()
3818 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3819 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3824 _id = this->getIdBase() + EVENTID_CS_NOSEQUENCEACTIVE;
3827 if (this->m_logOut_OutputPort[0].isConnected()) {
3830#if FW_AMPCS_COMPATIBLE
3840 this->m_logOut_OutputPort[0].invoke(
3849#if FW_ENABLE_TEXT_LOGGING
3850 if (this->m_LogText_OutputPort[0].isConnected()) {
3851#if FW_OBJECT_NAMES == 1
3852 const char* _formatString =
3853 "(%s) %s: No sequence active.";
3855 const char* _formatString =
3856 "%s: No sequence active.";
3868 "CS_NoSequenceActive "
3874 this->m_LogText_OutputPort[0].invoke(
3813 void CmdSequencerComponentBase :: {
…}
3884 void CmdSequencerComponentBase ::
3889 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3890 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3895 _id = this->getIdBase() + EVENTID_CS_SEQUENCEVALID;
3898 if (this->m_logOut_OutputPort[0].isConnected()) {
3902#if FW_AMPCS_COMPATIBLE
3911 _status = filename.
serialize(_logBuff, 60);
3917 this->m_logOut_OutputPort[0].invoke(
3926#if FW_ENABLE_TEXT_LOGGING
3927 if (this->m_LogText_OutputPort[0].isConnected()) {
3928#if FW_OBJECT_NAMES == 1
3929 const char* _formatString =
3930 "(%s) %s: Sequence %s is valid.";
3932 const char* _formatString =
3933 "%s: Sequence %s is valid.";
3945 "CS_SequenceValid ",
3952 this->m_LogText_OutputPort[0].invoke(
3884 void CmdSequencerComponentBase :: {
…}
3962 void CmdSequencerComponentBase ::
3963 log_WARNING_HI_CS_SequenceTimeout(
3970 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3971 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3976 _id = this->getIdBase() + EVENTID_CS_SEQUENCETIMEOUT;
3979 if (this->m_logOut_OutputPort[0].isConnected()) {
3983#if FW_AMPCS_COMPATIBLE
3992 _status = filename.
serialize(_logBuff, 60);
3998#if FW_AMPCS_COMPATIBLE
4001 static_cast<U8>(
sizeof(U32))
4014 this->m_logOut_OutputPort[0].invoke(
4023#if FW_ENABLE_TEXT_LOGGING
4024 if (this->m_LogText_OutputPort[0].isConnected()) {
4025#if FW_OBJECT_NAMES == 1
4026 const char* _formatString =
4027 "(%s) %s: Sequence %s timed out on command %" PRIu32
"";
4029 const char* _formatString =
4030 "%s: Sequence %s timed out on command %" PRIu32
"";
4042 "CS_SequenceTimeout ",
4050 this->m_LogText_OutputPort[0].invoke(
3962 void CmdSequencerComponentBase :: {
…}
4060 void CmdSequencerComponentBase ::
4061 log_ACTIVITY_HI_CS_CmdStepped(
4068 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4069 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4074 _id = this->getIdBase() + EVENTID_CS_CMDSTEPPED;
4077 if (this->m_logOut_OutputPort[0].isConnected()) {
4081#if FW_AMPCS_COMPATIBLE
4090 _status = filename.
serialize(_logBuff, 60);
4096#if FW_AMPCS_COMPATIBLE
4099 static_cast<U8>(
sizeof(U32))
4112 this->m_logOut_OutputPort[0].invoke(
4121#if FW_ENABLE_TEXT_LOGGING
4122 if (this->m_LogText_OutputPort[0].isConnected()) {
4123#if FW_OBJECT_NAMES == 1
4124 const char* _formatString =
4125 "(%s) %s: Sequence %s command %" PRIu32
" stepped";
4127 const char* _formatString =
4128 "%s: Sequence %s command %" PRIu32
" stepped";
4148 this->m_LogText_OutputPort[0].invoke(
4060 void CmdSequencerComponentBase :: {
…}
4158 void CmdSequencerComponentBase ::
4163 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4164 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4169 _id = this->getIdBase() + EVENTID_CS_CMDSTARTED;
4172 if (this->m_logOut_OutputPort[0].isConnected()) {
4176#if FW_AMPCS_COMPATIBLE
4185 _status = filename.
serialize(_logBuff, 60);
4191 this->m_logOut_OutputPort[0].invoke(
4200#if FW_ENABLE_TEXT_LOGGING
4201 if (this->m_LogText_OutputPort[0].isConnected()) {
4202#if FW_OBJECT_NAMES == 1
4203 const char* _formatString =
4204 "(%s) %s: Sequence %s started";
4206 const char* _formatString =
4207 "%s: Sequence %s started";
4226 this->m_LogText_OutputPort[0].invoke(
4158 void CmdSequencerComponentBase :: {
…}
4236 void CmdSequencerComponentBase ::
4237 log_ACTIVITY_HI_CS_JoinWaiting(
4245 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4246 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4251 _id = this->getIdBase() + EVENTID_CS_JOINWAITING;
4254 if (this->m_logOut_OutputPort[0].isConnected()) {
4258#if FW_AMPCS_COMPATIBLE
4267 _status = filename.
serialize(_logBuff, 60);
4273#if FW_AMPCS_COMPATIBLE
4276 static_cast<U8>(
sizeof(U32))
4283 _status = _logBuff.
serialize(recordNumber);
4289#if FW_AMPCS_COMPATIBLE
4292 static_cast<U8>(
sizeof(U32))
4305 this->m_logOut_OutputPort[0].invoke(
4314#if FW_ENABLE_TEXT_LOGGING
4315 if (this->m_LogText_OutputPort[0].isConnected()) {
4316#if FW_OBJECT_NAMES == 1
4317 const char* _formatString =
4318 "(%s) %s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4320 const char* _formatString =
4321 "%s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4342 this->m_LogText_OutputPort[0].invoke(
4236 void CmdSequencerComponentBase :: {
…}
4352 void CmdSequencerComponentBase ::
4353 log_WARNING_HI_CS_JoinWaitingNotComplete()
4357 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4358 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4363 _id = this->getIdBase() + EVENTID_CS_JOINWAITINGNOTCOMPLETE;
4366 if (this->m_logOut_OutputPort[0].isConnected()) {
4369#if FW_AMPCS_COMPATIBLE
4379 this->m_logOut_OutputPort[0].invoke(
4388#if FW_ENABLE_TEXT_LOGGING
4389 if (this->m_LogText_OutputPort[0].isConnected()) {
4390#if FW_OBJECT_NAMES == 1
4391 const char* _formatString =
4392 "(%s) %s: Still waiting for sequence file to complete";
4394 const char* _formatString =
4395 "%s: Still waiting for sequence file to complete";
4407 "CS_JoinWaitingNotComplete "
4413 this->m_LogText_OutputPort[0].invoke(
4352 void CmdSequencerComponentBase :: {
…}
4427 void CmdSequencerComponentBase ::
4428 tlmWrite_CS_LoadCommands(
4433 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4435 this->m_timeCaller_OutputPort[0].isConnected() &&
4438 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4450 _id = this->getIdBase() + CHANNELID_CS_LOADCOMMANDS;
4452 this->m_tlmOut_OutputPort[0].invoke(
4427 void CmdSequencerComponentBase :: {
…}
4460 void CmdSequencerComponentBase ::
4461 tlmWrite_CS_CancelCommands(
4466 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4468 this->m_timeCaller_OutputPort[0].isConnected() &&
4471 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4483 _id = this->getIdBase() + CHANNELID_CS_CANCELCOMMANDS;
4485 this->m_tlmOut_OutputPort[0].invoke(
4460 void CmdSequencerComponentBase :: {
…}
4493 void CmdSequencerComponentBase ::
4499 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4501 this->m_timeCaller_OutputPort[0].isConnected() &&
4504 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4516 _id = this->getIdBase() + CHANNELID_CS_ERRORS;
4518 this->m_tlmOut_OutputPort[0].invoke(
4493 void CmdSequencerComponentBase :: {
…}
4526 void CmdSequencerComponentBase ::
4527 tlmWrite_CS_CommandsExecuted(
4532 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4534 this->m_timeCaller_OutputPort[0].isConnected() &&
4537 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4549 _id = this->getIdBase() + CHANNELID_CS_COMMANDSEXECUTED;
4551 this->m_tlmOut_OutputPort[0].invoke(
4526 void CmdSequencerComponentBase :: {
…}
4559 void CmdSequencerComponentBase ::
4560 tlmWrite_CS_SequencesCompleted(
4565 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4567 this->m_timeCaller_OutputPort[0].isConnected() &&
4570 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4582 _id = this->getIdBase() + CHANNELID_CS_SEQUENCESCOMPLETED;
4584 this->m_tlmOut_OutputPort[0].invoke(
4559 void CmdSequencerComponentBase :: {
…}
4599 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4601 this->m_timeCaller_OutputPort[0].invoke(_time);
4616 ComponentIpcSerializableBuffer msg;
4639 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
4641 if (msgType == CMDSEQUENCER_COMPONENT_EXIT) {
4642 return MSG_DISPATCH_EXIT;
4646 deserStatus = msg.deserialize(portNum);
4654 case CMDRESPONSEIN_CMDRESPONSE: {
4657 deserStatus = msg.deserialize(opCode);
4665 deserStatus = msg.deserialize(cmdSeq);
4673 deserStatus = msg.deserialize(response);
4679 this->cmdResponseIn_handler(
4693 deserStatus = msg.deserialize(key);
4699 this->pingIn_handler(
4708 case SCHEDIN_SCHED: {
4711 deserStatus = msg.deserialize(context);
4717 this->schedIn_handler(
4726 case SEQCANCELIN_CMDSEQCANCEL: {
4728 this->seqCancelIn_handler(portNum);
4734 case SEQRUNIN_CMDSEQIN: {
4737 deserStatus = msg.deserialize(filename);
4743 this->seqRunIn_handler(
4755 deserStatus = msg.deserialize(opCode);
4763 deserStatus = msg.deserialize(cmdSeq);
4771 deserStatus = msg.deserialize(args);
4784 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4785 this->cmdResponse_out(
4799 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4800 this->cmdResponse_out(
4812#if FW_CMD_CHECK_RESIDUAL
4814 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4823 this->CS_RUN_cmdHandler(
4833 case CMD_CS_VALIDATE: {
4836 deserStatus = msg.deserialize(opCode);
4844 deserStatus = msg.deserialize(cmdSeq);
4852 deserStatus = msg.deserialize(args);
4865 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4866 this->cmdResponse_out(
4878#if FW_CMD_CHECK_RESIDUAL
4880 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4889 this->CS_VALIDATE_cmdHandler(
4898 case CMD_CS_CANCEL: {
4901 deserStatus = msg.deserialize(opCode);
4909 deserStatus = msg.deserialize(cmdSeq);
4917 deserStatus = msg.deserialize(args);
4928#if FW_CMD_CHECK_RESIDUAL
4930 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4939 this->CS_CANCEL_cmdHandler(opCode, cmdSeq);
4945 case CMD_CS_START: {
4948 deserStatus = msg.deserialize(opCode);
4956 deserStatus = msg.deserialize(cmdSeq);
4964 deserStatus = msg.deserialize(args);
4975#if FW_CMD_CHECK_RESIDUAL
4977 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4986 this->CS_START_cmdHandler(opCode, cmdSeq);
4995 deserStatus = msg.deserialize(opCode);
5003 deserStatus = msg.deserialize(cmdSeq);
5011 deserStatus = msg.deserialize(args);
5022#if FW_CMD_CHECK_RESIDUAL
5024 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5033 this->CS_STEP_cmdHandler(opCode, cmdSeq);
5042 deserStatus = msg.deserialize(opCode);
5050 deserStatus = msg.deserialize(cmdSeq);
5058 deserStatus = msg.deserialize(args);
5069#if FW_CMD_CHECK_RESIDUAL
5071 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5080 this->CS_AUTO_cmdHandler(opCode, cmdSeq);
5086 case CMD_CS_MANUAL: {
5089 deserStatus = msg.deserialize(opCode);
5097 deserStatus = msg.deserialize(cmdSeq);
5105 deserStatus = msg.deserialize(args);
5116#if FW_CMD_CHECK_RESIDUAL
5118 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5127 this->CS_MANUAL_cmdHandler(opCode, cmdSeq);
5133 case CMD_CS_JOIN_WAIT: {
5136 deserStatus = msg.deserialize(opCode);
5144 deserStatus = msg.deserialize(cmdSeq);
5152 deserStatus = msg.deserialize(args);
5163#if FW_CMD_CHECK_RESIDUAL
5165 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5174 this->CS_JOIN_WAIT_cmdHandler(opCode, cmdSeq);
5180 return MSG_DISPATCH_ERROR;
5183 return MSG_DISPATCH_OK;
5190 void CmdSequencerComponentBase ::
5200 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5202 const U32 idBase = callComp->
getIdBase();
5203 FW_ASSERT(opCode >= idBase, opCode, idBase);
5206 switch (opCode - idBase) {
5207 case OPCODE_CS_RUN: {
5208 compPtr->CS_RUN_cmdHandlerBase(
5216 case OPCODE_CS_VALIDATE: {
5217 compPtr->CS_VALIDATE_cmdHandlerBase(
5225 case OPCODE_CS_CANCEL: {
5226 compPtr->CS_CANCEL_cmdHandlerBase(
5234 case OPCODE_CS_START: {
5235 compPtr->CS_START_cmdHandlerBase(
5243 case OPCODE_CS_STEP: {
5244 compPtr->CS_STEP_cmdHandlerBase(
5252 case OPCODE_CS_AUTO: {
5253 compPtr->CS_AUTO_cmdHandlerBase(
5261 case OPCODE_CS_MANUAL: {
5262 compPtr->CS_MANUAL_cmdHandlerBase(
5270 case OPCODE_CS_JOIN_WAIT: {
5271 compPtr->CS_JOIN_WAIT_cmdHandlerBase(
5285 void CmdSequencerComponentBase ::
5286 m_p_cmdResponseIn_in(
5295 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5296 compPtr->cmdResponseIn_handlerBase(
5304 void CmdSequencerComponentBase ::
5312 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5313 compPtr->pingIn_handlerBase(
5319 void CmdSequencerComponentBase ::
5327 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5328 compPtr->schedIn_handlerBase(
5334 void CmdSequencerComponentBase ::
5341 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5342 compPtr->seqCancelIn_handlerBase(portNum);
5345 void CmdSequencerComponentBase ::
5353 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5354 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.