10 #if FW_ENABLE_TEXT_LOGGING 21 CMD_DUMP_FILTER_STATE,
31 BYTE loqQueueIntIfSize[
41 class ComponentIpcSerializableBuffer :
51 MAX_DATA_SIZE =
sizeof(BuffUnion),
53 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
57 return sizeof(m_buff);
64 const U8* getBuffAddr()
const {
70 U8 m_buff[SERIALIZATION_SIZE];
94 this->m_CmdDisp_InputPort[port].
init();
99 this->m_CmdDisp_InputPort[port].
setPortNum(port);
101 #if FW_OBJECT_NAMES == 1 105 this->m_objName.toChar(),
108 this->m_CmdDisp_InputPort[port].setObjName(portName.
toChar());
118 this->m_LogRecv_InputPort[port].
init();
123 this->m_LogRecv_InputPort[port].
setPortNum(port);
125 #if FW_OBJECT_NAMES == 1 129 this->m_objName.toChar(),
132 this->m_LogRecv_InputPort[port].setObjName(portName.
toChar());
142 this->m_pingIn_InputPort[port].
init();
147 this->m_pingIn_InputPort[port].
setPortNum(port);
149 #if FW_OBJECT_NAMES == 1 153 this->m_objName.toChar(),
156 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
166 this->m_CmdReg_OutputPort[port].
init();
168 #if FW_OBJECT_NAMES == 1 172 this->m_objName.toChar(),
175 this->m_CmdReg_OutputPort[port].setObjName(portName.
toChar());
185 this->m_CmdStatus_OutputPort[port].
init();
187 #if FW_OBJECT_NAMES == 1 191 this->m_objName.toChar(),
194 this->m_CmdStatus_OutputPort[port].setObjName(portName.
toChar());
204 this->m_Log_OutputPort[port].
init();
206 #if FW_OBJECT_NAMES == 1 210 this->m_objName.toChar(),
213 this->m_Log_OutputPort[port].setObjName(portName.
toChar());
217 #if FW_ENABLE_TEXT_LOGGING == 1 221 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
224 this->m_LogText_OutputPort[port].
init();
226 #if FW_OBJECT_NAMES == 1 230 this->m_objName.toChar(),
233 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
244 this->m_Time_OutputPort[port].
init();
246 #if FW_OBJECT_NAMES == 1 250 this->m_objName.toChar(),
253 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
263 this->m_FatalAnnounce_OutputPort[port].
init();
265 #if FW_OBJECT_NAMES == 1 269 this->m_objName.toChar(),
272 this->m_FatalAnnounce_OutputPort[port].setObjName(portName.
toChar());
282 this->m_PktSend_OutputPort[port].
init();
284 #if FW_OBJECT_NAMES == 1 288 this->m_objName.toChar(),
291 this->m_PktSend_OutputPort[port].setObjName(portName.
toChar());
301 this->m_pingOut_OutputPort[port].
init();
303 #if FW_OBJECT_NAMES == 1 307 this->m_objName.toChar(),
310 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
317 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
321 static_cast<FwAssertArgType>(qStat)
334 static_cast<FwAssertArgType>(portNum)
337 return &this->m_CmdDisp_InputPort[portNum];
349 static_cast<FwAssertArgType>(portNum)
352 return &this->m_LogRecv_InputPort[portNum];
360 static_cast<FwAssertArgType>(portNum)
363 return &this->m_pingIn_InputPort[portNum];
378 static_cast<FwAssertArgType>(portNum)
381 this->m_CmdReg_OutputPort[portNum].
addCallPort(port);
392 static_cast<FwAssertArgType>(portNum)
395 this->m_CmdStatus_OutputPort[portNum].
addCallPort(port);
406 static_cast<FwAssertArgType>(portNum)
412 #if FW_ENABLE_TEXT_LOGGING == 1 414 void ActiveLoggerComponentBase ::
415 set_LogText_OutputPort(
421 portNum < this->getNum_LogText_OutputPorts(),
422 static_cast<FwAssertArgType>(portNum)
425 this->m_LogText_OutputPort[portNum].addCallPort(port);
438 static_cast<FwAssertArgType>(portNum)
441 this->m_Time_OutputPort[portNum].
addCallPort(port);
456 static_cast<FwAssertArgType>(portNum)
459 this->m_FatalAnnounce_OutputPort[portNum].
addCallPort(port);
470 static_cast<FwAssertArgType>(portNum)
473 this->m_PktSend_OutputPort[portNum].
addCallPort(port);
484 static_cast<FwAssertArgType>(portNum)
487 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
490 #if FW_PORT_SERIALIZATION 499 Fw::InputSerializePort* port
504 static_cast<FwAssertArgType>(portNum)
507 this->m_CmdReg_OutputPort[portNum].registerSerialPort(port);
513 Fw::InputSerializePort* port
518 static_cast<FwAssertArgType>(portNum)
521 this->m_CmdStatus_OutputPort[portNum].registerSerialPort(port);
527 Fw::InputSerializePort* port
532 static_cast<FwAssertArgType>(portNum)
535 this->m_Log_OutputPort[portNum].registerSerialPort(port);
538 #if FW_ENABLE_TEXT_LOGGING == 1 540 void ActiveLoggerComponentBase ::
541 set_LogText_OutputPort(
543 Fw::InputSerializePort* port
547 portNum < this->getNum_LogText_OutputPorts(),
548 static_cast<FwAssertArgType>(portNum)
551 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
559 Fw::InputSerializePort* port
564 static_cast<FwAssertArgType>(portNum)
567 this->m_Time_OutputPort[portNum].registerSerialPort(port);
572 #if FW_PORT_SERIALIZATION 581 Fw::InputSerializePort* port
586 static_cast<FwAssertArgType>(portNum)
589 this->m_FatalAnnounce_OutputPort[portNum].registerSerialPort(port);
595 Fw::InputSerializePort* port
600 static_cast<FwAssertArgType>(portNum)
603 this->m_PktSend_OutputPort[portNum].registerSerialPort(port);
609 Fw::InputSerializePort* port
614 static_cast<FwAssertArgType>(portNum)
617 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
629 FW_ASSERT(this->m_CmdReg_OutputPort[0].isConnected());
631 this->m_CmdReg_OutputPort[0].
invoke(
635 this->m_CmdReg_OutputPort[0].
invoke(
639 this->m_CmdReg_OutputPort[0].
invoke(
650 Fw::ActiveComponentBase(compName)
709 #if FW_ENABLE_TEXT_LOGGING == 1 712 getNum_LogText_OutputPorts()
const 756 static_cast<FwAssertArgType>(portNum)
759 return this->m_CmdReg_OutputPort[portNum].
isConnected();
767 static_cast<FwAssertArgType>(portNum)
770 return this->m_CmdStatus_OutputPort[portNum].
isConnected();
778 static_cast<FwAssertArgType>(portNum)
781 return this->m_Log_OutputPort[portNum].
isConnected();
784 #if FW_ENABLE_TEXT_LOGGING == 1 786 bool ActiveLoggerComponentBase ::
787 isConnected_LogText_OutputPort(
FwIndexType portNum)
790 portNum < this->getNum_LogText_OutputPorts(),
791 static_cast<FwAssertArgType>(portNum)
794 return this->m_LogText_OutputPort[portNum].isConnected();
804 static_cast<FwAssertArgType>(portNum)
807 return this->m_Time_OutputPort[portNum].
isConnected();
819 static_cast<FwAssertArgType>(portNum)
822 return this->m_FatalAnnounce_OutputPort[portNum].
isConnected();
830 static_cast<FwAssertArgType>(portNum)
833 return this->m_PktSend_OutputPort[portNum].
isConnected();
841 static_cast<FwAssertArgType>(portNum)
844 return this->m_pingOut_OutputPort[portNum].
isConnected();
865 static_cast<FwAssertArgType>(portNum)
887 static_cast<FwAssertArgType>(portNum)
895 ComponentIpcSerializableBuffer msg;
899 _status = msg.serialize(
900 static_cast<FwEnumStoreType>(PINGIN_PING)
904 static_cast<FwAssertArgType>(_status)
908 _status = msg.serialize(portNum);
911 static_cast<FwAssertArgType>(_status)
915 _status = msg.serialize(key);
918 static_cast<FwAssertArgType>(_status)
927 static_cast<FwAssertArgType>(qStatus)
960 static_cast<FwAssertArgType>(portNum)
962 this->m_FatalAnnounce_OutputPort[portNum].
invoke(
976 static_cast<FwAssertArgType>(portNum)
978 this->m_PktSend_OutputPort[portNum].
invoke(
992 static_cast<FwAssertArgType>(portNum)
994 this->m_pingOut_OutputPort[portNum].
invoke(
1011 ComponentIpcSerializableBuffer msg;
1015 _status = msg.serialize(static_cast<FwEnumStoreType>(INT_IF_LOQQUEUE));
1018 static_cast<FwAssertArgType>(_status)
1022 _status = msg.serialize(static_cast<FwIndexType>(0));
1025 static_cast<FwAssertArgType>(_status)
1028 _status = msg.serialize(
id);
1031 static_cast<FwAssertArgType>(_status)
1034 _status = msg.serialize(timeTag);
1037 static_cast<FwAssertArgType>(_status)
1040 _status = msg.serialize(severity);
1043 static_cast<FwAssertArgType>(_status)
1046 _status = msg.serialize(args);
1049 static_cast<FwAssertArgType>(_status)
1056 if (qStatus == Os::Queue::Status::FULL) {
1063 static_cast<FwAssertArgType>(qStatus)
1078 FW_ASSERT(this->m_CmdStatus_OutputPort[0].isConnected());
1079 this->m_CmdStatus_OutputPort[0].
invoke(opCode, cmdSeq, response);
1104 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1105 this->m_CmdStatus_OutputPort[0].
invoke(
1117 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1118 this->m_CmdStatus_OutputPort[0].
invoke(
1127 #if FW_CMD_CHECK_RESIDUAL 1131 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1132 this->m_CmdStatus_OutputPort[0].
invoke(
1161 ComponentIpcSerializableBuffer msg;
1165 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_SET_ID_FILTER));
1168 static_cast<FwAssertArgType>(_status)
1174 _status = msg.serialize(port);
1177 static_cast<FwAssertArgType>(_status)
1180 _status = msg.serialize(opCode);
1183 static_cast<FwAssertArgType>(_status)
1186 _status = msg.serialize(cmdSeq);
1189 static_cast<FwAssertArgType>(_status)
1192 _status = msg.serialize(args);
1195 static_cast<FwAssertArgType>(_status)
1204 static_cast<FwAssertArgType>(qStatus)
1220 ComponentIpcSerializableBuffer msg;
1224 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_DUMP_FILTER_STATE));
1227 static_cast<FwAssertArgType>(_status)
1233 _status = msg.serialize(port);
1236 static_cast<FwAssertArgType>(_status)
1239 _status = msg.serialize(opCode);
1242 static_cast<FwAssertArgType>(_status)
1245 _status = msg.serialize(cmdSeq);
1248 static_cast<FwAssertArgType>(_status)
1251 _status = msg.serialize(args);
1254 static_cast<FwAssertArgType>(_status)
1263 static_cast<FwAssertArgType>(qStatus)
1309 if (this->m_Time_OutputPort[0].isConnected()) {
1310 this->m_Time_OutputPort[0].
invoke(_logTime);
1318 if (this->m_Log_OutputPort[0].isConnected()) {
1322 #if FW_AMPCS_COMPATIBLE 1324 _status = _logBuff.
serialize(static_cast<U8>(2));
1327 static_cast<FwAssertArgType>(_status)
1331 #if FW_AMPCS_COMPATIBLE 1338 static_cast<FwAssertArgType>(_status)
1344 static_cast<FwAssertArgType>(_status)
1347 #if FW_AMPCS_COMPATIBLE 1350 static_cast<U8>(
sizeof(
U8))
1354 static_cast<FwAssertArgType>(_status)
1360 static_cast<FwAssertArgType>(_status)
1363 this->m_Log_OutputPort[0].
invoke(
1372 #if FW_ENABLE_TEXT_LOGGING 1373 if (this->m_LogText_OutputPort[0].isConnected()) {
1374 #if FW_OBJECT_NAMES == 1 1375 const char* _formatString =
1376 "(%s) %s: %s filter state. %d";
1378 const char* _formatString =
1379 "%s: %s filter state. %d";
1383 severity.toString(severityStr);
1389 this->m_objName.toChar(),
1391 "SEVERITY_FILTER_STATE ",
1396 this->m_LogText_OutputPort[0].invoke(
1411 if (this->m_Time_OutputPort[0].isConnected()) {
1412 this->m_Time_OutputPort[0].
invoke(_logTime);
1420 if (this->m_Log_OutputPort[0].isConnected()) {
1424 #if FW_AMPCS_COMPATIBLE 1426 _status = _logBuff.
serialize(static_cast<U8>(1));
1429 static_cast<FwAssertArgType>(_status)
1433 #if FW_AMPCS_COMPATIBLE 1436 static_cast<U8>(
sizeof(U32))
1440 static_cast<FwAssertArgType>(_status)
1446 static_cast<FwAssertArgType>(_status)
1449 this->m_Log_OutputPort[0].
invoke(
1458 #if FW_ENABLE_TEXT_LOGGING 1459 if (this->m_LogText_OutputPort[0].isConnected()) {
1460 #if FW_OBJECT_NAMES == 1 1461 const char* _formatString =
1462 "(%s) %s: ID %" PRIu32
" is filtered.";
1464 const char* _formatString =
1465 "%s: ID %" PRIu32
" is filtered.";
1472 this->m_objName.toChar(),
1474 "ID_FILTER_ENABLED ",
1478 this->m_LogText_OutputPort[0].invoke(
1493 if (this->m_Time_OutputPort[0].isConnected()) {
1494 this->m_Time_OutputPort[0].
invoke(_logTime);
1502 if (this->m_Log_OutputPort[0].isConnected()) {
1506 #if FW_AMPCS_COMPATIBLE 1508 _status = _logBuff.
serialize(static_cast<U8>(1));
1511 static_cast<FwAssertArgType>(_status)
1515 #if FW_AMPCS_COMPATIBLE 1518 static_cast<U8>(
sizeof(U32))
1522 static_cast<FwAssertArgType>(_status)
1528 static_cast<FwAssertArgType>(_status)
1531 this->m_Log_OutputPort[0].
invoke(
1540 #if FW_ENABLE_TEXT_LOGGING 1541 if (this->m_LogText_OutputPort[0].isConnected()) {
1542 #if FW_OBJECT_NAMES == 1 1543 const char* _formatString =
1544 "(%s) %s: ID filter list is full. Cannot filter %" PRIu32
" .";
1546 const char* _formatString =
1547 "%s: ID filter list is full. Cannot filter %" PRIu32
" .";
1554 this->m_objName.toChar(),
1556 "ID_FILTER_LIST_FULL ",
1560 this->m_LogText_OutputPort[0].invoke(
1575 if (this->m_Time_OutputPort[0].isConnected()) {
1576 this->m_Time_OutputPort[0].
invoke(_logTime);
1584 if (this->m_Log_OutputPort[0].isConnected()) {
1588 #if FW_AMPCS_COMPATIBLE 1590 _status = _logBuff.
serialize(static_cast<U8>(1));
1593 static_cast<FwAssertArgType>(_status)
1597 #if FW_AMPCS_COMPATIBLE 1600 static_cast<U8>(
sizeof(U32))
1604 static_cast<FwAssertArgType>(_status)
1610 static_cast<FwAssertArgType>(_status)
1613 this->m_Log_OutputPort[0].
invoke(
1622 #if FW_ENABLE_TEXT_LOGGING 1623 if (this->m_LogText_OutputPort[0].isConnected()) {
1624 #if FW_OBJECT_NAMES == 1 1625 const char* _formatString =
1626 "(%s) %s: ID filter ID %" PRIu32
" removed.";
1628 const char* _formatString =
1629 "%s: ID filter ID %" PRIu32
" removed.";
1636 this->m_objName.toChar(),
1638 "ID_FILTER_REMOVED ",
1642 this->m_LogText_OutputPort[0].invoke(
1657 if (this->m_Time_OutputPort[0].isConnected()) {
1658 this->m_Time_OutputPort[0].
invoke(_logTime);
1666 if (this->m_Log_OutputPort[0].isConnected()) {
1670 #if FW_AMPCS_COMPATIBLE 1672 _status = _logBuff.
serialize(static_cast<U8>(1));
1675 static_cast<FwAssertArgType>(_status)
1679 #if FW_AMPCS_COMPATIBLE 1682 static_cast<U8>(
sizeof(U32))
1686 static_cast<FwAssertArgType>(_status)
1692 static_cast<FwAssertArgType>(_status)
1695 this->m_Log_OutputPort[0].
invoke(
1704 #if FW_ENABLE_TEXT_LOGGING 1705 if (this->m_LogText_OutputPort[0].isConnected()) {
1706 #if FW_OBJECT_NAMES == 1 1707 const char* _formatString =
1708 "(%s) %s: ID filter ID %" PRIu32
" not found.";
1710 const char* _formatString =
1711 "%s: ID filter ID %" PRIu32
" not found.";
1718 this->m_objName.toChar(),
1720 "ID_FILTER_NOT_FOUND ",
1724 this->m_LogText_OutputPort[0].invoke(
1741 if (this->m_Time_OutputPort[0].isConnected()) {
1743 this->m_Time_OutputPort[0].
invoke(_time);
1758 ComponentIpcSerializableBuffer msg;
1768 static_cast<FwAssertArgType>(msgStatus)
1778 static_cast<FwAssertArgType>(deserStatus)
1781 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
1783 if (msgType == ACTIVELOGGER_COMPONENT_EXIT) {
1788 deserStatus = msg.deserialize(portNum);
1791 static_cast<FwAssertArgType>(deserStatus)
1799 deserStatus = msg.deserialize(key);
1802 static_cast<FwAssertArgType>(deserStatus)
1814 case CMD_SET_ID_FILTER: {
1817 deserStatus = msg.deserialize(opCode);
1820 static_cast<FwAssertArgType>(deserStatus)
1825 deserStatus = msg.deserialize(cmdSeq);
1828 static_cast<FwAssertArgType>(deserStatus)
1833 deserStatus = msg.deserialize(args);
1836 static_cast<FwAssertArgType>(deserStatus)
1846 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1861 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1874 #if FW_CMD_CHECK_RESIDUAL 1876 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1895 case CMD_DUMP_FILTER_STATE: {
1898 deserStatus = msg.deserialize(opCode);
1901 static_cast<FwAssertArgType>(deserStatus)
1906 deserStatus = msg.deserialize(cmdSeq);
1909 static_cast<FwAssertArgType>(deserStatus)
1914 deserStatus = msg.deserialize(args);
1917 static_cast<FwAssertArgType>(deserStatus)
1925 #if FW_CMD_CHECK_RESIDUAL 1927 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1942 case INT_IF_LOQQUEUE: {
1944 deserStatus = msg.deserialize(
id);
1949 static_cast<FwAssertArgType>(deserStatus)
1953 deserStatus = msg.deserialize(timeTag);
1958 static_cast<FwAssertArgType>(deserStatus)
1962 deserStatus = msg.deserialize(severity);
1967 static_cast<FwAssertArgType>(deserStatus)
1971 deserStatus = msg.deserialize(args);
1976 static_cast<FwAssertArgType>(deserStatus)
1982 msg.getBuffLeft() == 0,
2008 void ActiveLoggerComponentBase ::
2020 const U32 idBase = callComp->
getIdBase();
2021 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
2024 switch (opCode - idBase) {
2026 compPtr->SET_EVENT_FILTER_cmdHandlerBase(
2035 compPtr->SET_ID_FILTER_cmdHandlerBase(
2044 compPtr->DUMP_FILTER_STATE_cmdHandlerBase(
2058 void ActiveLoggerComponentBase ::
2070 compPtr->LogRecv_handlerBase(
2079 void ActiveLoggerComponentBase ::
2088 compPtr->pingIn_handlerBase(
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
PlatformAssertArgType FwAssertArgType
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port interface.
void init()
Initialization function.
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
Dump the filter states via events.
void LogRecv_handlerBase(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port LogRecv.
NATIVE_UINT_TYPE SizeType
Status
status returned from the queue send function
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
const char * toChar() const
void FatalAnnounce_out(FwIndexType portNum, FwEventIdType Id)
Invoke output port FatalAnnounce.
virtual ~ActiveLoggerComponentBase()
Destroy ActiveLoggerComponentBase object.
PlatformSizeType FwSizeType
void invoke(U32 key) const
Invoke a port interface.
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
void set_PktSend_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to PktSend[portNum].
void SET_EVENT_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
FwIndexType getNum_Log_OutputPorts() const
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void DUMP_FILTER_STATE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void loqQueue_internalInterfaceInvoke(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)
Internal interface base-class function for loqQueue.
FwIndexType getNum_FatalAnnounce_OutputPorts() const
Enum representing a command response.
void invoke(FwEventIdType Id) const
Invoke a port interface.
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
FwIndexType getNum_PktSend_OutputPorts() const
bool isConnected_Log_OutputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
Os::Queue m_queue
queue object for active component
void PktSend_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port PktSend.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void init()
Object initializer.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
SerializeStatus
forward declaration for string
void log_WARNING_LO_ID_FILTER_LIST_FULL(U32 ID) const
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
Message will block until space is available.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
void addCallPort(InputFatalEventPort *callPort)
Register an input port.
Serializable::SizeType getBuffLeft() const
returns how much deserialization buffer is left
void init()
Initialization function.
FwIndexType getNum_CmdReg_OutputPorts() const
Less important informational events.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
A less serious but recoverable event.
void init()
Initialization function.
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
ActiveLoggerComponentBase(const char *compName="")
Construct ActiveLoggerComponentBase object.
bool isConnected_CmdReg_OutputPort(FwIndexType portNum)
void invoke(Fw::Time &time) const
Invoke a port interface.
virtual void loqQueue_internalInterfaceHandler(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)=0
Internal interface handler for loqQueue.
The size of the serial representation.
const char * toChar() const
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port interface.
No time base has been established.
Set filter for reporting events. Events are not stored in component.
virtual void SET_EVENT_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::ActiveLogger_FilterSeverity filterLevel, Svc::ActiveLogger_Enabled filterEnabled)=0
void addCallPort(InputPingPort *callPort)
Register an input port.
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(Svc::ActiveLogger_FilterSeverity severity, bool enabled) const
FwIndexType getNum_CmdDisp_InputPorts() const
Dump severity filter state.
void resetDeser()
reset deserialization to beginning
Errors dispatching messages.
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
void set_FatalAnnounce_OutputPort(FwIndexType portNum, Svc::InputFatalEventPort *port)
Connect port to FatalAnnounce[portNum].
Enum representing event severity.
virtual void LogRecv_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
Handler for input port LogRecv.
FwIndexType getNum_CmdStatus_OutputPorts() const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
FwIndexType getNum_pingOut_OutputPorts() const
Fw::InputLogPort * get_LogRecv_InputPort(FwIndexType portNum)
uint8_t U8
8-bit unsigned integer
Attempted to add ID to full ID filter ID.
#define PRI_PlatformIntType
FwIndexType getNum_pingIn_InputPorts() const
Command failed to deserialize.
virtual void DUMP_FILTER_STATE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command DUMP_FILTER_STATE.
Important informational events.
virtual void SET_ID_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 ID, Svc::ActiveLogger_Enabled idFilterEnabled)=0
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
PlatformQueuePriorityType FwQueuePriorityType
message to exit active component task
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
A message was sent requesting an exit of the loop.
void SET_ID_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void incNumMsgDropped()
increment the number of messages dropped
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum)
FwIndexType getNum_LogRecv_InputPorts() const
message sent/received okay
bool isConnected_Time_OutputPort(FwIndexType portNum)
void addCallPort(InputComPort *callPort)
Register an input port.
FwIndexType getNum_Time_OutputPorts() const
Enabled and disabled state.
Message will return with status when space is unavailable.
virtual void SET_ID_FILTER_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SET_ID_FILTER.
void init()
Initialization function.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
void regCommands()
Register commands with the Command Dispatcher.
Removed an ID from the filter.
bool isConnected_FatalAnnounce_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void log_WARNING_LO_ID_FILTER_NOT_FOUND(U32 ID) const
bool isConnected_PktSend_OutputPort(FwIndexType portNum)
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
The size of the serial representation.
virtual void DUMP_FILTER_STATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
void log_ACTIVITY_HI_ID_FILTER_REMOVED(U32 ID) const
void log_ACTIVITY_HI_ID_FILTER_ENABLED(U32 ID) const
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.