11#if FW_ENABLE_TEXT_LOGGING
35 class ComponentIpcSerializableBuffer :
50 return sizeof(m_buff);
57 const U8* getBuffAddr()
const {
63 U8 m_buff[SERIALIZATION_SIZE];
72 void HealthComponentBase ::
84 port < static_cast<PlatformIntType>(this->getNum_CmdDisp_InputPorts());
87 this->m_CmdDisp_InputPort[port].init();
88 this->m_CmdDisp_InputPort[port].addCallComp(
92 this->m_CmdDisp_InputPort[port].setPortNum(port);
94#if FW_OBJECT_NAMES == 1
101 char portName[2*FW_OBJ_NAME_MAX_SIZE];
109 this->m_CmdDisp_InputPort[port].setObjName(portName);
116 port < static_cast<PlatformIntType>(this->getNum_PingReturn_InputPorts());
119 this->m_PingReturn_InputPort[port].init();
120 this->m_PingReturn_InputPort[port].addCallComp(
124 this->m_PingReturn_InputPort[port].setPortNum(port);
126#if FW_OBJECT_NAMES == 1
133 char portName[2*FW_OBJ_NAME_MAX_SIZE];
141 this->m_PingReturn_InputPort[port].setObjName(portName);
148 port < static_cast<PlatformIntType>(this->getNum_Run_InputPorts());
151 this->m_Run_InputPort[port].init();
152 this->m_Run_InputPort[port].addCallComp(
156 this->m_Run_InputPort[port].setPortNum(port);
158#if FW_OBJECT_NAMES == 1
165 char portName[2*FW_OBJ_NAME_MAX_SIZE];
173 this->m_Run_InputPort[port].setObjName(portName);
180 port < static_cast<PlatformIntType>(this->getNum_CmdReg_OutputPorts());
183 this->m_CmdReg_OutputPort[port].init();
185#if FW_OBJECT_NAMES == 1
192 char portName[2*FW_OBJ_NAME_MAX_SIZE];
200 this->m_CmdReg_OutputPort[port].setObjName(portName);
207 port < static_cast<PlatformIntType>(this->getNum_CmdStatus_OutputPorts());
210 this->m_CmdStatus_OutputPort[port].init();
212#if FW_OBJECT_NAMES == 1
219 char portName[2*FW_OBJ_NAME_MAX_SIZE];
227 this->m_CmdStatus_OutputPort[port].setObjName(portName);
234 port < static_cast<PlatformIntType>(this->getNum_Log_OutputPorts());
237 this->m_Log_OutputPort[port].init();
239#if FW_OBJECT_NAMES == 1
246 char portName[2*FW_OBJ_NAME_MAX_SIZE];
254 this->m_Log_OutputPort[port].setObjName(portName);
258#if FW_ENABLE_TEXT_LOGGING == 1
262 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
265 this->m_LogText_OutputPort[port].init();
267#if FW_OBJECT_NAMES == 1
274 char portName[2*FW_OBJ_NAME_MAX_SIZE];
282 this->m_LogText_OutputPort[port].setObjName(portName);
290 port < static_cast<PlatformIntType>(this->getNum_Time_OutputPorts());
293 this->m_Time_OutputPort[port].init();
295#if FW_OBJECT_NAMES == 1
302 char portName[2*FW_OBJ_NAME_MAX_SIZE];
310 this->m_Time_OutputPort[port].setObjName(portName);
317 port < static_cast<PlatformIntType>(this->getNum_Tlm_OutputPorts());
320 this->m_Tlm_OutputPort[port].init();
322#if FW_OBJECT_NAMES == 1
329 char portName[2*FW_OBJ_NAME_MAX_SIZE];
337 this->m_Tlm_OutputPort[port].setObjName(portName);
344 port < static_cast<PlatformIntType>(this->getNum_PingSend_OutputPorts());
347 this->m_PingSend_OutputPort[port].init();
349#if FW_OBJECT_NAMES == 1
356 char portName[2*FW_OBJ_NAME_MAX_SIZE];
364 this->m_PingSend_OutputPort[port].setObjName(portName);
371 port < static_cast<PlatformIntType>(this->getNum_WdogStroke_OutputPorts());
374 this->m_WdogStroke_OutputPort[port].init();
376#if FW_OBJECT_NAMES == 1
383 char portName[2*FW_OBJ_NAME_MAX_SIZE];
391 this->m_WdogStroke_OutputPort[port].setObjName(portName);
397 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
72 void HealthComponentBase :: {
…}
413 portNum < this->getNum_CmdDisp_InputPorts(),
417 return &this->m_CmdDisp_InputPort[portNum];
428 portNum < this->getNum_PingReturn_InputPorts(),
432 return &this->m_PingReturn_InputPort[portNum];
439 portNum < this->getNum_Run_InputPorts(),
443 return &this->m_Run_InputPort[portNum];
450 void HealthComponentBase ::
451 set_CmdReg_OutputPort(
457 portNum < this->getNum_CmdReg_OutputPorts(),
461 this->m_CmdReg_OutputPort[portNum].addCallPort(port);
450 void HealthComponentBase :: {
…}
464 void HealthComponentBase ::
465 set_CmdStatus_OutputPort(
471 portNum < this->getNum_CmdStatus_OutputPorts(),
475 this->m_CmdStatus_OutputPort[portNum].addCallPort(port);
464 void HealthComponentBase :: {
…}
478 void HealthComponentBase ::
485 portNum < this->getNum_Log_OutputPorts(),
489 this->m_Log_OutputPort[portNum].addCallPort(port);
478 void HealthComponentBase :: {
…}
492#if FW_ENABLE_TEXT_LOGGING == 1
494 void HealthComponentBase ::
495 set_LogText_OutputPort(
501 portNum < this->getNum_LogText_OutputPorts(),
505 this->m_LogText_OutputPort[portNum].addCallPort(port);
510 void HealthComponentBase ::
517 portNum < this->getNum_Time_OutputPorts(),
521 this->m_Time_OutputPort[portNum].addCallPort(port);
510 void HealthComponentBase :: {
…}
524 void HealthComponentBase ::
531 portNum < this->getNum_Tlm_OutputPorts(),
535 this->m_Tlm_OutputPort[portNum].addCallPort(port);
524 void HealthComponentBase :: {
…}
542 void HealthComponentBase ::
543 set_PingSend_OutputPort(
549 portNum < this->getNum_PingSend_OutputPorts(),
553 this->m_PingSend_OutputPort[portNum].addCallPort(port);
542 void HealthComponentBase :: {
…}
556 void HealthComponentBase ::
557 set_WdogStroke_OutputPort(
563 portNum < this->getNum_WdogStroke_OutputPorts(),
567 this->m_WdogStroke_OutputPort[portNum].addCallPort(port);
556 void HealthComponentBase :: {
…}
570#if FW_PORT_SERIALIZATION
576 void HealthComponentBase ::
577 set_CmdReg_OutputPort(
579 Fw::InputSerializePort* port
583 portNum < this->getNum_CmdReg_OutputPorts(),
587 this->m_CmdReg_OutputPort[portNum].registerSerialPort(port);
590 void HealthComponentBase ::
591 set_CmdStatus_OutputPort(
593 Fw::InputSerializePort* port
597 portNum < this->getNum_CmdStatus_OutputPorts(),
601 this->m_CmdStatus_OutputPort[portNum].registerSerialPort(port);
604 void HealthComponentBase ::
607 Fw::InputSerializePort* port
611 portNum < this->getNum_Log_OutputPorts(),
615 this->m_Log_OutputPort[portNum].registerSerialPort(port);
618#if FW_ENABLE_TEXT_LOGGING == 1
620 void HealthComponentBase ::
621 set_LogText_OutputPort(
623 Fw::InputSerializePort* port
627 portNum < this->getNum_LogText_OutputPorts(),
631 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
636 void HealthComponentBase ::
639 Fw::InputSerializePort* port
643 portNum < this->getNum_Time_OutputPorts(),
647 this->m_Time_OutputPort[portNum].registerSerialPort(port);
650 void HealthComponentBase ::
653 Fw::InputSerializePort* port
657 portNum < this->getNum_Tlm_OutputPorts(),
661 this->m_Tlm_OutputPort[portNum].registerSerialPort(port);
666#if FW_PORT_SERIALIZATION
672 void HealthComponentBase ::
673 set_PingSend_OutputPort(
675 Fw::InputSerializePort* port
679 portNum < this->getNum_PingSend_OutputPorts(),
683 this->m_PingSend_OutputPort[portNum].registerSerialPort(port);
686 void HealthComponentBase ::
687 set_WdogStroke_OutputPort(
689 Fw::InputSerializePort* port
693 portNum < this->getNum_WdogStroke_OutputPorts(),
697 this->m_WdogStroke_OutputPort[portNum].registerSerialPort(port);
706 void HealthComponentBase ::
709 FW_ASSERT(this->m_CmdReg_OutputPort[0].isConnected());
711 this->m_CmdReg_OutputPort[0].invoke(
712 this->getIdBase() + OPCODE_HLTH_ENABLE
715 this->m_CmdReg_OutputPort[0].invoke(
716 this->getIdBase() + OPCODE_HLTH_PING_ENABLE
719 this->m_CmdReg_OutputPort[0].invoke(
720 this->getIdBase() + OPCODE_HLTH_CHNG_PING
706 void HealthComponentBase :: {
…}
728 HealthComponentBase ::
729 HealthComponentBase(
const char* compName) :
730 Fw::QueuedComponentBase(compName)
728 HealthComponentBase :: {
…}
735 HealthComponentBase ::
736 ~HealthComponentBase()
735 HealthComponentBase :: {
…}
746 getNum_CmdDisp_InputPorts()
const
756 getNum_PingReturn_InputPorts()
const
762 getNum_Run_InputPorts()
const
772 getNum_CmdReg_OutputPorts()
const
778 getNum_CmdStatus_OutputPorts()
const
784 getNum_Log_OutputPorts()
const
789#if FW_ENABLE_TEXT_LOGGING == 1
792 getNum_LogText_OutputPorts()
const
800 getNum_Time_OutputPorts()
const
806 getNum_Tlm_OutputPorts()
const
816 getNum_PingSend_OutputPorts()
const
822 getNum_WdogStroke_OutputPorts()
const
831 bool HealthComponentBase ::
835 portNum < this->getNum_CmdReg_OutputPorts(),
839 return this->m_CmdReg_OutputPort[portNum].isConnected();
831 bool HealthComponentBase :: {
…}
842 bool HealthComponentBase ::
846 portNum < this->getNum_CmdStatus_OutputPorts(),
850 return this->m_CmdStatus_OutputPort[portNum].isConnected();
842 bool HealthComponentBase :: {
…}
853 bool HealthComponentBase ::
857 portNum < this->getNum_Log_OutputPorts(),
861 return this->m_Log_OutputPort[portNum].isConnected();
853 bool HealthComponentBase :: {
…}
864#if FW_ENABLE_TEXT_LOGGING == 1
866 bool HealthComponentBase ::
870 portNum < this->getNum_LogText_OutputPorts(),
874 return this->m_LogText_OutputPort[portNum].isConnected();
879 bool HealthComponentBase ::
883 portNum < this->getNum_Time_OutputPorts(),
887 return this->m_Time_OutputPort[portNum].isConnected();
879 bool HealthComponentBase :: {
…}
890 bool HealthComponentBase ::
894 portNum < this->getNum_Tlm_OutputPorts(),
898 return this->m_Tlm_OutputPort[portNum].isConnected();
890 bool HealthComponentBase :: {
…}
905 bool HealthComponentBase ::
909 portNum < this->getNum_PingSend_OutputPorts(),
913 return this->m_PingSend_OutputPort[portNum].isConnected();
905 bool HealthComponentBase :: {
…}
916 bool HealthComponentBase ::
920 portNum < this->getNum_WdogStroke_OutputPorts(),
924 return this->m_WdogStroke_OutputPort[portNum].isConnected();
916 bool HealthComponentBase :: {
…}
933 void HealthComponentBase ::
934 PingReturn_handlerBase(
941 portNum < this->getNum_PingReturn_InputPorts(),
946 PingReturn_preMsgHook(
950 ComponentIpcSerializableBuffer msg;
954 _status = msg.serialize(
963 _status = msg.serialize(portNum);
970 _status = msg.serialize(key);
933 void HealthComponentBase :: {
…}
986 void HealthComponentBase ::
994 portNum < this->getNum_Run_InputPorts(),
986 void HealthComponentBase :: {
…}
1013 void HealthComponentBase ::
1014 PingReturn_preMsgHook(
1013 void HealthComponentBase :: {
…}
1026 void HealthComponentBase ::
1033 portNum < this->getNum_PingSend_OutputPorts(),
1036 this->m_PingSend_OutputPort[portNum].invoke(
1026 void HealthComponentBase :: {
…}
1041 void HealthComponentBase ::
1048 portNum < this->getNum_WdogStroke_OutputPorts(),
1051 this->m_WdogStroke_OutputPort[portNum].invoke(
1041 void HealthComponentBase :: {
…}
1060 void HealthComponentBase ::
1067 FW_ASSERT(this->m_CmdStatus_OutputPort[0].isConnected());
1068 this->m_CmdStatus_OutputPort[0].invoke(opCode, cmdSeq, response);
1060 void HealthComponentBase :: {
…}
1077 void HealthComponentBase ::
1078 HLTH_ENABLE_cmdHandlerBase(
1085 this->HLTH_ENABLE_preMsgHook(opCode,cmdSeq);
1089 ComponentIpcSerializableBuffer msg;
1093 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_HLTH_ENABLE));
1102 _status = msg.serialize(port);
1108 _status = msg.serialize(opCode);
1114 _status = msg.serialize(cmdSeq);
1120 _status = msg.serialize(args);
1077 void HealthComponentBase :: {
…}
1136 void HealthComponentBase ::
1137 HLTH_PING_ENABLE_cmdHandlerBase(
1144 this->HLTH_PING_ENABLE_preMsgHook(opCode,cmdSeq);
1148 ComponentIpcSerializableBuffer msg;
1152 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_HLTH_PING_ENABLE));
1161 _status = msg.serialize(port);
1167 _status = msg.serialize(opCode);
1173 _status = msg.serialize(cmdSeq);
1179 _status = msg.serialize(args);
1136 void HealthComponentBase :: {
…}
1195 void HealthComponentBase ::
1196 HLTH_CHNG_PING_cmdHandlerBase(
1203 this->HLTH_CHNG_PING_preMsgHook(opCode,cmdSeq);
1207 ComponentIpcSerializableBuffer msg;
1211 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_HLTH_CHNG_PING));
1220 _status = msg.serialize(port);
1226 _status = msg.serialize(opCode);
1232 _status = msg.serialize(cmdSeq);
1238 _status = msg.serialize(args);
1195 void HealthComponentBase :: {
…}
1262 void HealthComponentBase ::
1263 HLTH_ENABLE_preMsgHook(
1262 void HealthComponentBase :: {
…}
1273 void HealthComponentBase ::
1274 HLTH_PING_ENABLE_preMsgHook(
1273 void HealthComponentBase :: {
…}
1284 void HealthComponentBase ::
1285 HLTH_CHNG_PING_preMsgHook(
1284 void HealthComponentBase :: {
…}
1299 void HealthComponentBase ::
1304 if (this->m_Time_OutputPort[0].isConnected()) {
1305 this->m_Time_OutputPort[0].invoke(_logTime);
1310 _id = this->getIdBase() + EVENTID_HLTH_PING_WARN;
1313 if (this->m_Log_OutputPort[0].isConnected()) {
1317#if FW_AMPCS_COMPATIBLE
1326 _status = entry.
serialize(_logBuff, 40);
1332 this->m_Log_OutputPort[0].invoke(
1341#if FW_ENABLE_TEXT_LOGGING
1342 if (this->m_LogText_OutputPort[0].isConnected()) {
1343#if FW_OBJECT_NAMES == 1
1344 const char* _formatString =
1345 "(%s) %s: Ping entry %s late warning";
1347 const char* _formatString =
1348 "%s: Ping entry %s late warning";
1367 this->m_LogText_OutputPort[0].invoke(
1299 void HealthComponentBase :: {
…}
1377 void HealthComponentBase ::
1382 if (this->m_Time_OutputPort[0].isConnected()) {
1383 this->m_Time_OutputPort[0].invoke(_logTime);
1388 _id = this->getIdBase() + EVENTID_HLTH_PING_LATE;
1391 if (this->m_Log_OutputPort[0].isConnected()) {
1395#if FW_AMPCS_COMPATIBLE
1397 _status = _logBuff.
serialize(
static_cast<U8>(1 + 1));
1410 _status = _logBuff.
serialize(
static_cast<U32
>(0));
1417 _status = entry.
serialize(_logBuff, 40);
1423 this->m_Log_OutputPort[0].invoke(
1432#if FW_ENABLE_TEXT_LOGGING
1433 if (this->m_LogText_OutputPort[0].isConnected()) {
1434#if FW_OBJECT_NAMES == 1
1435 const char* _formatString =
1436 "(%s) %s: Ping entry %s did not respond";
1438 const char* _formatString =
1439 "%s: Ping entry %s did not respond";
1458 this->m_LogText_OutputPort[0].invoke(
1377 void HealthComponentBase :: {
…}
1468 void HealthComponentBase ::
1469 log_FATAL_HLTH_PING_WRONG_KEY(
1476 if (this->m_Time_OutputPort[0].isConnected()) {
1477 this->m_Time_OutputPort[0].invoke(_logTime);
1482 _id = this->getIdBase() + EVENTID_HLTH_PING_WRONG_KEY;
1485 if (this->m_Log_OutputPort[0].isConnected()) {
1489#if FW_AMPCS_COMPATIBLE
1491 _status = _logBuff.
serialize(
static_cast<U8>(2 + 1));
1504 _status = _logBuff.
serialize(
static_cast<U32
>(0));
1511 _status = entry.
serialize(_logBuff, 40);
1517#if FW_AMPCS_COMPATIBLE
1520 static_cast<U8>(
sizeof(U32))
1533 this->m_Log_OutputPort[0].invoke(
1542#if FW_ENABLE_TEXT_LOGGING
1543 if (this->m_LogText_OutputPort[0].isConnected()) {
1544#if FW_OBJECT_NAMES == 1
1545 const char* _formatString =
1546 "(%s) %s: Ping entry %s responded with wrong key 0x%" PRIx32
"";
1548 const char* _formatString =
1549 "%s: Ping entry %s responded with wrong key 0x%" PRIx32
"";
1561 "HLTH_PING_WRONG_KEY ",
1569 this->m_LogText_OutputPort[0].invoke(
1468 void HealthComponentBase :: {
…}
1579 void HealthComponentBase ::
1580 log_ACTIVITY_HI_HLTH_CHECK_ENABLE(
Fw::Enabled enabled)
1584 if (this->m_Time_OutputPort[0].isConnected()) {
1585 this->m_Time_OutputPort[0].invoke(_logTime);
1590 _id = this->getIdBase() + EVENTID_HLTH_CHECK_ENABLE;
1593 if (this->m_Log_OutputPort[0].isConnected()) {
1597#if FW_AMPCS_COMPATIBLE
1606#if FW_AMPCS_COMPATIBLE
1622 this->m_Log_OutputPort[0].invoke(
1631#if FW_ENABLE_TEXT_LOGGING
1632 if (this->m_LogText_OutputPort[0].isConnected()) {
1633#if FW_OBJECT_NAMES == 1
1634 const char* _formatString =
1635 "(%s) %s: Health checking set to %s";
1637 const char* _formatString =
1638 "%s: Health checking set to %s";
1644 enabled.toString(enabledStr);
1653 "HLTH_CHECK_ENABLE ",
1660 this->m_LogText_OutputPort[0].invoke(
1579 void HealthComponentBase :: {
…}
1670 void HealthComponentBase ::
1671 log_ACTIVITY_HI_HLTH_CHECK_PING(
1678 if (this->m_Time_OutputPort[0].isConnected()) {
1679 this->m_Time_OutputPort[0].invoke(_logTime);
1684 _id = this->getIdBase() + EVENTID_HLTH_CHECK_PING;
1687 if (this->m_Log_OutputPort[0].isConnected()) {
1691#if FW_AMPCS_COMPATIBLE
1700#if FW_AMPCS_COMPATIBLE
1716 _status = entry.
serialize(_logBuff, 40);
1722 this->m_Log_OutputPort[0].invoke(
1731#if FW_ENABLE_TEXT_LOGGING
1732 if (this->m_LogText_OutputPort[0].isConnected()) {
1733#if FW_OBJECT_NAMES == 1
1734 const char* _formatString =
1735 "(%s) %s: Health checking set to %s for %s";
1737 const char* _formatString =
1738 "%s: Health checking set to %s for %s";
1744 enabled.toString(enabledStr);
1761 this->m_LogText_OutputPort[0].invoke(
1670 void HealthComponentBase :: {
…}
1771 void HealthComponentBase ::
1776 if (this->m_Time_OutputPort[0].isConnected()) {
1777 this->m_Time_OutputPort[0].invoke(_logTime);
1782 _id = this->getIdBase() + EVENTID_HLTH_CHECK_LOOKUP_ERROR;
1785 if (this->m_Log_OutputPort[0].isConnected()) {
1789#if FW_AMPCS_COMPATIBLE
1798 _status = entry.
serialize(_logBuff, 40);
1804 this->m_Log_OutputPort[0].invoke(
1813#if FW_ENABLE_TEXT_LOGGING
1814 if (this->m_LogText_OutputPort[0].isConnected()) {
1815#if FW_OBJECT_NAMES == 1
1816 const char* _formatString =
1817 "(%s) %s: Couldn't find entry %s";
1819 const char* _formatString =
1820 "%s: Couldn't find entry %s";
1832 "HLTH_CHECK_LOOKUP_ERROR ",
1839 this->m_LogText_OutputPort[0].invoke(
1771 void HealthComponentBase :: {
…}
1849 void HealthComponentBase ::
1850 log_ACTIVITY_HI_HLTH_PING_UPDATED(
1858 if (this->m_Time_OutputPort[0].isConnected()) {
1859 this->m_Time_OutputPort[0].invoke(_logTime);
1864 _id = this->getIdBase() + EVENTID_HLTH_PING_UPDATED;
1867 if (this->m_Log_OutputPort[0].isConnected()) {
1871#if FW_AMPCS_COMPATIBLE
1880 _status = entry.
serialize(_logBuff, 40);
1886#if FW_AMPCS_COMPATIBLE
1889 static_cast<U8>(
sizeof(U32))
1902#if FW_AMPCS_COMPATIBLE
1905 static_cast<U8>(
sizeof(U32))
1918 this->m_Log_OutputPort[0].invoke(
1927#if FW_ENABLE_TEXT_LOGGING
1928 if (this->m_LogText_OutputPort[0].isConnected()) {
1929#if FW_OBJECT_NAMES == 1
1930 const char* _formatString =
1931 "(%s) %s: Health ping for %s changed to WARN %" PRIu32
" FATAL %" PRIu32
"";
1933 const char* _formatString =
1934 "%s: Health ping for %s changed to WARN %" PRIu32
" FATAL %" PRIu32
"";
1946 "HLTH_PING_UPDATED ",
1955 this->m_LogText_OutputPort[0].invoke(
1849 void HealthComponentBase :: {
…}
1965 void HealthComponentBase ::
1966 log_WARNING_HI_HLTH_PING_INVALID_VALUES(
1974 if (this->m_Time_OutputPort[0].isConnected()) {
1975 this->m_Time_OutputPort[0].invoke(_logTime);
1980 _id = this->getIdBase() + EVENTID_HLTH_PING_INVALID_VALUES;
1983 if (this->m_Log_OutputPort[0].isConnected()) {
1987#if FW_AMPCS_COMPATIBLE
1996 _status = entry.
serialize(_logBuff, 40);
2002#if FW_AMPCS_COMPATIBLE
2005 static_cast<U8>(
sizeof(U32))
2018#if FW_AMPCS_COMPATIBLE
2021 static_cast<U8>(
sizeof(U32))
2034 this->m_Log_OutputPort[0].invoke(
2043#if FW_ENABLE_TEXT_LOGGING
2044 if (this->m_LogText_OutputPort[0].isConnected()) {
2045#if FW_OBJECT_NAMES == 1
2046 const char* _formatString =
2047 "(%s) %s: Health ping for %s invalid values: WARN %" PRIu32
" FATAL %" PRIu32
"";
2049 const char* _formatString =
2050 "%s: Health ping for %s invalid values: WARN %" PRIu32
" FATAL %" PRIu32
"";
2062 "HLTH_PING_INVALID_VALUES ",
2071 this->m_LogText_OutputPort[0].invoke(
1965 void HealthComponentBase :: {
…}
2085 void HealthComponentBase ::
2086 tlmWrite_PingLateWarnings(
2091 if (this->m_Tlm_OutputPort[0].isConnected()) {
2093 this->m_Time_OutputPort[0].isConnected() &&
2096 this->m_Time_OutputPort[0].invoke(_tlmTime);
2108 _id = this->getIdBase() + CHANNELID_PINGLATEWARNINGS;
2110 this->m_Tlm_OutputPort[0].invoke(
2085 void HealthComponentBase :: {
…}
2125 if (this->m_Time_OutputPort[0].isConnected()) {
2127 this->m_Time_OutputPort[0].invoke(_time);
2142 ComponentIpcSerializableBuffer msg;
2170 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
2172 if (msgType == HEALTH_COMPONENT_EXIT) {
2173 return MSG_DISPATCH_EXIT;
2177 deserStatus = msg.deserialize(portNum);
2185 case PINGRETURN_PING: {
2188 deserStatus = msg.deserialize(key);
2194 this->PingReturn_handler(
2203 case CMD_HLTH_ENABLE: {
2206 deserStatus = msg.deserialize(opCode);
2214 deserStatus = msg.deserialize(cmdSeq);
2222 deserStatus = msg.deserialize(args);
2235 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2236 this->cmdResponse_out(
2248#if FW_CMD_CHECK_RESIDUAL
2250 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2259 this->HLTH_ENABLE_cmdHandler(
2268 case CMD_HLTH_PING_ENABLE: {
2271 deserStatus = msg.deserialize(opCode);
2279 deserStatus = msg.deserialize(cmdSeq);
2287 deserStatus = msg.deserialize(args);
2300 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2301 this->cmdResponse_out(
2315 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2316 this->cmdResponse_out(
2328#if FW_CMD_CHECK_RESIDUAL
2330 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2339 this->HLTH_PING_ENABLE_cmdHandler(
2349 case CMD_HLTH_CHNG_PING: {
2352 deserStatus = msg.deserialize(opCode);
2360 deserStatus = msg.deserialize(cmdSeq);
2368 deserStatus = msg.deserialize(args);
2381 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2382 this->cmdResponse_out(
2396 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2397 this->cmdResponse_out(
2411 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2412 this->cmdResponse_out(
2424#if FW_CMD_CHECK_RESIDUAL
2426 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
2435 this->HLTH_CHNG_PING_cmdHandler(
2446 return MSG_DISPATCH_ERROR;
2449 return MSG_DISPATCH_OK;
2456 void HealthComponentBase ::
2468 const U32 idBase = callComp->
getIdBase();
2469 FW_ASSERT(opCode >= idBase, opCode, idBase);
2472 switch (opCode - idBase) {
2473 case OPCODE_HLTH_ENABLE: {
2482 case OPCODE_HLTH_PING_ENABLE: {
2491 case OPCODE_HLTH_CHNG_PING: {
2506 void HealthComponentBase ::
2514 HealthComponentBase* compPtr =
static_cast<HealthComponentBase*
>(callComp);
2521 void HealthComponentBase ::
2529 HealthComponentBase* compPtr =
static_cast<HealthComponentBase*
>(callComp);
2530 compPtr->Run_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.
Enabled and disabled states.
@ SERIALIZED_SIZE
The size of the serial representation.
@ WARNING_HI
A serious but recoverable event.
@ ACTIVITY_HI
Important informational events.
@ FATAL
A fatal non-recoverable event.
@ WARNING_LO
A less serious but recoverable event.
const char * toChar() const override
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
void init()
Object initializer.
@ MSG_DISPATCH_EMPTY
No more messages in the queue.
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_NO_MORE_MSGS
If non-blocking, all the messages have been drained.
@ QUEUE_OK
message sent/received okay
@ QUEUE_NONBLOCKING
Queue receive always returns even if there is no message.
Auto-generated base for Health component.
void PingReturn_handlerBase(NATIVE_INT_TYPE portNum, U32 key)
Handler base-class function for input port PingReturn.
void HLTH_PING_ENABLE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void HLTH_CHNG_PING_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void HLTH_ENABLE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.