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
113 char portName[2*FW_OBJ_NAME_MAX_SIZE];
121 this->m_cmdIn_InputPort[port].setObjName(portName);
128 port < static_cast<PlatformIntType>(this->getNum_cmdResponseIn_InputPorts());
131 this->m_cmdResponseIn_InputPort[port].init();
132 this->m_cmdResponseIn_InputPort[port].addCallComp(
136 this->m_cmdResponseIn_InputPort[port].setPortNum(port);
138#if FW_OBJECT_NAMES == 1
145 char portName[2*FW_OBJ_NAME_MAX_SIZE];
153 this->m_cmdResponseIn_InputPort[port].setObjName(portName);
160 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
163 this->m_pingIn_InputPort[port].init();
164 this->m_pingIn_InputPort[port].addCallComp(
168 this->m_pingIn_InputPort[port].setPortNum(port);
170#if FW_OBJECT_NAMES == 1
177 char portName[2*FW_OBJ_NAME_MAX_SIZE];
185 this->m_pingIn_InputPort[port].setObjName(portName);
192 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
195 this->m_schedIn_InputPort[port].init();
196 this->m_schedIn_InputPort[port].addCallComp(
200 this->m_schedIn_InputPort[port].setPortNum(port);
202#if FW_OBJECT_NAMES == 1
209 char portName[2*FW_OBJ_NAME_MAX_SIZE];
217 this->m_schedIn_InputPort[port].setObjName(portName);
224 port < static_cast<PlatformIntType>(this->getNum_seqCancelIn_InputPorts());
227 this->m_seqCancelIn_InputPort[port].init();
228 this->m_seqCancelIn_InputPort[port].addCallComp(
232 this->m_seqCancelIn_InputPort[port].setPortNum(port);
234#if FW_OBJECT_NAMES == 1
241 char portName[2*FW_OBJ_NAME_MAX_SIZE];
249 this->m_seqCancelIn_InputPort[port].setObjName(portName);
256 port < static_cast<PlatformIntType>(this->getNum_seqRunIn_InputPorts());
259 this->m_seqRunIn_InputPort[port].init();
260 this->m_seqRunIn_InputPort[port].addCallComp(
264 this->m_seqRunIn_InputPort[port].setPortNum(port);
266#if FW_OBJECT_NAMES == 1
273 char portName[2*FW_OBJ_NAME_MAX_SIZE];
281 this->m_seqRunIn_InputPort[port].setObjName(portName);
285#if FW_ENABLE_TEXT_LOGGING == 1
289 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
292 this->m_LogText_OutputPort[port].init();
294#if FW_OBJECT_NAMES == 1
301 char portName[2*FW_OBJ_NAME_MAX_SIZE];
309 this->m_LogText_OutputPort[port].setObjName(portName);
317 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
320 this->m_cmdRegOut_OutputPort[port].init();
322#if FW_OBJECT_NAMES == 1
329 char portName[2*FW_OBJ_NAME_MAX_SIZE];
337 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
344 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
347 this->m_cmdResponseOut_OutputPort[port].init();
349#if FW_OBJECT_NAMES == 1
356 char portName[2*FW_OBJ_NAME_MAX_SIZE];
364 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
371 port < static_cast<PlatformIntType>(this->getNum_logOut_OutputPorts());
374 this->m_logOut_OutputPort[port].init();
376#if FW_OBJECT_NAMES == 1
383 char portName[2*FW_OBJ_NAME_MAX_SIZE];
391 this->m_logOut_OutputPort[port].setObjName(portName);
398 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
401 this->m_timeCaller_OutputPort[port].init();
403#if FW_OBJECT_NAMES == 1
410 char portName[2*FW_OBJ_NAME_MAX_SIZE];
418 this->m_timeCaller_OutputPort[port].setObjName(portName);
425 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
428 this->m_tlmOut_OutputPort[port].init();
430#if FW_OBJECT_NAMES == 1
437 char portName[2*FW_OBJ_NAME_MAX_SIZE];
445 this->m_tlmOut_OutputPort[port].setObjName(portName);
452 port < static_cast<PlatformIntType>(this->getNum_comCmdOut_OutputPorts());
455 this->m_comCmdOut_OutputPort[port].init();
457#if FW_OBJECT_NAMES == 1
464 char portName[2*FW_OBJ_NAME_MAX_SIZE];
472 this->m_comCmdOut_OutputPort[port].setObjName(portName);
479 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
482 this->m_pingOut_OutputPort[port].init();
484#if FW_OBJECT_NAMES == 1
491 char portName[2*FW_OBJ_NAME_MAX_SIZE];
499 this->m_pingOut_OutputPort[port].setObjName(portName);
506 port < static_cast<PlatformIntType>(this->getNum_seqDone_OutputPorts());
509 this->m_seqDone_OutputPort[port].init();
511#if FW_OBJECT_NAMES == 1
518 char portName[2*FW_OBJ_NAME_MAX_SIZE];
526 this->m_seqDone_OutputPort[port].setObjName(portName);
532 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
84 void CmdSequencerComponentBase :: {
…}
548 portNum < this->getNum_cmdIn_InputPorts(),
552 return &this->m_cmdIn_InputPort[portNum];
563 portNum < this->getNum_cmdResponseIn_InputPorts(),
567 return &this->m_cmdResponseIn_InputPort[portNum];
574 portNum < this->getNum_pingIn_InputPorts(),
578 return &this->m_pingIn_InputPort[portNum];
585 portNum < this->getNum_schedIn_InputPorts(),
589 return &this->m_schedIn_InputPort[portNum];
596 portNum < this->getNum_seqCancelIn_InputPorts(),
600 return &this->m_seqCancelIn_InputPort[portNum];
607 portNum < this->getNum_seqRunIn_InputPorts(),
611 return &this->m_seqRunIn_InputPort[portNum];
618#if FW_ENABLE_TEXT_LOGGING == 1
620 void CmdSequencerComponentBase ::
621 set_LogText_OutputPort(
627 portNum < this->getNum_LogText_OutputPorts(),
631 this->m_LogText_OutputPort[portNum].addCallPort(port);
636 void CmdSequencerComponentBase ::
637 set_cmdRegOut_OutputPort(
643 portNum < this->getNum_cmdRegOut_OutputPorts(),
647 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
636 void CmdSequencerComponentBase :: {
…}
650 void CmdSequencerComponentBase ::
651 set_cmdResponseOut_OutputPort(
657 portNum < this->getNum_cmdResponseOut_OutputPorts(),
661 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
650 void CmdSequencerComponentBase :: {
…}
664 void CmdSequencerComponentBase ::
665 set_logOut_OutputPort(
671 portNum < this->getNum_logOut_OutputPorts(),
675 this->m_logOut_OutputPort[portNum].addCallPort(port);
664 void CmdSequencerComponentBase :: {
…}
678 void CmdSequencerComponentBase ::
679 set_timeCaller_OutputPort(
685 portNum < this->getNum_timeCaller_OutputPorts(),
689 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
678 void CmdSequencerComponentBase :: {
…}
692 void CmdSequencerComponentBase ::
693 set_tlmOut_OutputPort(
699 portNum < this->getNum_tlmOut_OutputPorts(),
703 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
692 void CmdSequencerComponentBase :: {
…}
710 void CmdSequencerComponentBase ::
711 set_comCmdOut_OutputPort(
717 portNum < this->getNum_comCmdOut_OutputPorts(),
721 this->m_comCmdOut_OutputPort[portNum].addCallPort(port);
710 void CmdSequencerComponentBase :: {
…}
724 void CmdSequencerComponentBase ::
725 set_pingOut_OutputPort(
731 portNum < this->getNum_pingOut_OutputPorts(),
735 this->m_pingOut_OutputPort[portNum].addCallPort(port);
724 void CmdSequencerComponentBase :: {
…}
738 void CmdSequencerComponentBase ::
739 set_seqDone_OutputPort(
745 portNum < this->getNum_seqDone_OutputPorts(),
749 this->m_seqDone_OutputPort[portNum].addCallPort(port);
738 void CmdSequencerComponentBase :: {
…}
752#if FW_PORT_SERIALIZATION
758#if FW_ENABLE_TEXT_LOGGING == 1
760 void CmdSequencerComponentBase ::
761 set_LogText_OutputPort(
763 Fw::InputSerializePort* port
767 portNum < this->getNum_LogText_OutputPorts(),
771 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
776 void CmdSequencerComponentBase ::
777 set_cmdRegOut_OutputPort(
779 Fw::InputSerializePort* port
783 portNum < this->getNum_cmdRegOut_OutputPorts(),
787 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
790 void CmdSequencerComponentBase ::
791 set_cmdResponseOut_OutputPort(
793 Fw::InputSerializePort* port
797 portNum < this->getNum_cmdResponseOut_OutputPorts(),
801 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
804 void CmdSequencerComponentBase ::
805 set_logOut_OutputPort(
807 Fw::InputSerializePort* port
811 portNum < this->getNum_logOut_OutputPorts(),
815 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
818 void CmdSequencerComponentBase ::
819 set_timeCaller_OutputPort(
821 Fw::InputSerializePort* port
825 portNum < this->getNum_timeCaller_OutputPorts(),
829 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
832 void CmdSequencerComponentBase ::
833 set_tlmOut_OutputPort(
835 Fw::InputSerializePort* port
839 portNum < this->getNum_tlmOut_OutputPorts(),
843 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
848#if FW_PORT_SERIALIZATION
854 void CmdSequencerComponentBase ::
855 set_comCmdOut_OutputPort(
857 Fw::InputSerializePort* port
861 portNum < this->getNum_comCmdOut_OutputPorts(),
865 this->m_comCmdOut_OutputPort[portNum].registerSerialPort(port);
868 void CmdSequencerComponentBase ::
869 set_pingOut_OutputPort(
871 Fw::InputSerializePort* port
875 portNum < this->getNum_pingOut_OutputPorts(),
879 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
882 void CmdSequencerComponentBase ::
883 set_seqDone_OutputPort(
885 Fw::InputSerializePort* port
889 portNum < this->getNum_seqDone_OutputPorts(),
893 this->m_seqDone_OutputPort[portNum].registerSerialPort(port);
902 void CmdSequencerComponentBase ::
905 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
907 this->m_cmdRegOut_OutputPort[0].invoke(
908 this->getIdBase() + OPCODE_CS_RUN
911 this->m_cmdRegOut_OutputPort[0].invoke(
912 this->getIdBase() + OPCODE_CS_VALIDATE
915 this->m_cmdRegOut_OutputPort[0].invoke(
916 this->getIdBase() + OPCODE_CS_CANCEL
919 this->m_cmdRegOut_OutputPort[0].invoke(
920 this->getIdBase() + OPCODE_CS_START
923 this->m_cmdRegOut_OutputPort[0].invoke(
924 this->getIdBase() + OPCODE_CS_STEP
927 this->m_cmdRegOut_OutputPort[0].invoke(
928 this->getIdBase() + OPCODE_CS_AUTO
931 this->m_cmdRegOut_OutputPort[0].invoke(
932 this->getIdBase() + OPCODE_CS_MANUAL
935 this->m_cmdRegOut_OutputPort[0].invoke(
936 this->getIdBase() + OPCODE_CS_JOIN_WAIT
902 void CmdSequencerComponentBase :: {
…}
944 CmdSequencerComponentBase ::
945 CmdSequencerComponentBase(
const char* compName) :
946 Fw::ActiveComponentBase(compName)
944 CmdSequencerComponentBase :: {
…}
951 CmdSequencerComponentBase ::
952 ~CmdSequencerComponentBase()
951 CmdSequencerComponentBase :: {
…}
962 getNum_cmdIn_InputPorts()
const
972 getNum_cmdResponseIn_InputPorts()
const
978 getNum_pingIn_InputPorts()
const
984 getNum_schedIn_InputPorts()
const
990 getNum_seqCancelIn_InputPorts()
const
996 getNum_seqRunIn_InputPorts()
const
1005#if FW_ENABLE_TEXT_LOGGING == 1
1008 getNum_LogText_OutputPorts()
const
1016 getNum_cmdRegOut_OutputPorts()
const
1022 getNum_cmdResponseOut_OutputPorts()
const
1028 getNum_logOut_OutputPorts()
const
1034 getNum_timeCaller_OutputPorts()
const
1040 getNum_tlmOut_OutputPorts()
const
1050 getNum_comCmdOut_OutputPorts()
const
1056 getNum_pingOut_OutputPorts()
const
1062 getNum_seqDone_OutputPorts()
const
1071#if FW_ENABLE_TEXT_LOGGING == 1
1073 bool CmdSequencerComponentBase ::
1077 portNum < this->getNum_LogText_OutputPorts(),
1081 return this->m_LogText_OutputPort[portNum].isConnected();
1086 bool CmdSequencerComponentBase ::
1090 portNum < this->getNum_cmdRegOut_OutputPorts(),
1094 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
1086 bool CmdSequencerComponentBase :: {
…}
1097 bool CmdSequencerComponentBase ::
1101 portNum < this->getNum_cmdResponseOut_OutputPorts(),
1105 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
1097 bool CmdSequencerComponentBase :: {
…}
1108 bool CmdSequencerComponentBase ::
1112 portNum < this->getNum_logOut_OutputPorts(),
1116 return this->m_logOut_OutputPort[portNum].isConnected();
1108 bool CmdSequencerComponentBase :: {
…}
1119 bool CmdSequencerComponentBase ::
1123 portNum < this->getNum_timeCaller_OutputPorts(),
1127 return this->m_timeCaller_OutputPort[portNum].isConnected();
1119 bool CmdSequencerComponentBase :: {
…}
1130 bool CmdSequencerComponentBase ::
1134 portNum < this->getNum_tlmOut_OutputPorts(),
1138 return this->m_tlmOut_OutputPort[portNum].isConnected();
1130 bool CmdSequencerComponentBase :: {
…}
1145 bool CmdSequencerComponentBase ::
1149 portNum < this->getNum_comCmdOut_OutputPorts(),
1153 return this->m_comCmdOut_OutputPort[portNum].isConnected();
1145 bool CmdSequencerComponentBase :: {
…}
1156 bool CmdSequencerComponentBase ::
1160 portNum < this->getNum_pingOut_OutputPorts(),
1164 return this->m_pingOut_OutputPort[portNum].isConnected();
1156 bool CmdSequencerComponentBase :: {
…}
1167 bool CmdSequencerComponentBase ::
1171 portNum < this->getNum_seqDone_OutputPorts(),
1175 return this->m_seqDone_OutputPort[portNum].isConnected();
1167 bool CmdSequencerComponentBase :: {
…}
1184 void CmdSequencerComponentBase ::
1185 cmdResponseIn_handlerBase(
1194 portNum < this->getNum_cmdResponseIn_InputPorts(),
1199 cmdResponseIn_preMsgHook(
1205 ComponentIpcSerializableBuffer msg;
1209 _status = msg.serialize(
1218 _status = msg.serialize(portNum);
1225 _status = msg.serialize(opCode);
1232 _status = msg.serialize(cmdSeq);
1239 _status = msg.serialize(response);
1184 void CmdSequencerComponentBase :: {
…}
1255 void CmdSequencerComponentBase ::
1263 portNum < this->getNum_pingIn_InputPorts(),
1272 ComponentIpcSerializableBuffer msg;
1276 _status = msg.serialize(
1285 _status = msg.serialize(portNum);
1292 _status = msg.serialize(key);
1255 void CmdSequencerComponentBase :: {
…}
1308 void CmdSequencerComponentBase ::
1309 schedIn_handlerBase(
1316 portNum < this->getNum_schedIn_InputPorts(),
1325 ComponentIpcSerializableBuffer msg;
1329 _status = msg.serialize(
1338 _status = msg.serialize(portNum);
1345 _status = msg.serialize(context);
1308 void CmdSequencerComponentBase :: {
…}
1361 void CmdSequencerComponentBase ::
1366 portNum < this->getNum_seqCancelIn_InputPorts(),
1371 seqCancelIn_preMsgHook(portNum);
1372 ComponentIpcSerializableBuffer msg;
1376 _status = msg.serialize(
1385 _status = msg.serialize(portNum);
1361 void CmdSequencerComponentBase :: {
…}
1401 void CmdSequencerComponentBase ::
1402 seqRunIn_handlerBase(
1409 portNum < this->getNum_seqRunIn_InputPorts(),
1414 seqRunIn_preMsgHook(
1418 ComponentIpcSerializableBuffer msg;
1422 _status = msg.serialize(
1431 _status = msg.serialize(portNum);
1438 _status = msg.serialize(filename);
1401 void CmdSequencerComponentBase :: {
…}
1462 void CmdSequencerComponentBase ::
1463 cmdResponseIn_preMsgHook(
1462 void CmdSequencerComponentBase :: {
…}
1473 void CmdSequencerComponentBase ::
1473 void CmdSequencerComponentBase :: {
…}
1482 void CmdSequencerComponentBase ::
1482 void CmdSequencerComponentBase :: {
…}
1491 void CmdSequencerComponentBase ::
1491 void CmdSequencerComponentBase :: {
…}
1497 void CmdSequencerComponentBase ::
1498 seqRunIn_preMsgHook(
1497 void CmdSequencerComponentBase :: {
…}
1510 void CmdSequencerComponentBase ::
1518 portNum < this->getNum_comCmdOut_OutputPorts(),
1521 this->m_comCmdOut_OutputPort[portNum].invoke(
1510 void CmdSequencerComponentBase :: {
…}
1527 void CmdSequencerComponentBase ::
1534 portNum < this->getNum_pingOut_OutputPorts(),
1537 this->m_pingOut_OutputPort[portNum].invoke(
1527 void CmdSequencerComponentBase :: {
…}
1542 void CmdSequencerComponentBase ::
1551 portNum < this->getNum_seqDone_OutputPorts(),
1554 this->m_seqDone_OutputPort[portNum].invoke(
1542 void CmdSequencerComponentBase :: {
…}
1565 void CmdSequencerComponentBase ::
1572 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1573 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1565 void CmdSequencerComponentBase :: {
…}
1582 void CmdSequencerComponentBase ::
1583 CS_RUN_cmdHandlerBase(
1590 this->CS_RUN_preMsgHook(opCode,cmdSeq);
1594 ComponentIpcSerializableBuffer msg;
1607 _status = msg.serialize(port);
1613 _status = msg.serialize(opCode);
1619 _status = msg.serialize(cmdSeq);
1625 _status = msg.serialize(args);
1582 void CmdSequencerComponentBase :: {
…}
1641 void CmdSequencerComponentBase ::
1642 CS_VALIDATE_cmdHandlerBase(
1649 this->CS_VALIDATE_preMsgHook(opCode,cmdSeq);
1653 ComponentIpcSerializableBuffer msg;
1657 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_VALIDATE));
1666 _status = msg.serialize(port);
1672 _status = msg.serialize(opCode);
1678 _status = msg.serialize(cmdSeq);
1684 _status = msg.serialize(args);
1641 void CmdSequencerComponentBase :: {
…}
1700 void CmdSequencerComponentBase ::
1701 CS_CANCEL_cmdHandlerBase(
1708 this->CS_CANCEL_preMsgHook(opCode,cmdSeq);
1712 ComponentIpcSerializableBuffer msg;
1725 _status = msg.serialize(port);
1731 _status = msg.serialize(opCode);
1737 _status = msg.serialize(cmdSeq);
1743 _status = msg.serialize(args);
1700 void CmdSequencerComponentBase :: {
…}
1759 void CmdSequencerComponentBase ::
1760 CS_START_cmdHandlerBase(
1767 this->CS_START_preMsgHook(opCode,cmdSeq);
1771 ComponentIpcSerializableBuffer msg;
1784 _status = msg.serialize(port);
1790 _status = msg.serialize(opCode);
1796 _status = msg.serialize(cmdSeq);
1802 _status = msg.serialize(args);
1759 void CmdSequencerComponentBase :: {
…}
1818 void CmdSequencerComponentBase ::
1819 CS_STEP_cmdHandlerBase(
1826 this->CS_STEP_preMsgHook(opCode,cmdSeq);
1830 ComponentIpcSerializableBuffer msg;
1843 _status = msg.serialize(port);
1849 _status = msg.serialize(opCode);
1855 _status = msg.serialize(cmdSeq);
1861 _status = msg.serialize(args);
1818 void CmdSequencerComponentBase :: {
…}
1877 void CmdSequencerComponentBase ::
1878 CS_AUTO_cmdHandlerBase(
1885 this->CS_AUTO_preMsgHook(opCode,cmdSeq);
1889 ComponentIpcSerializableBuffer msg;
1902 _status = msg.serialize(port);
1908 _status = msg.serialize(opCode);
1914 _status = msg.serialize(cmdSeq);
1920 _status = msg.serialize(args);
1877 void CmdSequencerComponentBase :: {
…}
1936 void CmdSequencerComponentBase ::
1937 CS_MANUAL_cmdHandlerBase(
1944 this->CS_MANUAL_preMsgHook(opCode,cmdSeq);
1948 ComponentIpcSerializableBuffer msg;
1961 _status = msg.serialize(port);
1967 _status = msg.serialize(opCode);
1973 _status = msg.serialize(cmdSeq);
1979 _status = msg.serialize(args);
1936 void CmdSequencerComponentBase :: {
…}
1995 void CmdSequencerComponentBase ::
1996 CS_JOIN_WAIT_cmdHandlerBase(
2003 this->CS_JOIN_WAIT_preMsgHook(opCode,cmdSeq);
2007 ComponentIpcSerializableBuffer msg;
2011 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_CS_JOIN_WAIT));
2020 _status = msg.serialize(port);
2026 _status = msg.serialize(opCode);
2032 _status = msg.serialize(cmdSeq);
2038 _status = msg.serialize(args);
1995 void CmdSequencerComponentBase :: {
…}
2062 void CmdSequencerComponentBase ::
2062 void CmdSequencerComponentBase :: {
…}
2073 void CmdSequencerComponentBase ::
2074 CS_VALIDATE_preMsgHook(
2073 void CmdSequencerComponentBase :: {
…}
2084 void CmdSequencerComponentBase ::
2085 CS_CANCEL_preMsgHook(
2084 void CmdSequencerComponentBase :: {
…}
2095 void CmdSequencerComponentBase ::
2096 CS_START_preMsgHook(
2095 void CmdSequencerComponentBase :: {
…}
2106 void CmdSequencerComponentBase ::
2106 void CmdSequencerComponentBase :: {
…}
2117 void CmdSequencerComponentBase ::
2117 void CmdSequencerComponentBase :: {
…}
2128 void CmdSequencerComponentBase ::
2129 CS_MANUAL_preMsgHook(
2128 void CmdSequencerComponentBase :: {
…}
2139 void CmdSequencerComponentBase ::
2140 CS_JOIN_WAIT_preMsgHook(
2139 void CmdSequencerComponentBase :: {
…}
2154 void CmdSequencerComponentBase ::
2159 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2160 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2165 _id = this->getIdBase() + EVENTID_CS_SEQUENCELOADED;
2168 if (this->m_logOut_OutputPort[0].isConnected()) {
2172#if FW_AMPCS_COMPATIBLE
2181 _status = fileName.
serialize(_logBuff, 60);
2187 this->m_logOut_OutputPort[0].invoke(
2196#if FW_ENABLE_TEXT_LOGGING
2197 if (this->m_LogText_OutputPort[0].isConnected()) {
2198#if FW_OBJECT_NAMES == 1
2199 const char* _formatString =
2200 "(%s) %s: Loaded sequence %s";
2202 const char* _formatString =
2203 "%s: Loaded sequence %s";
2215 "CS_SequenceLoaded ",
2222 this->m_LogText_OutputPort[0].invoke(
2154 void CmdSequencerComponentBase :: {
…}
2232 void CmdSequencerComponentBase ::
2237 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2238 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2243 _id = this->getIdBase() + EVENTID_CS_SEQUENCECANCELED;
2246 if (this->m_logOut_OutputPort[0].isConnected()) {
2250#if FW_AMPCS_COMPATIBLE
2259 _status = fileName.
serialize(_logBuff, 60);
2265 this->m_logOut_OutputPort[0].invoke(
2274#if FW_ENABLE_TEXT_LOGGING
2275 if (this->m_LogText_OutputPort[0].isConnected()) {
2276#if FW_OBJECT_NAMES == 1
2277 const char* _formatString =
2278 "(%s) %s: Sequence file %s canceled";
2280 const char* _formatString =
2281 "%s: Sequence file %s canceled";
2293 "CS_SequenceCanceled ",
2300 this->m_LogText_OutputPort[0].invoke(
2232 void CmdSequencerComponentBase :: {
…}
2310 void CmdSequencerComponentBase ::
2315 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2316 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2321 _id = this->getIdBase() + EVENTID_CS_FILEREADERROR;
2324 if (this->m_logOut_OutputPort[0].isConnected()) {
2328#if FW_AMPCS_COMPATIBLE
2337 _status = fileName.
serialize(_logBuff, 60);
2343 this->m_logOut_OutputPort[0].invoke(
2352#if FW_ENABLE_TEXT_LOGGING
2353 if (this->m_LogText_OutputPort[0].isConnected()) {
2354#if FW_OBJECT_NAMES == 1
2355 const char* _formatString =
2356 "(%s) %s: Error reading sequence file %s";
2358 const char* _formatString =
2359 "%s: Error reading sequence file %s";
2371 "CS_FileReadError ",
2378 this->m_LogText_OutputPort[0].invoke(
2310 void CmdSequencerComponentBase :: {
…}
2388 void CmdSequencerComponentBase ::
2389 log_WARNING_HI_CS_FileInvalid(
2397 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2398 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2403 _id = this->getIdBase() + EVENTID_CS_FILEINVALID;
2406 if (this->m_logOut_OutputPort[0].isConnected()) {
2410#if FW_AMPCS_COMPATIBLE
2419 _status = fileName.
serialize(_logBuff, 60);
2425#if FW_AMPCS_COMPATIBLE
2441#if FW_AMPCS_COMPATIBLE
2444 static_cast<U8>(
sizeof(I32))
2457 this->m_logOut_OutputPort[0].invoke(
2466#if FW_ENABLE_TEXT_LOGGING
2467 if (this->m_LogText_OutputPort[0].isConnected()) {
2468#if FW_OBJECT_NAMES == 1
2469 const char* _formatString =
2470 "(%s) %s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2472 const char* _formatString =
2473 "%s: Sequence file %s invalid. Stage: %s Error: %" PRIi32
"";
2479 stage.toString(stageStr);
2497 this->m_LogText_OutputPort[0].invoke(
2388 void CmdSequencerComponentBase :: {
…}
2507 void CmdSequencerComponentBase ::
2508 log_WARNING_HI_CS_RecordInvalid(
2516 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2517 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2522 _id = this->getIdBase() + EVENTID_CS_RECORDINVALID;
2525 if (this->m_logOut_OutputPort[0].isConnected()) {
2529#if FW_AMPCS_COMPATIBLE
2538 _status = fileName.
serialize(_logBuff, 60);
2544#if FW_AMPCS_COMPATIBLE
2547 static_cast<U8>(
sizeof(U32))
2554 _status = _logBuff.
serialize(recordNumber);
2560#if FW_AMPCS_COMPATIBLE
2563 static_cast<U8>(
sizeof(I32))
2576 this->m_logOut_OutputPort[0].invoke(
2585#if FW_ENABLE_TEXT_LOGGING
2586 if (this->m_LogText_OutputPort[0].isConnected()) {
2587#if FW_OBJECT_NAMES == 1
2588 const char* _formatString =
2589 "(%s) %s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2591 const char* _formatString =
2592 "%s: Sequence file %s: Record %" PRIu32
" invalid. Err: %" PRIi32
"";
2604 "CS_RecordInvalid ",
2613 this->m_LogText_OutputPort[0].invoke(
2507 void CmdSequencerComponentBase :: {
…}
2623 void CmdSequencerComponentBase ::
2624 log_WARNING_HI_CS_FileSizeError(
2631 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2632 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2637 _id = this->getIdBase() + EVENTID_CS_FILESIZEERROR;
2640 if (this->m_logOut_OutputPort[0].isConnected()) {
2644#if FW_AMPCS_COMPATIBLE
2653 _status = fileName.
serialize(_logBuff, 60);
2659#if FW_AMPCS_COMPATIBLE
2662 static_cast<U8>(
sizeof(U32))
2675 this->m_logOut_OutputPort[0].invoke(
2684#if FW_ENABLE_TEXT_LOGGING
2685 if (this->m_LogText_OutputPort[0].isConnected()) {
2686#if FW_OBJECT_NAMES == 1
2687 const char* _formatString =
2688 "(%s) %s: Sequence file %s too large. Size: %" PRIu32
"";
2690 const char* _formatString =
2691 "%s: Sequence file %s too large. Size: %" PRIu32
"";
2703 "CS_FileSizeError ",
2711 this->m_LogText_OutputPort[0].invoke(
2623 void CmdSequencerComponentBase :: {
…}
2721 void CmdSequencerComponentBase ::
2726 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2727 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2732 _id = this->getIdBase() + EVENTID_CS_FILENOTFOUND;
2735 if (this->m_logOut_OutputPort[0].isConnected()) {
2739#if FW_AMPCS_COMPATIBLE
2748 _status = fileName.
serialize(_logBuff, 60);
2754 this->m_logOut_OutputPort[0].invoke(
2763#if FW_ENABLE_TEXT_LOGGING
2764 if (this->m_LogText_OutputPort[0].isConnected()) {
2765#if FW_OBJECT_NAMES == 1
2766 const char* _formatString =
2767 "(%s) %s: Sequence file %s not found.";
2769 const char* _formatString =
2770 "%s: Sequence file %s not found.";
2789 this->m_LogText_OutputPort[0].invoke(
2721 void CmdSequencerComponentBase :: {
…}
2799 void CmdSequencerComponentBase ::
2800 log_WARNING_HI_CS_FileCrcFailure(
2808 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2809 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2814 _id = this->getIdBase() + EVENTID_CS_FILECRCFAILURE;
2817 if (this->m_logOut_OutputPort[0].isConnected()) {
2821#if FW_AMPCS_COMPATIBLE
2830 _status = fileName.
serialize(_logBuff, 60);
2836#if FW_AMPCS_COMPATIBLE
2839 static_cast<U8>(
sizeof(U32))
2846 _status = _logBuff.
serialize(storedCRC);
2852#if FW_AMPCS_COMPATIBLE
2855 static_cast<U8>(
sizeof(U32))
2862 _status = _logBuff.
serialize(computedCRC);
2868 this->m_logOut_OutputPort[0].invoke(
2877#if FW_ENABLE_TEXT_LOGGING
2878 if (this->m_LogText_OutputPort[0].isConnected()) {
2879#if FW_OBJECT_NAMES == 1
2880 const char* _formatString =
2881 "(%s) %s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2883 const char* _formatString =
2884 "%s: Sequence file %s had invalid CRC. Stored 0x%" PRIx32
", Computed 0x%" PRIx32
".";
2896 "CS_FileCrcFailure ",
2905 this->m_LogText_OutputPort[0].invoke(
2799 void CmdSequencerComponentBase :: {
…}
2915 void CmdSequencerComponentBase ::
2916 log_ACTIVITY_LO_CS_CommandComplete(
2924 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2925 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2930 _id = this->getIdBase() + EVENTID_CS_COMMANDCOMPLETE;
2933 if (this->m_logOut_OutputPort[0].isConnected()) {
2937#if FW_AMPCS_COMPATIBLE
2946 _status = fileName.
serialize(_logBuff, 60);
2952#if FW_AMPCS_COMPATIBLE
2955 static_cast<U8>(
sizeof(U32))
2962 _status = _logBuff.
serialize(recordNumber);
2968#if FW_AMPCS_COMPATIBLE
2971 static_cast<U8>(
sizeof(U32))
2984 this->m_logOut_OutputPort[0].invoke(
2993#if FW_ENABLE_TEXT_LOGGING
2994 if (this->m_LogText_OutputPort[0].isConnected()) {
2995#if FW_OBJECT_NAMES == 1
2996 const char* _formatString =
2997 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
2999 const char* _formatString =
3000 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") complete";
3012 "CS_CommandComplete ",
3021 this->m_LogText_OutputPort[0].invoke(
2915 void CmdSequencerComponentBase :: {
…}
3031 void CmdSequencerComponentBase ::
3036 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3037 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3042 _id = this->getIdBase() + EVENTID_CS_SEQUENCECOMPLETE;
3045 if (this->m_logOut_OutputPort[0].isConnected()) {
3049#if FW_AMPCS_COMPATIBLE
3058 _status = fileName.
serialize(_logBuff, 60);
3064 this->m_logOut_OutputPort[0].invoke(
3073#if FW_ENABLE_TEXT_LOGGING
3074 if (this->m_LogText_OutputPort[0].isConnected()) {
3075#if FW_OBJECT_NAMES == 1
3076 const char* _formatString =
3077 "(%s) %s: Sequence file %s complete";
3079 const char* _formatString =
3080 "%s: Sequence file %s complete";
3092 "CS_SequenceComplete ",
3099 this->m_LogText_OutputPort[0].invoke(
3031 void CmdSequencerComponentBase :: {
…}
3109 void CmdSequencerComponentBase ::
3110 log_WARNING_HI_CS_CommandError(
3119 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3120 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3125 _id = this->getIdBase() + EVENTID_CS_COMMANDERROR;
3128 if (this->m_logOut_OutputPort[0].isConnected()) {
3132#if FW_AMPCS_COMPATIBLE
3141 _status = fileName.
serialize(_logBuff, 60);
3147#if FW_AMPCS_COMPATIBLE
3150 static_cast<U8>(
sizeof(U32))
3157 _status = _logBuff.
serialize(recordNumber);
3163#if FW_AMPCS_COMPATIBLE
3166 static_cast<U8>(
sizeof(U32))
3179#if FW_AMPCS_COMPATIBLE
3182 static_cast<U8>(
sizeof(U32))
3189 _status = _logBuff.
serialize(errorStatus);
3195 this->m_logOut_OutputPort[0].invoke(
3204#if FW_ENABLE_TEXT_LOGGING
3205 if (this->m_LogText_OutputPort[0].isConnected()) {
3206#if FW_OBJECT_NAMES == 1
3207 const char* _formatString =
3208 "(%s) %s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3210 const char* _formatString =
3211 "%s: Sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") completed with error %" PRIu32
"";
3233 this->m_LogText_OutputPort[0].invoke(
3109 void CmdSequencerComponentBase :: {
…}
3243 void CmdSequencerComponentBase ::
3244 log_WARNING_HI_CS_InvalidMode()
3248 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3249 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3254 _id = this->getIdBase() + EVENTID_CS_INVALIDMODE;
3257 if (this->m_logOut_OutputPort[0].isConnected()) {
3260#if FW_AMPCS_COMPATIBLE
3270 this->m_logOut_OutputPort[0].invoke(
3279#if FW_ENABLE_TEXT_LOGGING
3280 if (this->m_LogText_OutputPort[0].isConnected()) {
3281#if FW_OBJECT_NAMES == 1
3282 const char* _formatString =
3283 "(%s) %s: Invalid mode";
3285 const char* _formatString =
3304 this->m_LogText_OutputPort[0].invoke(
3243 void CmdSequencerComponentBase :: {
…}
3314 void CmdSequencerComponentBase ::
3315 log_WARNING_HI_CS_RecordMismatch(
3323 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3324 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3329 _id = this->getIdBase() + EVENTID_CS_RECORDMISMATCH;
3332 if (this->m_logOut_OutputPort[0].isConnected()) {
3336#if FW_AMPCS_COMPATIBLE
3345 _status = fileName.
serialize(_logBuff, 60);
3351#if FW_AMPCS_COMPATIBLE
3354 static_cast<U8>(
sizeof(U32))
3361 _status = _logBuff.
serialize(header_records);
3367#if FW_AMPCS_COMPATIBLE
3370 static_cast<U8>(
sizeof(U32))
3377 _status = _logBuff.
serialize(extra_bytes);
3383 this->m_logOut_OutputPort[0].invoke(
3392#if FW_ENABLE_TEXT_LOGGING
3393 if (this->m_LogText_OutputPort[0].isConnected()) {
3394#if FW_OBJECT_NAMES == 1
3395 const char* _formatString =
3396 "(%s) %s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3398 const char* _formatString =
3399 "%s: Sequence file %s header records mismatch: %" PRIu32
" in header, found %" PRIu32
" extra bytes.";
3411 "CS_RecordMismatch ",
3420 this->m_LogText_OutputPort[0].invoke(
3314 void CmdSequencerComponentBase :: {
…}
3430 void CmdSequencerComponentBase ::
3431 log_WARNING_HI_CS_TimeBaseMismatch(
3439 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3440 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3445 _id = this->getIdBase() + EVENTID_CS_TIMEBASEMISMATCH;
3448 if (this->m_logOut_OutputPort[0].isConnected()) {
3452#if FW_AMPCS_COMPATIBLE
3461 _status = fileName.
serialize(_logBuff, 60);
3467#if FW_AMPCS_COMPATIBLE
3470 static_cast<U8>(
sizeof(U16))
3477 _status = _logBuff.
serialize(time_base);
3483#if FW_AMPCS_COMPATIBLE
3486 static_cast<U8>(
sizeof(U16))
3493 _status = _logBuff.
serialize(seq_time_base);
3499 this->m_logOut_OutputPort[0].invoke(
3508#if FW_ENABLE_TEXT_LOGGING
3509 if (this->m_LogText_OutputPort[0].isConnected()) {
3510#if FW_OBJECT_NAMES == 1
3511 const char* _formatString =
3512 "(%s) %s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3514 const char* _formatString =
3515 "%s: Sequence file %s: Current time base doesn't match sequence time: base: %" PRIu16
" seq: %" PRIu16
"";
3527 "CS_TimeBaseMismatch ",
3536 this->m_LogText_OutputPort[0].invoke(
3430 void CmdSequencerComponentBase :: {
…}
3546 void CmdSequencerComponentBase ::
3547 log_WARNING_HI_CS_TimeContextMismatch(
3555 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3556 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3561 _id = this->getIdBase() + EVENTID_CS_TIMECONTEXTMISMATCH;
3564 if (this->m_logOut_OutputPort[0].isConnected()) {
3568#if FW_AMPCS_COMPATIBLE
3577 _status = fileName.
serialize(_logBuff, 60);
3583#if FW_AMPCS_COMPATIBLE
3586 static_cast<U8>(
sizeof(
U8))
3593 _status = _logBuff.
serialize(currTimeBase);
3599#if FW_AMPCS_COMPATIBLE
3602 static_cast<U8>(
sizeof(
U8))
3609 _status = _logBuff.
serialize(seqTimeBase);
3615 this->m_logOut_OutputPort[0].invoke(
3624#if FW_ENABLE_TEXT_LOGGING
3625 if (this->m_LogText_OutputPort[0].isConnected()) {
3626#if FW_OBJECT_NAMES == 1
3627 const char* _formatString =
3628 "(%s) %s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3630 const char* _formatString =
3631 "%s: Sequence file %s: Current time context doesn't match sequence context: base: %" PRIu8
" seq: %" PRIu8
"";
3643 "CS_TimeContextMismatch ",
3652 this->m_LogText_OutputPort[0].invoke(
3546 void CmdSequencerComponentBase :: {
…}
3662 void CmdSequencerComponentBase ::
3667 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3668 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3673 _id = this->getIdBase() + EVENTID_CS_PORTSEQUENCESTARTED;
3676 if (this->m_logOut_OutputPort[0].isConnected()) {
3680#if FW_AMPCS_COMPATIBLE
3689 _status = filename.
serialize(_logBuff, 60);
3695 this->m_logOut_OutputPort[0].invoke(
3704#if FW_ENABLE_TEXT_LOGGING
3705 if (this->m_LogText_OutputPort[0].isConnected()) {
3706#if FW_OBJECT_NAMES == 1
3707 const char* _formatString =
3708 "(%s) %s: Local request for sequence %s started.";
3710 const char* _formatString =
3711 "%s: Local request for sequence %s started.";
3723 "CS_PortSequenceStarted ",
3730 this->m_LogText_OutputPort[0].invoke(
3662 void CmdSequencerComponentBase :: {
…}
3740 void CmdSequencerComponentBase ::
3741 log_WARNING_HI_CS_UnexpectedCompletion(U32 opcode)
3745 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3746 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3751 _id = this->getIdBase() + EVENTID_CS_UNEXPECTEDCOMPLETION;
3754 if (this->m_logOut_OutputPort[0].isConnected()) {
3758#if FW_AMPCS_COMPATIBLE
3767#if FW_AMPCS_COMPATIBLE
3770 static_cast<U8>(
sizeof(U32))
3783 this->m_logOut_OutputPort[0].invoke(
3792#if FW_ENABLE_TEXT_LOGGING
3793 if (this->m_LogText_OutputPort[0].isConnected()) {
3794#if FW_OBJECT_NAMES == 1
3795 const char* _formatString =
3796 "(%s) %s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3798 const char* _formatString =
3799 "%s: Command complete status received while no sequences active. Opcode: %" PRIu32
"";
3811 "CS_UnexpectedCompletion ",
3818 this->m_LogText_OutputPort[0].invoke(
3740 void CmdSequencerComponentBase :: {
…}
3828 void CmdSequencerComponentBase ::
3833 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3834 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3839 _id = this->getIdBase() + EVENTID_CS_MODESWITCHED;
3842 if (this->m_logOut_OutputPort[0].isConnected()) {
3846#if FW_AMPCS_COMPATIBLE
3855#if FW_AMPCS_COMPATIBLE
3871 this->m_logOut_OutputPort[0].invoke(
3880#if FW_ENABLE_TEXT_LOGGING
3881 if (this->m_LogText_OutputPort[0].isConnected()) {
3882#if FW_OBJECT_NAMES == 1
3883 const char* _formatString =
3884 "(%s) %s: Sequencer switched to %s step mode";
3886 const char* _formatString =
3887 "%s: Sequencer switched to %s step mode";
3893 mode.toString(modeStr);
3909 this->m_LogText_OutputPort[0].invoke(
3828 void CmdSequencerComponentBase :: {
…}
3919 void CmdSequencerComponentBase ::
3920 log_WARNING_LO_CS_NoSequenceActive()
3924 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3925 this->m_timeCaller_OutputPort[0].invoke(_logTime);
3930 _id = this->getIdBase() + EVENTID_CS_NOSEQUENCEACTIVE;
3933 if (this->m_logOut_OutputPort[0].isConnected()) {
3936#if FW_AMPCS_COMPATIBLE
3946 this->m_logOut_OutputPort[0].invoke(
3955#if FW_ENABLE_TEXT_LOGGING
3956 if (this->m_LogText_OutputPort[0].isConnected()) {
3957#if FW_OBJECT_NAMES == 1
3958 const char* _formatString =
3959 "(%s) %s: No sequence active.";
3961 const char* _formatString =
3962 "%s: No sequence active.";
3974 "CS_NoSequenceActive "
3980 this->m_LogText_OutputPort[0].invoke(
3919 void CmdSequencerComponentBase :: {
…}
3990 void CmdSequencerComponentBase ::
3995 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3996 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4001 _id = this->getIdBase() + EVENTID_CS_SEQUENCEVALID;
4004 if (this->m_logOut_OutputPort[0].isConnected()) {
4008#if FW_AMPCS_COMPATIBLE
4017 _status = filename.
serialize(_logBuff, 60);
4023 this->m_logOut_OutputPort[0].invoke(
4032#if FW_ENABLE_TEXT_LOGGING
4033 if (this->m_LogText_OutputPort[0].isConnected()) {
4034#if FW_OBJECT_NAMES == 1
4035 const char* _formatString =
4036 "(%s) %s: Sequence %s is valid.";
4038 const char* _formatString =
4039 "%s: Sequence %s is valid.";
4051 "CS_SequenceValid ",
4058 this->m_LogText_OutputPort[0].invoke(
3990 void CmdSequencerComponentBase :: {
…}
4068 void CmdSequencerComponentBase ::
4069 log_WARNING_HI_CS_SequenceTimeout(
4076 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4077 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4082 _id = this->getIdBase() + EVENTID_CS_SEQUENCETIMEOUT;
4085 if (this->m_logOut_OutputPort[0].isConnected()) {
4089#if FW_AMPCS_COMPATIBLE
4098 _status = filename.
serialize(_logBuff, 60);
4104#if FW_AMPCS_COMPATIBLE
4107 static_cast<U8>(
sizeof(U32))
4120 this->m_logOut_OutputPort[0].invoke(
4129#if FW_ENABLE_TEXT_LOGGING
4130 if (this->m_LogText_OutputPort[0].isConnected()) {
4131#if FW_OBJECT_NAMES == 1
4132 const char* _formatString =
4133 "(%s) %s: Sequence %s timed out on command %" PRIu32
"";
4135 const char* _formatString =
4136 "%s: Sequence %s timed out on command %" PRIu32
"";
4148 "CS_SequenceTimeout ",
4156 this->m_LogText_OutputPort[0].invoke(
4068 void CmdSequencerComponentBase :: {
…}
4166 void CmdSequencerComponentBase ::
4167 log_ACTIVITY_HI_CS_CmdStepped(
4174 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4175 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4180 _id = this->getIdBase() + EVENTID_CS_CMDSTEPPED;
4183 if (this->m_logOut_OutputPort[0].isConnected()) {
4187#if FW_AMPCS_COMPATIBLE
4196 _status = filename.
serialize(_logBuff, 60);
4202#if FW_AMPCS_COMPATIBLE
4205 static_cast<U8>(
sizeof(U32))
4218 this->m_logOut_OutputPort[0].invoke(
4227#if FW_ENABLE_TEXT_LOGGING
4228 if (this->m_LogText_OutputPort[0].isConnected()) {
4229#if FW_OBJECT_NAMES == 1
4230 const char* _formatString =
4231 "(%s) %s: Sequence %s command %" PRIu32
" stepped";
4233 const char* _formatString =
4234 "%s: Sequence %s command %" PRIu32
" stepped";
4254 this->m_LogText_OutputPort[0].invoke(
4166 void CmdSequencerComponentBase :: {
…}
4264 void CmdSequencerComponentBase ::
4269 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4270 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4275 _id = this->getIdBase() + EVENTID_CS_CMDSTARTED;
4278 if (this->m_logOut_OutputPort[0].isConnected()) {
4282#if FW_AMPCS_COMPATIBLE
4291 _status = filename.
serialize(_logBuff, 60);
4297 this->m_logOut_OutputPort[0].invoke(
4306#if FW_ENABLE_TEXT_LOGGING
4307 if (this->m_LogText_OutputPort[0].isConnected()) {
4308#if FW_OBJECT_NAMES == 1
4309 const char* _formatString =
4310 "(%s) %s: Sequence %s started";
4312 const char* _formatString =
4313 "%s: Sequence %s started";
4332 this->m_LogText_OutputPort[0].invoke(
4264 void CmdSequencerComponentBase :: {
…}
4342 void CmdSequencerComponentBase ::
4343 log_ACTIVITY_HI_CS_JoinWaiting(
4351 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4352 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4357 _id = this->getIdBase() + EVENTID_CS_JOINWAITING;
4360 if (this->m_logOut_OutputPort[0].isConnected()) {
4364#if FW_AMPCS_COMPATIBLE
4373 _status = filename.
serialize(_logBuff, 60);
4379#if FW_AMPCS_COMPATIBLE
4382 static_cast<U8>(
sizeof(U32))
4389 _status = _logBuff.
serialize(recordNumber);
4395#if FW_AMPCS_COMPATIBLE
4398 static_cast<U8>(
sizeof(U32))
4411 this->m_logOut_OutputPort[0].invoke(
4420#if FW_ENABLE_TEXT_LOGGING
4421 if (this->m_LogText_OutputPort[0].isConnected()) {
4422#if FW_OBJECT_NAMES == 1
4423 const char* _formatString =
4424 "(%s) %s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4426 const char* _formatString =
4427 "%s: Start waiting for sequence file %s: Command %" PRIu32
" (opcode %" PRIu32
") to complete";
4448 this->m_LogText_OutputPort[0].invoke(
4342 void CmdSequencerComponentBase :: {
…}
4458 void CmdSequencerComponentBase ::
4459 log_WARNING_HI_CS_JoinWaitingNotComplete()
4463 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4464 this->m_timeCaller_OutputPort[0].invoke(_logTime);
4469 _id = this->getIdBase() + EVENTID_CS_JOINWAITINGNOTCOMPLETE;
4472 if (this->m_logOut_OutputPort[0].isConnected()) {
4475#if FW_AMPCS_COMPATIBLE
4485 this->m_logOut_OutputPort[0].invoke(
4494#if FW_ENABLE_TEXT_LOGGING
4495 if (this->m_LogText_OutputPort[0].isConnected()) {
4496#if FW_OBJECT_NAMES == 1
4497 const char* _formatString =
4498 "(%s) %s: Still waiting for sequence file to complete";
4500 const char* _formatString =
4501 "%s: Still waiting for sequence file to complete";
4513 "CS_JoinWaitingNotComplete "
4519 this->m_LogText_OutputPort[0].invoke(
4458 void CmdSequencerComponentBase :: {
…}
4533 void CmdSequencerComponentBase ::
4534 tlmWrite_CS_LoadCommands(
4539 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4541 this->m_timeCaller_OutputPort[0].isConnected() &&
4544 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4556 _id = this->getIdBase() + CHANNELID_CS_LOADCOMMANDS;
4558 this->m_tlmOut_OutputPort[0].invoke(
4533 void CmdSequencerComponentBase :: {
…}
4566 void CmdSequencerComponentBase ::
4567 tlmWrite_CS_CancelCommands(
4572 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4574 this->m_timeCaller_OutputPort[0].isConnected() &&
4577 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4589 _id = this->getIdBase() + CHANNELID_CS_CANCELCOMMANDS;
4591 this->m_tlmOut_OutputPort[0].invoke(
4566 void CmdSequencerComponentBase :: {
…}
4599 void CmdSequencerComponentBase ::
4605 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4607 this->m_timeCaller_OutputPort[0].isConnected() &&
4610 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4622 _id = this->getIdBase() + CHANNELID_CS_ERRORS;
4624 this->m_tlmOut_OutputPort[0].invoke(
4599 void CmdSequencerComponentBase :: {
…}
4632 void CmdSequencerComponentBase ::
4633 tlmWrite_CS_CommandsExecuted(
4638 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4640 this->m_timeCaller_OutputPort[0].isConnected() &&
4643 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4655 _id = this->getIdBase() + CHANNELID_CS_COMMANDSEXECUTED;
4657 this->m_tlmOut_OutputPort[0].invoke(
4632 void CmdSequencerComponentBase :: {
…}
4665 void CmdSequencerComponentBase ::
4666 tlmWrite_CS_SequencesCompleted(
4671 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4673 this->m_timeCaller_OutputPort[0].isConnected() &&
4676 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
4688 _id = this->getIdBase() + CHANNELID_CS_SEQUENCESCOMPLETED;
4690 this->m_tlmOut_OutputPort[0].invoke(
4665 void CmdSequencerComponentBase :: {
…}
4705 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4707 this->m_timeCaller_OutputPort[0].invoke(_time);
4722 ComponentIpcSerializableBuffer msg;
4745 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
4747 if (msgType == CMDSEQUENCER_COMPONENT_EXIT) {
4748 return MSG_DISPATCH_EXIT;
4752 deserStatus = msg.deserialize(portNum);
4760 case CMDRESPONSEIN_CMDRESPONSE: {
4763 deserStatus = msg.deserialize(opCode);
4771 deserStatus = msg.deserialize(cmdSeq);
4779 deserStatus = msg.deserialize(response);
4785 this->cmdResponseIn_handler(
4799 deserStatus = msg.deserialize(key);
4805 this->pingIn_handler(
4814 case SCHEDIN_SCHED: {
4817 deserStatus = msg.deserialize(context);
4823 this->schedIn_handler(
4832 case SEQCANCELIN_CMDSEQCANCEL: {
4834 this->seqCancelIn_handler(portNum);
4840 case SEQRUNIN_CMDSEQIN: {
4843 deserStatus = msg.deserialize(filename);
4849 this->seqRunIn_handler(
4861 deserStatus = msg.deserialize(opCode);
4869 deserStatus = msg.deserialize(cmdSeq);
4877 deserStatus = msg.deserialize(args);
4890 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4891 this->cmdResponse_out(
4905 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4906 this->cmdResponse_out(
4918#if FW_CMD_CHECK_RESIDUAL
4920 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4929 this->CS_RUN_cmdHandler(
4939 case CMD_CS_VALIDATE: {
4942 deserStatus = msg.deserialize(opCode);
4950 deserStatus = msg.deserialize(cmdSeq);
4958 deserStatus = msg.deserialize(args);
4971 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4972 this->cmdResponse_out(
4984#if FW_CMD_CHECK_RESIDUAL
4986 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4995 this->CS_VALIDATE_cmdHandler(
5004 case CMD_CS_CANCEL: {
5007 deserStatus = msg.deserialize(opCode);
5015 deserStatus = msg.deserialize(cmdSeq);
5023 deserStatus = msg.deserialize(args);
5034#if FW_CMD_CHECK_RESIDUAL
5036 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5045 this->CS_CANCEL_cmdHandler(opCode, cmdSeq);
5051 case CMD_CS_START: {
5054 deserStatus = msg.deserialize(opCode);
5062 deserStatus = msg.deserialize(cmdSeq);
5070 deserStatus = msg.deserialize(args);
5081#if FW_CMD_CHECK_RESIDUAL
5083 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5092 this->CS_START_cmdHandler(opCode, cmdSeq);
5101 deserStatus = msg.deserialize(opCode);
5109 deserStatus = msg.deserialize(cmdSeq);
5117 deserStatus = msg.deserialize(args);
5128#if FW_CMD_CHECK_RESIDUAL
5130 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5139 this->CS_STEP_cmdHandler(opCode, cmdSeq);
5148 deserStatus = msg.deserialize(opCode);
5156 deserStatus = msg.deserialize(cmdSeq);
5164 deserStatus = msg.deserialize(args);
5175#if FW_CMD_CHECK_RESIDUAL
5177 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5186 this->CS_AUTO_cmdHandler(opCode, cmdSeq);
5192 case CMD_CS_MANUAL: {
5195 deserStatus = msg.deserialize(opCode);
5203 deserStatus = msg.deserialize(cmdSeq);
5211 deserStatus = msg.deserialize(args);
5222#if FW_CMD_CHECK_RESIDUAL
5224 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5233 this->CS_MANUAL_cmdHandler(opCode, cmdSeq);
5239 case CMD_CS_JOIN_WAIT: {
5242 deserStatus = msg.deserialize(opCode);
5250 deserStatus = msg.deserialize(cmdSeq);
5258 deserStatus = msg.deserialize(args);
5269#if FW_CMD_CHECK_RESIDUAL
5271 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
5280 this->CS_JOIN_WAIT_cmdHandler(opCode, cmdSeq);
5286 return MSG_DISPATCH_ERROR;
5289 return MSG_DISPATCH_OK;
5296 void CmdSequencerComponentBase ::
5306 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5308 const U32 idBase = callComp->
getIdBase();
5309 FW_ASSERT(opCode >= idBase, opCode, idBase);
5312 switch (opCode - idBase) {
5313 case OPCODE_CS_RUN: {
5314 compPtr->CS_RUN_cmdHandlerBase(
5322 case OPCODE_CS_VALIDATE: {
5323 compPtr->CS_VALIDATE_cmdHandlerBase(
5331 case OPCODE_CS_CANCEL: {
5332 compPtr->CS_CANCEL_cmdHandlerBase(
5340 case OPCODE_CS_START: {
5341 compPtr->CS_START_cmdHandlerBase(
5349 case OPCODE_CS_STEP: {
5350 compPtr->CS_STEP_cmdHandlerBase(
5358 case OPCODE_CS_AUTO: {
5359 compPtr->CS_AUTO_cmdHandlerBase(
5367 case OPCODE_CS_MANUAL: {
5368 compPtr->CS_MANUAL_cmdHandlerBase(
5376 case OPCODE_CS_JOIN_WAIT: {
5377 compPtr->CS_JOIN_WAIT_cmdHandlerBase(
5391 void CmdSequencerComponentBase ::
5392 m_p_cmdResponseIn_in(
5401 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5402 compPtr->cmdResponseIn_handlerBase(
5410 void CmdSequencerComponentBase ::
5418 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5419 compPtr->pingIn_handlerBase(
5425 void CmdSequencerComponentBase ::
5433 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5434 compPtr->schedIn_handlerBase(
5440 void CmdSequencerComponentBase ::
5447 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5448 compPtr->seqCancelIn_handlerBase(portNum);
5451 void CmdSequencerComponentBase ::
5459 CmdSequencerComponentBase* compPtr =
static_cast<CmdSequencerComponentBase*
>(callComp);
5460 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.