11#if FW_ENABLE_TEXT_LOGGING
20 BUFFERSENDIN_BUFFERSEND,
41 class ComponentIpcSerializableBuffer :
56 return sizeof(m_buff);
63 const U8* getBuffAddr()
const {
69 U8 m_buff[SERIALIZATION_SIZE];
78 void BufferLoggerComponentBase ::
90 port < static_cast<PlatformIntType>(this->getNum_cmdIn_InputPorts());
93 this->m_cmdIn_InputPort[port].init();
94 this->m_cmdIn_InputPort[port].addCallComp(
98 this->m_cmdIn_InputPort[port].setPortNum(port);
100#if FW_OBJECT_NAMES == 1
109 this->m_cmdIn_InputPort[port].setObjName(portName);
116 port < static_cast<PlatformIntType>(this->getNum_bufferSendIn_InputPorts());
119 this->m_bufferSendIn_InputPort[port].init();
120 this->m_bufferSendIn_InputPort[port].addCallComp(
124 this->m_bufferSendIn_InputPort[port].setPortNum(port);
126#if FW_OBJECT_NAMES == 1
135 this->m_bufferSendIn_InputPort[port].setObjName(portName);
142 port < static_cast<PlatformIntType>(this->getNum_comIn_InputPorts());
145 this->m_comIn_InputPort[port].init();
146 this->m_comIn_InputPort[port].addCallComp(
150 this->m_comIn_InputPort[port].setPortNum(port);
152#if FW_OBJECT_NAMES == 1
161 this->m_comIn_InputPort[port].setObjName(portName);
168 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
171 this->m_pingIn_InputPort[port].init();
172 this->m_pingIn_InputPort[port].addCallComp(
176 this->m_pingIn_InputPort[port].setPortNum(port);
178#if FW_OBJECT_NAMES == 1
187 this->m_pingIn_InputPort[port].setObjName(portName);
194 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
197 this->m_schedIn_InputPort[port].init();
198 this->m_schedIn_InputPort[port].addCallComp(
202 this->m_schedIn_InputPort[port].setPortNum(port);
204#if FW_OBJECT_NAMES == 1
213 this->m_schedIn_InputPort[port].setObjName(portName);
220 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
223 this->m_cmdRegOut_OutputPort[port].init();
225#if FW_OBJECT_NAMES == 1
234 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
241 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
244 this->m_cmdResponseOut_OutputPort[port].init();
246#if FW_OBJECT_NAMES == 1
255 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
262 port < static_cast<PlatformIntType>(this->getNum_eventOut_OutputPorts());
265 this->m_eventOut_OutputPort[port].init();
267#if FW_OBJECT_NAMES == 1
276 this->m_eventOut_OutputPort[port].setObjName(portName);
280#if FW_ENABLE_TEXT_LOGGING == 1
284 port < static_cast<PlatformIntType>(this->getNum_eventOutText_OutputPorts());
287 this->m_eventOutText_OutputPort[port].init();
289#if FW_OBJECT_NAMES == 1
298 this->m_eventOutText_OutputPort[port].setObjName(portName);
306 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
309 this->m_timeCaller_OutputPort[port].init();
311#if FW_OBJECT_NAMES == 1
320 this->m_timeCaller_OutputPort[port].setObjName(portName);
327 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
330 this->m_tlmOut_OutputPort[port].init();
332#if FW_OBJECT_NAMES == 1
341 this->m_tlmOut_OutputPort[port].setObjName(portName);
348 port < static_cast<PlatformIntType>(this->getNum_bufferSendOut_OutputPorts());
351 this->m_bufferSendOut_OutputPort[port].init();
353#if FW_OBJECT_NAMES == 1
362 this->m_bufferSendOut_OutputPort[port].setObjName(portName);
369 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
372 this->m_pingOut_OutputPort[port].init();
374#if FW_OBJECT_NAMES == 1
383 this->m_pingOut_OutputPort[port].setObjName(portName);
389 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
78 void BufferLoggerComponentBase :: {
…}
405 portNum < this->getNum_cmdIn_InputPorts(),
409 return &this->m_cmdIn_InputPort[portNum];
420 portNum < this->getNum_bufferSendIn_InputPorts(),
424 return &this->m_bufferSendIn_InputPort[portNum];
431 portNum < this->getNum_comIn_InputPorts(),
435 return &this->m_comIn_InputPort[portNum];
442 portNum < this->getNum_pingIn_InputPorts(),
446 return &this->m_pingIn_InputPort[portNum];
453 portNum < this->getNum_schedIn_InputPorts(),
457 return &this->m_schedIn_InputPort[portNum];
464 void BufferLoggerComponentBase ::
465 set_cmdRegOut_OutputPort(
471 portNum < this->getNum_cmdRegOut_OutputPorts(),
475 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
464 void BufferLoggerComponentBase :: {
…}
478 void BufferLoggerComponentBase ::
479 set_cmdResponseOut_OutputPort(
485 portNum < this->getNum_cmdResponseOut_OutputPorts(),
489 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
478 void BufferLoggerComponentBase :: {
…}
492 void BufferLoggerComponentBase ::
493 set_eventOut_OutputPort(
499 portNum < this->getNum_eventOut_OutputPorts(),
503 this->m_eventOut_OutputPort[portNum].addCallPort(port);
492 void BufferLoggerComponentBase :: {
…}
506#if FW_ENABLE_TEXT_LOGGING == 1
508 void BufferLoggerComponentBase ::
509 set_eventOutText_OutputPort(
515 portNum < this->getNum_eventOutText_OutputPorts(),
519 this->m_eventOutText_OutputPort[portNum].addCallPort(port);
524 void BufferLoggerComponentBase ::
525 set_timeCaller_OutputPort(
531 portNum < this->getNum_timeCaller_OutputPorts(),
535 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
524 void BufferLoggerComponentBase :: {
…}
538 void BufferLoggerComponentBase ::
539 set_tlmOut_OutputPort(
545 portNum < this->getNum_tlmOut_OutputPorts(),
549 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
538 void BufferLoggerComponentBase :: {
…}
556 void BufferLoggerComponentBase ::
557 set_bufferSendOut_OutputPort(
563 portNum < this->getNum_bufferSendOut_OutputPorts(),
567 this->m_bufferSendOut_OutputPort[portNum].addCallPort(port);
556 void BufferLoggerComponentBase :: {
…}
570 void BufferLoggerComponentBase ::
571 set_pingOut_OutputPort(
577 portNum < this->getNum_pingOut_OutputPorts(),
581 this->m_pingOut_OutputPort[portNum].addCallPort(port);
570 void BufferLoggerComponentBase :: {
…}
584#if FW_PORT_SERIALIZATION
590 void BufferLoggerComponentBase ::
591 set_cmdRegOut_OutputPort(
593 Fw::InputSerializePort* port
597 portNum < this->getNum_cmdRegOut_OutputPorts(),
601 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
604 void BufferLoggerComponentBase ::
605 set_cmdResponseOut_OutputPort(
607 Fw::InputSerializePort* port
611 portNum < this->getNum_cmdResponseOut_OutputPorts(),
615 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
618 void BufferLoggerComponentBase ::
619 set_eventOut_OutputPort(
621 Fw::InputSerializePort* port
625 portNum < this->getNum_eventOut_OutputPorts(),
629 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
632#if FW_ENABLE_TEXT_LOGGING == 1
634 void BufferLoggerComponentBase ::
635 set_eventOutText_OutputPort(
637 Fw::InputSerializePort* port
641 portNum < this->getNum_eventOutText_OutputPorts(),
645 this->m_eventOutText_OutputPort[portNum].registerSerialPort(port);
650 void BufferLoggerComponentBase ::
651 set_timeCaller_OutputPort(
653 Fw::InputSerializePort* port
657 portNum < this->getNum_timeCaller_OutputPorts(),
661 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
664 void BufferLoggerComponentBase ::
665 set_tlmOut_OutputPort(
667 Fw::InputSerializePort* port
671 portNum < this->getNum_tlmOut_OutputPorts(),
675 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
680#if FW_PORT_SERIALIZATION
686 void BufferLoggerComponentBase ::
687 set_bufferSendOut_OutputPort(
689 Fw::InputSerializePort* port
693 portNum < this->getNum_bufferSendOut_OutputPorts(),
697 this->m_bufferSendOut_OutputPort[portNum].registerSerialPort(port);
700 void BufferLoggerComponentBase ::
701 set_pingOut_OutputPort(
703 Fw::InputSerializePort* port
707 portNum < this->getNum_pingOut_OutputPorts(),
711 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
720 void BufferLoggerComponentBase ::
723 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
725 this->m_cmdRegOut_OutputPort[0].invoke(
726 this->getIdBase() + OPCODE_BL_OPENFILE
729 this->m_cmdRegOut_OutputPort[0].invoke(
730 this->getIdBase() + OPCODE_BL_CLOSEFILE
733 this->m_cmdRegOut_OutputPort[0].invoke(
734 this->getIdBase() + OPCODE_BL_SETLOGGING
737 this->m_cmdRegOut_OutputPort[0].invoke(
738 this->getIdBase() + OPCODE_BL_FLUSHFILE
720 void BufferLoggerComponentBase :: {
…}
746 BufferLoggerComponentBase ::
747 BufferLoggerComponentBase(
const char* compName) :
748 Fw::ActiveComponentBase(compName)
746 BufferLoggerComponentBase :: {
…}
753 BufferLoggerComponentBase ::
754 ~BufferLoggerComponentBase()
753 BufferLoggerComponentBase :: {
…}
764 getNum_cmdIn_InputPorts()
774 getNum_bufferSendIn_InputPorts()
780 getNum_comIn_InputPorts()
786 getNum_pingIn_InputPorts()
792 getNum_schedIn_InputPorts()
802 getNum_cmdRegOut_OutputPorts()
808 getNum_cmdResponseOut_OutputPorts()
814 getNum_eventOut_OutputPorts()
819#if FW_ENABLE_TEXT_LOGGING == 1
822 getNum_eventOutText_OutputPorts()
830 getNum_timeCaller_OutputPorts()
836 getNum_tlmOut_OutputPorts()
846 getNum_bufferSendOut_OutputPorts()
852 getNum_pingOut_OutputPorts()
861 bool BufferLoggerComponentBase ::
865 portNum < this->getNum_cmdRegOut_OutputPorts(),
869 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
861 bool BufferLoggerComponentBase :: {
…}
872 bool BufferLoggerComponentBase ::
876 portNum < this->getNum_cmdResponseOut_OutputPorts(),
880 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
872 bool BufferLoggerComponentBase :: {
…}
883 bool BufferLoggerComponentBase ::
887 portNum < this->getNum_eventOut_OutputPorts(),
891 return this->m_eventOut_OutputPort[portNum].isConnected();
883 bool BufferLoggerComponentBase :: {
…}
894#if FW_ENABLE_TEXT_LOGGING == 1
896 bool BufferLoggerComponentBase ::
900 portNum < this->getNum_eventOutText_OutputPorts(),
904 return this->m_eventOutText_OutputPort[portNum].isConnected();
909 bool BufferLoggerComponentBase ::
913 portNum < this->getNum_timeCaller_OutputPorts(),
917 return this->m_timeCaller_OutputPort[portNum].isConnected();
909 bool BufferLoggerComponentBase :: {
…}
920 bool BufferLoggerComponentBase ::
924 portNum < this->getNum_tlmOut_OutputPorts(),
928 return this->m_tlmOut_OutputPort[portNum].isConnected();
920 bool BufferLoggerComponentBase :: {
…}
935 bool BufferLoggerComponentBase ::
939 portNum < this->getNum_bufferSendOut_OutputPorts(),
943 return this->m_bufferSendOut_OutputPort[portNum].isConnected();
935 bool BufferLoggerComponentBase :: {
…}
946 bool BufferLoggerComponentBase ::
950 portNum < this->getNum_pingOut_OutputPorts(),
954 return this->m_pingOut_OutputPort[portNum].isConnected();
946 bool BufferLoggerComponentBase :: {
…}
963 void BufferLoggerComponentBase ::
964 bufferSendIn_handlerBase(
971 portNum < this->getNum_bufferSendIn_InputPorts(),
976 bufferSendIn_preMsgHook(
980 ComponentIpcSerializableBuffer msg;
984 _status = msg.serialize(
993 _status = msg.serialize(portNum);
1000 _status = msg.serialize(fwBuffer);
963 void BufferLoggerComponentBase :: {
…}
1016 void BufferLoggerComponentBase ::
1025 portNum < this->getNum_comIn_InputPorts(),
1035 ComponentIpcSerializableBuffer msg;
1039 _status = msg.serialize(
1048 _status = msg.serialize(portNum);
1055 _status = msg.serialize(data);
1062 _status = msg.serialize(context);
1016 void BufferLoggerComponentBase :: {
…}
1078 void BufferLoggerComponentBase ::
1086 portNum < this->getNum_pingIn_InputPorts(),
1095 ComponentIpcSerializableBuffer msg;
1099 _status = msg.serialize(
1108 _status = msg.serialize(portNum);
1115 _status = msg.serialize(key);
1078 void BufferLoggerComponentBase :: {
…}
1131 void BufferLoggerComponentBase ::
1132 schedIn_handlerBase(
1139 portNum < this->getNum_schedIn_InputPorts(),
1148 ComponentIpcSerializableBuffer msg;
1152 _status = msg.serialize(
1161 _status = msg.serialize(portNum);
1168 _status = msg.serialize(context);
1131 void BufferLoggerComponentBase :: {
…}
1192 void BufferLoggerComponentBase ::
1193 bufferSendIn_preMsgHook(
1192 void BufferLoggerComponentBase :: {
…}
1201 void BufferLoggerComponentBase ::
1201 void BufferLoggerComponentBase :: {
…}
1211 void BufferLoggerComponentBase ::
1211 void BufferLoggerComponentBase :: {
…}
1220 void BufferLoggerComponentBase ::
1220 void BufferLoggerComponentBase :: {
…}
1233 void BufferLoggerComponentBase ::
1240 portNum < this->getNum_bufferSendOut_OutputPorts(),
1243 this->m_bufferSendOut_OutputPort[portNum].invoke(
1233 void BufferLoggerComponentBase :: {
…}
1248 void BufferLoggerComponentBase ::
1255 portNum < this->getNum_pingOut_OutputPorts(),
1258 this->m_pingOut_OutputPort[portNum].invoke(
1248 void BufferLoggerComponentBase :: {
…}
1267 void BufferLoggerComponentBase ::
1274 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1275 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1267 void BufferLoggerComponentBase :: {
…}
1284 void BufferLoggerComponentBase ::
1285 BL_OpenFile_cmdHandlerBase(
1292 this->BL_OpenFile_preMsgHook(opCode,cmdSeq);
1296 ComponentIpcSerializableBuffer msg;
1300 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_OPENFILE));
1309 _status = msg.serialize(port);
1315 _status = msg.serialize(opCode);
1321 _status = msg.serialize(cmdSeq);
1327 _status = msg.serialize(args);
1284 void BufferLoggerComponentBase :: {
…}
1343 void BufferLoggerComponentBase ::
1344 BL_CloseFile_cmdHandlerBase(
1351 this->BL_CloseFile_preMsgHook(opCode,cmdSeq);
1355 ComponentIpcSerializableBuffer msg;
1359 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_CLOSEFILE));
1368 _status = msg.serialize(port);
1374 _status = msg.serialize(opCode);
1380 _status = msg.serialize(cmdSeq);
1386 _status = msg.serialize(args);
1343 void BufferLoggerComponentBase :: {
…}
1402 void BufferLoggerComponentBase ::
1403 BL_SetLogging_cmdHandlerBase(
1410 this->BL_SetLogging_preMsgHook(opCode,cmdSeq);
1414 ComponentIpcSerializableBuffer msg;
1418 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_SETLOGGING));
1427 _status = msg.serialize(port);
1433 _status = msg.serialize(opCode);
1439 _status = msg.serialize(cmdSeq);
1445 _status = msg.serialize(args);
1402 void BufferLoggerComponentBase :: {
…}
1461 void BufferLoggerComponentBase ::
1462 BL_FlushFile_cmdHandlerBase(
1469 this->BL_FlushFile_preMsgHook(opCode,cmdSeq);
1473 ComponentIpcSerializableBuffer msg;
1477 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_FLUSHFILE));
1486 _status = msg.serialize(port);
1492 _status = msg.serialize(opCode);
1498 _status = msg.serialize(cmdSeq);
1504 _status = msg.serialize(args);
1461 void BufferLoggerComponentBase :: {
…}
1528 void BufferLoggerComponentBase ::
1529 BL_OpenFile_preMsgHook(
1528 void BufferLoggerComponentBase :: {
…}
1537 void BufferLoggerComponentBase ::
1538 BL_CloseFile_preMsgHook(
1537 void BufferLoggerComponentBase :: {
…}
1546 void BufferLoggerComponentBase ::
1547 BL_SetLogging_preMsgHook(
1546 void BufferLoggerComponentBase :: {
…}
1555 void BufferLoggerComponentBase ::
1556 BL_FlushFile_preMsgHook(
1555 void BufferLoggerComponentBase :: {
…}
1568 void BufferLoggerComponentBase ::
1573 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1574 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1579 _id = this->getIdBase() + EVENTID_BL_LOGFILECLOSED;
1582 if (this->m_eventOut_OutputPort[0].isConnected()) {
1586#if FW_AMPCS_COMPATIBLE
1595 _status = file.
serialize(_logBuff, 256);
1601 this->m_eventOut_OutputPort[0].invoke(
1610#if FW_ENABLE_TEXT_LOGGING
1611 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1612#if FW_OBJECT_NAMES == 1
1613 const char* _formatString =
1614 "(%s) %s: File %s closed";
1616 const char* _formatString =
1617 "%s: File %s closed";
1629 "BL_LogFileClosed ",
1636 this->m_eventOutText_OutputPort[0].invoke(
1568 void BufferLoggerComponentBase :: {
…}
1646 void BufferLoggerComponentBase ::
1647 log_WARNING_HI_BL_LogFileOpenError(
1654 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1655 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1660 _id = this->getIdBase() + EVENTID_BL_LOGFILEOPENERROR;
1663 if (this->m_eventOut_OutputPort[0].isConnected()) {
1667#if FW_AMPCS_COMPATIBLE
1676#if FW_AMPCS_COMPATIBLE
1679 static_cast<U8>(
sizeof(U32))
1692 _status = file.
serialize(_logBuff, 256);
1698 this->m_eventOut_OutputPort[0].invoke(
1707#if FW_ENABLE_TEXT_LOGGING
1708 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1709#if FW_OBJECT_NAMES == 1
1710 const char* _formatString =
1711 "(%s) %s: Error %" PRIu32
" opening file %s";
1713 const char* _formatString =
1714 "%s: Error %" PRIu32
" opening file %s";
1726 "BL_LogFileOpenError ",
1734 this->m_eventOutText_OutputPort[0].invoke(
1646 void BufferLoggerComponentBase :: {
…}
1744 void BufferLoggerComponentBase ::
1745 log_WARNING_HI_BL_LogFileValidationError(
1752 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1753 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1758 _id = this->getIdBase() + EVENTID_BL_LOGFILEVALIDATIONERROR;
1761 if (this->m_eventOut_OutputPort[0].isConnected()) {
1765#if FW_AMPCS_COMPATIBLE
1774 _status = validationFile.
serialize(_logBuff, 256);
1780#if FW_AMPCS_COMPATIBLE
1783 static_cast<U8>(
sizeof(U32))
1796 this->m_eventOut_OutputPort[0].invoke(
1805#if FW_ENABLE_TEXT_LOGGING
1806 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1807#if FW_OBJECT_NAMES == 1
1808 const char* _formatString =
1809 "(%s) %s: Failed creating validation file %s with status %" PRIu32
"";
1811 const char* _formatString =
1812 "%s: Failed creating validation file %s with status %" PRIu32
"";
1824 "BL_LogFileValidationError ",
1832 this->m_eventOutText_OutputPort[0].invoke(
1744 void BufferLoggerComponentBase :: {
…}
1842 void BufferLoggerComponentBase ::
1843 log_WARNING_HI_BL_LogFileWriteError(
1852 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1853 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1858 _id = this->getIdBase() + EVENTID_BL_LOGFILEWRITEERROR;
1861 if (this->m_eventOut_OutputPort[0].isConnected()) {
1865#if FW_AMPCS_COMPATIBLE
1874#if FW_AMPCS_COMPATIBLE
1877 static_cast<U8>(
sizeof(U32))
1890#if FW_AMPCS_COMPATIBLE
1893 static_cast<U8>(
sizeof(U32))
1900 _status = _logBuff.
serialize(bytesWritten);
1906#if FW_AMPCS_COMPATIBLE
1909 static_cast<U8>(
sizeof(U32))
1916 _status = _logBuff.
serialize(bytesToWrite);
1922 _status = file.
serialize(_logBuff, 256);
1928 this->m_eventOut_OutputPort[0].invoke(
1937#if FW_ENABLE_TEXT_LOGGING
1938 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1939#if FW_OBJECT_NAMES == 1
1940 const char* _formatString =
1941 "(%s) %s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1943 const char* _formatString =
1944 "%s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1956 "BL_LogFileWriteError ",
1966 this->m_eventOutText_OutputPort[0].invoke(
1842 void BufferLoggerComponentBase :: {
…}
1976 void BufferLoggerComponentBase ::
1977 log_ACTIVITY_LO_BL_Activated()
1981 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1982 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1987 _id = this->getIdBase() + EVENTID_BL_ACTIVATED;
1990 if (this->m_eventOut_OutputPort[0].isConnected()) {
1993#if FW_AMPCS_COMPATIBLE
2003 this->m_eventOut_OutputPort[0].invoke(
2012#if FW_ENABLE_TEXT_LOGGING
2013 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2014#if FW_OBJECT_NAMES == 1
2015 const char* _formatString =
2016 "(%s) %s: Buffer logger was activated";
2018 const char* _formatString =
2019 "%s: Buffer logger was activated";
2037 this->m_eventOutText_OutputPort[0].invoke(
1976 void BufferLoggerComponentBase :: {
…}
2047 void BufferLoggerComponentBase ::
2048 log_ACTIVITY_LO_BL_Deactivated()
2052 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2053 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2058 _id = this->getIdBase() + EVENTID_BL_DEACTIVATED;
2061 if (this->m_eventOut_OutputPort[0].isConnected()) {
2064#if FW_AMPCS_COMPATIBLE
2074 this->m_eventOut_OutputPort[0].invoke(
2083#if FW_ENABLE_TEXT_LOGGING
2084 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2085#if FW_OBJECT_NAMES == 1
2086 const char* _formatString =
2087 "(%s) %s: Buffer logger was deactivated";
2089 const char* _formatString =
2090 "%s: Buffer logger was deactivated";
2108 this->m_eventOutText_OutputPort[0].invoke(
2047 void BufferLoggerComponentBase :: {
…}
2118 void BufferLoggerComponentBase ::
2119 log_WARNING_HI_BL_NoLogFileOpenInitError()
2123 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2124 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2129 _id = this->getIdBase() + EVENTID_BL_NOLOGFILEOPENINITERROR;
2132 if (this->m_eventOut_OutputPort[0].isConnected()) {
2135#if FW_AMPCS_COMPATIBLE
2145 this->m_eventOut_OutputPort[0].invoke(
2154#if FW_ENABLE_TEXT_LOGGING
2155 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2156#if FW_OBJECT_NAMES == 1
2157 const char* _formatString =
2158 "(%s) %s: No log file open command";
2160 const char* _formatString =
2161 "%s: No log file open command";
2173 "BL_NoLogFileOpenInitError "
2179 this->m_eventOutText_OutputPort[0].invoke(
2118 void BufferLoggerComponentBase :: {
…}
2193 void BufferLoggerComponentBase ::
2194 tlmWrite_BufferLogger_NumLoggedBuffers(
2199 if (this->m_tlmOut_OutputPort[0].isConnected()) {
2201 this->m_timeCaller_OutputPort[0].isConnected() &&
2204 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
2216 _id = this->getIdBase() + CHANNELID_BUFFERLOGGER_NUMLOGGEDBUFFERS;
2218 this->m_tlmOut_OutputPort[0].invoke(
2193 void BufferLoggerComponentBase :: {
…}
2233 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2235 this->m_timeCaller_OutputPort[0].invoke(_time);
2250 ComponentIpcSerializableBuffer msg;
2273 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
2275 if (msgType == BUFFERLOGGER_COMPONENT_EXIT) {
2276 return MSG_DISPATCH_EXIT;
2280 deserStatus = msg.deserialize(portNum);
2288 case BUFFERSENDIN_BUFFERSEND: {
2291 deserStatus = msg.deserialize(fwBuffer);
2297 this->bufferSendIn_handler(
2309 deserStatus = msg.deserialize(data);
2317 deserStatus = msg.deserialize(context);
2323 this->comIn_handler(
2336 deserStatus = msg.deserialize(key);
2342 this->pingIn_handler(
2351 case SCHEDIN_SCHED: {
2354 deserStatus = msg.deserialize(context);
2360 this->schedIn_handler(
2369 case CMD_BL_OPENFILE: {
2372 deserStatus = msg.deserialize(opCode);
2380 deserStatus = msg.deserialize(cmdSeq);
2388 deserStatus = msg.deserialize(args);
2401 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2402 this->cmdResponse_out(
2414#if FW_CMD_CHECK_RESIDUAL
2416 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2425 this->BL_OpenFile_cmdHandler(
2434 case CMD_BL_CLOSEFILE: {
2437 deserStatus = msg.deserialize(opCode);
2445 deserStatus = msg.deserialize(cmdSeq);
2453 deserStatus = msg.deserialize(args);
2464#if FW_CMD_CHECK_RESIDUAL
2466 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2475 this->BL_CloseFile_cmdHandler(opCode, cmdSeq);
2481 case CMD_BL_SETLOGGING: {
2484 deserStatus = msg.deserialize(opCode);
2492 deserStatus = msg.deserialize(cmdSeq);
2500 deserStatus = msg.deserialize(args);
2513 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2514 this->cmdResponse_out(
2526#if FW_CMD_CHECK_RESIDUAL
2528 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2537 this->BL_SetLogging_cmdHandler(
2546 case CMD_BL_FLUSHFILE: {
2549 deserStatus = msg.deserialize(opCode);
2557 deserStatus = msg.deserialize(cmdSeq);
2565 deserStatus = msg.deserialize(args);
2576#if FW_CMD_CHECK_RESIDUAL
2578 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2587 this->BL_FlushFile_cmdHandler(opCode, cmdSeq);
2593 return MSG_DISPATCH_ERROR;
2596 return MSG_DISPATCH_OK;
2603 void BufferLoggerComponentBase ::
2613 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2615 const U32 idBase = callComp->
getIdBase();
2616 FW_ASSERT(opCode >= idBase, opCode, idBase);
2619 switch (opCode - idBase) {
2620 case OPCODE_BL_OPENFILE: {
2621 compPtr->BL_OpenFile_cmdHandlerBase(
2629 case OPCODE_BL_CLOSEFILE: {
2630 compPtr->BL_CloseFile_cmdHandlerBase(
2638 case OPCODE_BL_SETLOGGING: {
2639 compPtr->BL_SetLogging_cmdHandlerBase(
2647 case OPCODE_BL_FLUSHFILE: {
2648 compPtr->BL_FlushFile_cmdHandlerBase(
2662 void BufferLoggerComponentBase ::
2663 m_p_bufferSendIn_in(
2670 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2671 compPtr->bufferSendIn_handlerBase(
2677 void BufferLoggerComponentBase ::
2686 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2687 compPtr->comIn_handlerBase(
2694 void BufferLoggerComponentBase ::
2702 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2703 compPtr->pingIn_handlerBase(
2709 void BufferLoggerComponentBase ::
2717 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2718 compPtr->schedIn_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.
@ DIAGNOSTIC
Software diagnostic events.
@ 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
@ 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.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.