11#if FW_ENABLE_TEXT_LOGGING
20 BUFFERSENDIN_BUFFERSEND,
42 class ComponentIpcSerializableBuffer :
57 return sizeof(m_buff);
64 const U8* getBuffAddr()
const {
70 U8 m_buff[SERIALIZATION_SIZE];
79 void BufferLoggerComponentBase ::
91 port < static_cast<PlatformIntType>(this->getNum_cmdIn_InputPorts());
94 this->m_cmdIn_InputPort[port].init();
95 this->m_cmdIn_InputPort[port].addCallComp(
99 this->m_cmdIn_InputPort[port].setPortNum(port);
101#if FW_OBJECT_NAMES == 1
110 this->m_cmdIn_InputPort[port].setObjName(portName);
117 port < static_cast<PlatformIntType>(this->getNum_bufferSendIn_InputPorts());
120 this->m_bufferSendIn_InputPort[port].init();
121 this->m_bufferSendIn_InputPort[port].addCallComp(
125 this->m_bufferSendIn_InputPort[port].setPortNum(port);
127#if FW_OBJECT_NAMES == 1
136 this->m_bufferSendIn_InputPort[port].setObjName(portName);
143 port < static_cast<PlatformIntType>(this->getNum_comIn_InputPorts());
146 this->m_comIn_InputPort[port].init();
147 this->m_comIn_InputPort[port].addCallComp(
151 this->m_comIn_InputPort[port].setPortNum(port);
153#if FW_OBJECT_NAMES == 1
162 this->m_comIn_InputPort[port].setObjName(portName);
169 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
172 this->m_pingIn_InputPort[port].init();
173 this->m_pingIn_InputPort[port].addCallComp(
177 this->m_pingIn_InputPort[port].setPortNum(port);
179#if FW_OBJECT_NAMES == 1
188 this->m_pingIn_InputPort[port].setObjName(portName);
195 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
198 this->m_schedIn_InputPort[port].init();
199 this->m_schedIn_InputPort[port].addCallComp(
203 this->m_schedIn_InputPort[port].setPortNum(port);
205#if FW_OBJECT_NAMES == 1
214 this->m_schedIn_InputPort[port].setObjName(portName);
221 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
224 this->m_cmdRegOut_OutputPort[port].init();
226#if FW_OBJECT_NAMES == 1
235 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
242 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
245 this->m_cmdResponseOut_OutputPort[port].init();
247#if FW_OBJECT_NAMES == 1
256 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
263 port < static_cast<PlatformIntType>(this->getNum_eventOut_OutputPorts());
266 this->m_eventOut_OutputPort[port].init();
268#if FW_OBJECT_NAMES == 1
277 this->m_eventOut_OutputPort[port].setObjName(portName);
281#if FW_ENABLE_TEXT_LOGGING == 1
285 port < static_cast<PlatformIntType>(this->getNum_eventOutText_OutputPorts());
288 this->m_eventOutText_OutputPort[port].init();
290#if FW_OBJECT_NAMES == 1
299 this->m_eventOutText_OutputPort[port].setObjName(portName);
307 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
310 this->m_timeCaller_OutputPort[port].init();
312#if FW_OBJECT_NAMES == 1
321 this->m_timeCaller_OutputPort[port].setObjName(portName);
328 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
331 this->m_tlmOut_OutputPort[port].init();
333#if FW_OBJECT_NAMES == 1
342 this->m_tlmOut_OutputPort[port].setObjName(portName);
349 port < static_cast<PlatformIntType>(this->getNum_bufferSendOut_OutputPorts());
352 this->m_bufferSendOut_OutputPort[port].init();
354#if FW_OBJECT_NAMES == 1
363 this->m_bufferSendOut_OutputPort[port].setObjName(portName);
370 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
373 this->m_pingOut_OutputPort[port].init();
375#if FW_OBJECT_NAMES == 1
384 this->m_pingOut_OutputPort[port].setObjName(portName);
390 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
79 void BufferLoggerComponentBase :: {
…}
406 portNum < this->getNum_cmdIn_InputPorts(),
410 return &this->m_cmdIn_InputPort[portNum];
421 portNum < this->getNum_bufferSendIn_InputPorts(),
425 return &this->m_bufferSendIn_InputPort[portNum];
432 portNum < this->getNum_comIn_InputPorts(),
436 return &this->m_comIn_InputPort[portNum];
443 portNum < this->getNum_pingIn_InputPorts(),
447 return &this->m_pingIn_InputPort[portNum];
454 portNum < this->getNum_schedIn_InputPorts(),
458 return &this->m_schedIn_InputPort[portNum];
465 void BufferLoggerComponentBase ::
466 set_cmdRegOut_OutputPort(
472 portNum < this->getNum_cmdRegOut_OutputPorts(),
476 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
465 void BufferLoggerComponentBase :: {
…}
479 void BufferLoggerComponentBase ::
480 set_cmdResponseOut_OutputPort(
486 portNum < this->getNum_cmdResponseOut_OutputPorts(),
490 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
479 void BufferLoggerComponentBase :: {
…}
493 void BufferLoggerComponentBase ::
494 set_eventOut_OutputPort(
500 portNum < this->getNum_eventOut_OutputPorts(),
504 this->m_eventOut_OutputPort[portNum].addCallPort(port);
493 void BufferLoggerComponentBase :: {
…}
507#if FW_ENABLE_TEXT_LOGGING == 1
509 void BufferLoggerComponentBase ::
510 set_eventOutText_OutputPort(
516 portNum < this->getNum_eventOutText_OutputPorts(),
520 this->m_eventOutText_OutputPort[portNum].addCallPort(port);
525 void BufferLoggerComponentBase ::
526 set_timeCaller_OutputPort(
532 portNum < this->getNum_timeCaller_OutputPorts(),
536 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
525 void BufferLoggerComponentBase :: {
…}
539 void BufferLoggerComponentBase ::
540 set_tlmOut_OutputPort(
546 portNum < this->getNum_tlmOut_OutputPorts(),
550 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
539 void BufferLoggerComponentBase :: {
…}
557 void BufferLoggerComponentBase ::
558 set_bufferSendOut_OutputPort(
564 portNum < this->getNum_bufferSendOut_OutputPorts(),
568 this->m_bufferSendOut_OutputPort[portNum].addCallPort(port);
557 void BufferLoggerComponentBase :: {
…}
571 void BufferLoggerComponentBase ::
572 set_pingOut_OutputPort(
578 portNum < this->getNum_pingOut_OutputPorts(),
582 this->m_pingOut_OutputPort[portNum].addCallPort(port);
571 void BufferLoggerComponentBase :: {
…}
585#if FW_PORT_SERIALIZATION
591 void BufferLoggerComponentBase ::
592 set_cmdRegOut_OutputPort(
594 Fw::InputSerializePort* port
598 portNum < this->getNum_cmdRegOut_OutputPorts(),
602 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
605 void BufferLoggerComponentBase ::
606 set_cmdResponseOut_OutputPort(
608 Fw::InputSerializePort* port
612 portNum < this->getNum_cmdResponseOut_OutputPorts(),
616 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
619 void BufferLoggerComponentBase ::
620 set_eventOut_OutputPort(
622 Fw::InputSerializePort* port
626 portNum < this->getNum_eventOut_OutputPorts(),
630 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
633#if FW_ENABLE_TEXT_LOGGING == 1
635 void BufferLoggerComponentBase ::
636 set_eventOutText_OutputPort(
638 Fw::InputSerializePort* port
642 portNum < this->getNum_eventOutText_OutputPorts(),
646 this->m_eventOutText_OutputPort[portNum].registerSerialPort(port);
651 void BufferLoggerComponentBase ::
652 set_timeCaller_OutputPort(
654 Fw::InputSerializePort* port
658 portNum < this->getNum_timeCaller_OutputPorts(),
662 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
665 void BufferLoggerComponentBase ::
666 set_tlmOut_OutputPort(
668 Fw::InputSerializePort* port
672 portNum < this->getNum_tlmOut_OutputPorts(),
676 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
681#if FW_PORT_SERIALIZATION
687 void BufferLoggerComponentBase ::
688 set_bufferSendOut_OutputPort(
690 Fw::InputSerializePort* port
694 portNum < this->getNum_bufferSendOut_OutputPorts(),
698 this->m_bufferSendOut_OutputPort[portNum].registerSerialPort(port);
701 void BufferLoggerComponentBase ::
702 set_pingOut_OutputPort(
704 Fw::InputSerializePort* port
708 portNum < this->getNum_pingOut_OutputPorts(),
712 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
721 void BufferLoggerComponentBase ::
724 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
726 this->m_cmdRegOut_OutputPort[0].invoke(
727 this->getIdBase() + OPCODE_BL_OPENFILE
730 this->m_cmdRegOut_OutputPort[0].invoke(
731 this->getIdBase() + OPCODE_BL_CLOSEFILE
734 this->m_cmdRegOut_OutputPort[0].invoke(
735 this->getIdBase() + OPCODE_BL_SETLOGGING
738 this->m_cmdRegOut_OutputPort[0].invoke(
739 this->getIdBase() + OPCODE_BL_FLUSHFILE
721 void BufferLoggerComponentBase :: {
…}
747 BufferLoggerComponentBase ::
748 BufferLoggerComponentBase(
const char* compName) :
749 Fw::ActiveComponentBase(compName)
747 BufferLoggerComponentBase :: {
…}
754 BufferLoggerComponentBase ::
755 ~BufferLoggerComponentBase()
754 BufferLoggerComponentBase :: {
…}
765 getNum_cmdIn_InputPorts()
const
775 getNum_bufferSendIn_InputPorts()
const
781 getNum_comIn_InputPorts()
const
787 getNum_pingIn_InputPorts()
const
793 getNum_schedIn_InputPorts()
const
803 getNum_cmdRegOut_OutputPorts()
const
809 getNum_cmdResponseOut_OutputPorts()
const
815 getNum_eventOut_OutputPorts()
const
820#if FW_ENABLE_TEXT_LOGGING == 1
823 getNum_eventOutText_OutputPorts()
const
831 getNum_timeCaller_OutputPorts()
const
837 getNum_tlmOut_OutputPorts()
const
847 getNum_bufferSendOut_OutputPorts()
const
853 getNum_pingOut_OutputPorts()
const
862 bool BufferLoggerComponentBase ::
866 portNum < this->getNum_cmdRegOut_OutputPorts(),
870 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
862 bool BufferLoggerComponentBase :: {
…}
873 bool BufferLoggerComponentBase ::
877 portNum < this->getNum_cmdResponseOut_OutputPorts(),
881 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
873 bool BufferLoggerComponentBase :: {
…}
884 bool BufferLoggerComponentBase ::
888 portNum < this->getNum_eventOut_OutputPorts(),
892 return this->m_eventOut_OutputPort[portNum].isConnected();
884 bool BufferLoggerComponentBase :: {
…}
895#if FW_ENABLE_TEXT_LOGGING == 1
897 bool BufferLoggerComponentBase ::
901 portNum < this->getNum_eventOutText_OutputPorts(),
905 return this->m_eventOutText_OutputPort[portNum].isConnected();
910 bool BufferLoggerComponentBase ::
914 portNum < this->getNum_timeCaller_OutputPorts(),
918 return this->m_timeCaller_OutputPort[portNum].isConnected();
910 bool BufferLoggerComponentBase :: {
…}
921 bool BufferLoggerComponentBase ::
925 portNum < this->getNum_tlmOut_OutputPorts(),
929 return this->m_tlmOut_OutputPort[portNum].isConnected();
921 bool BufferLoggerComponentBase :: {
…}
936 bool BufferLoggerComponentBase ::
940 portNum < this->getNum_bufferSendOut_OutputPorts(),
944 return this->m_bufferSendOut_OutputPort[portNum].isConnected();
936 bool BufferLoggerComponentBase :: {
…}
947 bool BufferLoggerComponentBase ::
951 portNum < this->getNum_pingOut_OutputPorts(),
955 return this->m_pingOut_OutputPort[portNum].isConnected();
947 bool BufferLoggerComponentBase :: {
…}
964 void BufferLoggerComponentBase ::
965 bufferSendIn_handlerBase(
972 portNum < this->getNum_bufferSendIn_InputPorts(),
977 bufferSendIn_preMsgHook(
981 ComponentIpcSerializableBuffer msg;
985 _status = msg.serialize(
994 _status = msg.serialize(portNum);
1001 _status = msg.serialize(fwBuffer);
964 void BufferLoggerComponentBase :: {
…}
1017 void BufferLoggerComponentBase ::
1026 portNum < this->getNum_comIn_InputPorts(),
1036 ComponentIpcSerializableBuffer msg;
1040 _status = msg.serialize(
1049 _status = msg.serialize(portNum);
1056 _status = msg.serialize(data);
1063 _status = msg.serialize(context);
1017 void BufferLoggerComponentBase :: {
…}
1079 void BufferLoggerComponentBase ::
1087 portNum < this->getNum_pingIn_InputPorts(),
1096 ComponentIpcSerializableBuffer msg;
1100 _status = msg.serialize(
1109 _status = msg.serialize(portNum);
1116 _status = msg.serialize(key);
1079 void BufferLoggerComponentBase :: {
…}
1132 void BufferLoggerComponentBase ::
1133 schedIn_handlerBase(
1140 portNum < this->getNum_schedIn_InputPorts(),
1149 ComponentIpcSerializableBuffer msg;
1153 _status = msg.serialize(
1162 _status = msg.serialize(portNum);
1169 _status = msg.serialize(context);
1132 void BufferLoggerComponentBase :: {
…}
1193 void BufferLoggerComponentBase ::
1194 bufferSendIn_preMsgHook(
1193 void BufferLoggerComponentBase :: {
…}
1202 void BufferLoggerComponentBase ::
1202 void BufferLoggerComponentBase :: {
…}
1212 void BufferLoggerComponentBase ::
1212 void BufferLoggerComponentBase :: {
…}
1221 void BufferLoggerComponentBase ::
1221 void BufferLoggerComponentBase :: {
…}
1234 void BufferLoggerComponentBase ::
1241 portNum < this->getNum_bufferSendOut_OutputPorts(),
1244 this->m_bufferSendOut_OutputPort[portNum].invoke(
1234 void BufferLoggerComponentBase :: {
…}
1249 void BufferLoggerComponentBase ::
1256 portNum < this->getNum_pingOut_OutputPorts(),
1259 this->m_pingOut_OutputPort[portNum].invoke(
1249 void BufferLoggerComponentBase :: {
…}
1268 void BufferLoggerComponentBase ::
1275 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1276 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1268 void BufferLoggerComponentBase :: {
…}
1285 void BufferLoggerComponentBase ::
1286 BL_OpenFile_cmdHandlerBase(
1293 this->BL_OpenFile_preMsgHook(opCode,cmdSeq);
1297 ComponentIpcSerializableBuffer msg;
1301 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_OPENFILE));
1310 _status = msg.serialize(port);
1316 _status = msg.serialize(opCode);
1322 _status = msg.serialize(cmdSeq);
1328 _status = msg.serialize(args);
1285 void BufferLoggerComponentBase :: {
…}
1344 void BufferLoggerComponentBase ::
1345 BL_CloseFile_cmdHandlerBase(
1352 this->BL_CloseFile_preMsgHook(opCode,cmdSeq);
1356 ComponentIpcSerializableBuffer msg;
1360 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_CLOSEFILE));
1369 _status = msg.serialize(port);
1375 _status = msg.serialize(opCode);
1381 _status = msg.serialize(cmdSeq);
1387 _status = msg.serialize(args);
1344 void BufferLoggerComponentBase :: {
…}
1403 void BufferLoggerComponentBase ::
1404 BL_SetLogging_cmdHandlerBase(
1411 this->BL_SetLogging_preMsgHook(opCode,cmdSeq);
1415 ComponentIpcSerializableBuffer msg;
1419 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_SETLOGGING));
1428 _status = msg.serialize(port);
1434 _status = msg.serialize(opCode);
1440 _status = msg.serialize(cmdSeq);
1446 _status = msg.serialize(args);
1403 void BufferLoggerComponentBase :: {
…}
1462 void BufferLoggerComponentBase ::
1463 BL_FlushFile_cmdHandlerBase(
1470 this->BL_FlushFile_preMsgHook(opCode,cmdSeq);
1474 ComponentIpcSerializableBuffer msg;
1478 _status = msg.serialize(
static_cast<NATIVE_INT_TYPE>(CMD_BL_FLUSHFILE));
1487 _status = msg.serialize(port);
1493 _status = msg.serialize(opCode);
1499 _status = msg.serialize(cmdSeq);
1505 _status = msg.serialize(args);
1462 void BufferLoggerComponentBase :: {
…}
1529 void BufferLoggerComponentBase ::
1530 BL_OpenFile_preMsgHook(
1529 void BufferLoggerComponentBase :: {
…}
1538 void BufferLoggerComponentBase ::
1539 BL_CloseFile_preMsgHook(
1538 void BufferLoggerComponentBase :: {
…}
1547 void BufferLoggerComponentBase ::
1548 BL_SetLogging_preMsgHook(
1547 void BufferLoggerComponentBase :: {
…}
1556 void BufferLoggerComponentBase ::
1557 BL_FlushFile_preMsgHook(
1556 void BufferLoggerComponentBase :: {
…}
1569 void BufferLoggerComponentBase ::
1574 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1575 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1580 _id = this->getIdBase() + EVENTID_BL_LOGFILECLOSED;
1583 if (this->m_eventOut_OutputPort[0].isConnected()) {
1587#if FW_AMPCS_COMPATIBLE
1596 _status = file.
serialize(_logBuff, 256);
1602 this->m_eventOut_OutputPort[0].invoke(
1611#if FW_ENABLE_TEXT_LOGGING
1612 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1613#if FW_OBJECT_NAMES == 1
1614 const char* _formatString =
1615 "(%s) %s: File %s closed";
1617 const char* _formatString =
1618 "%s: File %s closed";
1630 "BL_LogFileClosed ",
1637 this->m_eventOutText_OutputPort[0].invoke(
1569 void BufferLoggerComponentBase :: {
…}
1647 void BufferLoggerComponentBase ::
1648 log_WARNING_HI_BL_LogFileOpenError(
1655 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1656 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1661 _id = this->getIdBase() + EVENTID_BL_LOGFILEOPENERROR;
1664 if (this->m_eventOut_OutputPort[0].isConnected()) {
1668#if FW_AMPCS_COMPATIBLE
1677#if FW_AMPCS_COMPATIBLE
1680 static_cast<U8>(
sizeof(U32))
1693 _status = file.
serialize(_logBuff, 256);
1699 this->m_eventOut_OutputPort[0].invoke(
1708#if FW_ENABLE_TEXT_LOGGING
1709 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1710#if FW_OBJECT_NAMES == 1
1711 const char* _formatString =
1712 "(%s) %s: Error %" PRIu32
" opening file %s";
1714 const char* _formatString =
1715 "%s: Error %" PRIu32
" opening file %s";
1727 "BL_LogFileOpenError ",
1735 this->m_eventOutText_OutputPort[0].invoke(
1647 void BufferLoggerComponentBase :: {
…}
1745 void BufferLoggerComponentBase ::
1746 log_WARNING_HI_BL_LogFileValidationError(
1753 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1754 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1759 _id = this->getIdBase() + EVENTID_BL_LOGFILEVALIDATIONERROR;
1762 if (this->m_eventOut_OutputPort[0].isConnected()) {
1766#if FW_AMPCS_COMPATIBLE
1775 _status = validationFile.
serialize(_logBuff, 256);
1781#if FW_AMPCS_COMPATIBLE
1784 static_cast<U8>(
sizeof(U32))
1797 this->m_eventOut_OutputPort[0].invoke(
1806#if FW_ENABLE_TEXT_LOGGING
1807 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1808#if FW_OBJECT_NAMES == 1
1809 const char* _formatString =
1810 "(%s) %s: Failed creating validation file %s with status %" PRIu32
"";
1812 const char* _formatString =
1813 "%s: Failed creating validation file %s with status %" PRIu32
"";
1825 "BL_LogFileValidationError ",
1833 this->m_eventOutText_OutputPort[0].invoke(
1745 void BufferLoggerComponentBase :: {
…}
1843 void BufferLoggerComponentBase ::
1844 log_WARNING_HI_BL_LogFileWriteError(
1853 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1854 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1859 _id = this->getIdBase() + EVENTID_BL_LOGFILEWRITEERROR;
1862 if (this->m_eventOut_OutputPort[0].isConnected()) {
1866#if FW_AMPCS_COMPATIBLE
1875#if FW_AMPCS_COMPATIBLE
1878 static_cast<U8>(
sizeof(U32))
1891#if FW_AMPCS_COMPATIBLE
1894 static_cast<U8>(
sizeof(U32))
1901 _status = _logBuff.
serialize(bytesWritten);
1907#if FW_AMPCS_COMPATIBLE
1910 static_cast<U8>(
sizeof(U32))
1917 _status = _logBuff.
serialize(bytesToWrite);
1923 _status = file.
serialize(_logBuff, 256);
1929 this->m_eventOut_OutputPort[0].invoke(
1938#if FW_ENABLE_TEXT_LOGGING
1939 if (this->m_eventOutText_OutputPort[0].isConnected()) {
1940#if FW_OBJECT_NAMES == 1
1941 const char* _formatString =
1942 "(%s) %s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1944 const char* _formatString =
1945 "%s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1957 "BL_LogFileWriteError ",
1967 this->m_eventOutText_OutputPort[0].invoke(
1843 void BufferLoggerComponentBase :: {
…}
1977 void BufferLoggerComponentBase ::
1978 log_ACTIVITY_LO_BL_Activated()
1982 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1983 this->m_timeCaller_OutputPort[0].invoke(_logTime);
1988 _id = this->getIdBase() + EVENTID_BL_ACTIVATED;
1991 if (this->m_eventOut_OutputPort[0].isConnected()) {
1994#if FW_AMPCS_COMPATIBLE
2004 this->m_eventOut_OutputPort[0].invoke(
2013#if FW_ENABLE_TEXT_LOGGING
2014 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2015#if FW_OBJECT_NAMES == 1
2016 const char* _formatString =
2017 "(%s) %s: Buffer logger was activated";
2019 const char* _formatString =
2020 "%s: Buffer logger was activated";
2038 this->m_eventOutText_OutputPort[0].invoke(
1977 void BufferLoggerComponentBase :: {
…}
2048 void BufferLoggerComponentBase ::
2049 log_ACTIVITY_LO_BL_Deactivated()
2053 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2054 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2059 _id = this->getIdBase() + EVENTID_BL_DEACTIVATED;
2062 if (this->m_eventOut_OutputPort[0].isConnected()) {
2065#if FW_AMPCS_COMPATIBLE
2075 this->m_eventOut_OutputPort[0].invoke(
2084#if FW_ENABLE_TEXT_LOGGING
2085 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2086#if FW_OBJECT_NAMES == 1
2087 const char* _formatString =
2088 "(%s) %s: Buffer logger was deactivated";
2090 const char* _formatString =
2091 "%s: Buffer logger was deactivated";
2109 this->m_eventOutText_OutputPort[0].invoke(
2048 void BufferLoggerComponentBase :: {
…}
2119 void BufferLoggerComponentBase ::
2120 log_WARNING_HI_BL_NoLogFileOpenInitError()
2124 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2125 this->m_timeCaller_OutputPort[0].invoke(_logTime);
2130 _id = this->getIdBase() + EVENTID_BL_NOLOGFILEOPENINITERROR;
2133 if (this->m_eventOut_OutputPort[0].isConnected()) {
2136#if FW_AMPCS_COMPATIBLE
2146 this->m_eventOut_OutputPort[0].invoke(
2155#if FW_ENABLE_TEXT_LOGGING
2156 if (this->m_eventOutText_OutputPort[0].isConnected()) {
2157#if FW_OBJECT_NAMES == 1
2158 const char* _formatString =
2159 "(%s) %s: No log file open command";
2161 const char* _formatString =
2162 "%s: No log file open command";
2174 "BL_NoLogFileOpenInitError "
2180 this->m_eventOutText_OutputPort[0].invoke(
2119 void BufferLoggerComponentBase :: {
…}
2194 void BufferLoggerComponentBase ::
2195 tlmWrite_BufferLogger_NumLoggedBuffers(
2200 if (this->m_tlmOut_OutputPort[0].isConnected()) {
2202 this->m_timeCaller_OutputPort[0].isConnected() &&
2205 this->m_timeCaller_OutputPort[0].invoke(_tlmTime);
2217 _id = this->getIdBase() + CHANNELID_BUFFERLOGGER_NUMLOGGEDBUFFERS;
2219 this->m_tlmOut_OutputPort[0].invoke(
2194 void BufferLoggerComponentBase :: {
…}
2234 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2236 this->m_timeCaller_OutputPort[0].invoke(_time);
2251 ComponentIpcSerializableBuffer msg;
2274 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
2276 if (msgType == BUFFERLOGGER_COMPONENT_EXIT) {
2277 return MSG_DISPATCH_EXIT;
2281 deserStatus = msg.deserialize(portNum);
2289 case BUFFERSENDIN_BUFFERSEND: {
2292 deserStatus = msg.deserialize(fwBuffer);
2298 this->bufferSendIn_handler(
2310 deserStatus = msg.deserialize(data);
2318 deserStatus = msg.deserialize(context);
2324 this->comIn_handler(
2337 deserStatus = msg.deserialize(key);
2343 this->pingIn_handler(
2352 case SCHEDIN_SCHED: {
2355 deserStatus = msg.deserialize(context);
2361 this->schedIn_handler(
2370 case CMD_BL_OPENFILE: {
2373 deserStatus = msg.deserialize(opCode);
2381 deserStatus = msg.deserialize(cmdSeq);
2389 deserStatus = msg.deserialize(args);
2402 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2403 this->cmdResponse_out(
2415#if FW_CMD_CHECK_RESIDUAL
2417 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2426 this->BL_OpenFile_cmdHandler(
2435 case CMD_BL_CLOSEFILE: {
2438 deserStatus = msg.deserialize(opCode);
2446 deserStatus = msg.deserialize(cmdSeq);
2454 deserStatus = msg.deserialize(args);
2465#if FW_CMD_CHECK_RESIDUAL
2467 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2476 this->BL_CloseFile_cmdHandler(opCode, cmdSeq);
2482 case CMD_BL_SETLOGGING: {
2485 deserStatus = msg.deserialize(opCode);
2493 deserStatus = msg.deserialize(cmdSeq);
2501 deserStatus = msg.deserialize(args);
2514 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2515 this->cmdResponse_out(
2527#if FW_CMD_CHECK_RESIDUAL
2529 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2538 this->BL_SetLogging_cmdHandler(
2547 case CMD_BL_FLUSHFILE: {
2550 deserStatus = msg.deserialize(opCode);
2558 deserStatus = msg.deserialize(cmdSeq);
2566 deserStatus = msg.deserialize(args);
2577#if FW_CMD_CHECK_RESIDUAL
2579 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2588 this->BL_FlushFile_cmdHandler(opCode, cmdSeq);
2594 return MSG_DISPATCH_ERROR;
2597 return MSG_DISPATCH_OK;
2604 void BufferLoggerComponentBase ::
2614 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2616 const U32 idBase = callComp->
getIdBase();
2617 FW_ASSERT(opCode >= idBase, opCode, idBase);
2620 switch (opCode - idBase) {
2621 case OPCODE_BL_OPENFILE: {
2622 compPtr->BL_OpenFile_cmdHandlerBase(
2630 case OPCODE_BL_CLOSEFILE: {
2631 compPtr->BL_CloseFile_cmdHandlerBase(
2639 case OPCODE_BL_SETLOGGING: {
2640 compPtr->BL_SetLogging_cmdHandlerBase(
2648 case OPCODE_BL_FLUSHFILE: {
2649 compPtr->BL_FlushFile_cmdHandlerBase(
2663 void BufferLoggerComponentBase ::
2664 m_p_bufferSendIn_in(
2671 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2672 compPtr->bufferSendIn_handlerBase(
2678 void BufferLoggerComponentBase ::
2687 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2688 compPtr->comIn_handlerBase(
2695 void BufferLoggerComponentBase ::
2703 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2704 compPtr->pingIn_handlerBase(
2710 void BufferLoggerComponentBase ::
2718 BufferLoggerComponentBase* compPtr =
static_cast<BufferLoggerComponentBase*
>(callComp);
2719 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.