9 #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];
88 #if !FW_DIRECT_PORT_CALLS 95 this->m_CmdDisp_InputPort[port].
init();
100 this->m_CmdDisp_InputPort[port].
setPortNum(port);
102 #if FW_OBJECT_NAMES == 1 106 this->m_objName.toChar(),
109 this->m_CmdDisp_InputPort[port].setObjName(portName.
toChar());
114 #if !FW_DIRECT_PORT_CALLS 121 this->m_LogRecv_InputPort[port].
init();
126 this->m_LogRecv_InputPort[port].
setPortNum(port);
128 #if FW_OBJECT_NAMES == 1 132 this->m_objName.toChar(),
135 this->m_LogRecv_InputPort[port].setObjName(portName.
toChar());
140 #if !FW_DIRECT_PORT_CALLS 147 this->m_pingIn_InputPort[port].
init();
152 this->m_pingIn_InputPort[port].
setPortNum(port);
154 #if FW_OBJECT_NAMES == 1 158 this->m_objName.toChar(),
161 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
166 #if !FW_DIRECT_PORT_CALLS 173 this->m_CmdReg_OutputPort[port].
init();
175 #if FW_OBJECT_NAMES == 1 179 this->m_objName.toChar(),
182 this->m_CmdReg_OutputPort[port].setObjName(portName.
toChar());
187 #if !FW_DIRECT_PORT_CALLS 194 this->m_CmdStatus_OutputPort[port].
init();
196 #if FW_OBJECT_NAMES == 1 200 this->m_objName.toChar(),
203 this->m_CmdStatus_OutputPort[port].setObjName(portName.
toChar());
208 #if !FW_DIRECT_PORT_CALLS 215 this->m_Log_OutputPort[port].
init();
217 #if FW_OBJECT_NAMES == 1 221 this->m_objName.toChar(),
224 this->m_Log_OutputPort[port].setObjName(portName.
toChar());
229 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 233 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
236 this->m_LogText_OutputPort[port].
init();
238 #if FW_OBJECT_NAMES == 1 242 this->m_objName.toChar(),
245 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
250 #if !FW_DIRECT_PORT_CALLS 257 this->m_Time_OutputPort[port].
init();
259 #if FW_OBJECT_NAMES == 1 263 this->m_objName.toChar(),
266 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
271 #if !FW_DIRECT_PORT_CALLS 278 this->m_FatalAnnounce_OutputPort[port].
init();
280 #if FW_OBJECT_NAMES == 1 284 this->m_objName.toChar(),
287 this->m_FatalAnnounce_OutputPort[port].setObjName(portName.
toChar());
292 #if !FW_DIRECT_PORT_CALLS 299 this->m_PktSend_OutputPort[port].
init();
301 #if FW_OBJECT_NAMES == 1 305 this->m_objName.toChar(),
308 this->m_PktSend_OutputPort[port].setObjName(portName.
toChar());
313 #if !FW_DIRECT_PORT_CALLS 320 this->m_pingOut_OutputPort[port].
init();
322 #if FW_OBJECT_NAMES == 1 326 this->m_objName.toChar(),
329 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
337 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
341 static_cast<FwAssertArgType>(qStat)
345 #if !FW_DIRECT_PORT_CALLS 356 static_cast<FwAssertArgType>(portNum)
359 return &this->m_CmdDisp_InputPort[portNum];
364 #if !FW_DIRECT_PORT_CALLS 375 static_cast<FwAssertArgType>(portNum)
378 return &this->m_LogRecv_InputPort[portNum];
386 static_cast<FwAssertArgType>(portNum)
389 return &this->m_pingIn_InputPort[portNum];
394 #if !FW_DIRECT_PORT_CALLS 408 static_cast<FwAssertArgType>(portNum)
411 this->m_CmdReg_OutputPort[portNum].
addCallPort(port);
422 static_cast<FwAssertArgType>(portNum)
425 this->m_CmdStatus_OutputPort[portNum].
addCallPort(port);
436 static_cast<FwAssertArgType>(portNum)
442 #if FW_ENABLE_TEXT_LOGGING == 1 444 void EventManagerComponentBase ::
445 set_LogText_OutputPort(
451 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
452 static_cast<FwAssertArgType>(portNum)
455 this->m_LogText_OutputPort[portNum].addCallPort(port);
468 static_cast<FwAssertArgType>(portNum)
471 this->m_Time_OutputPort[portNum].
addCallPort(port);
476 #if !FW_DIRECT_PORT_CALLS 490 static_cast<FwAssertArgType>(portNum)
493 this->m_FatalAnnounce_OutputPort[portNum].
addCallPort(port);
504 static_cast<FwAssertArgType>(portNum)
507 this->m_PktSend_OutputPort[portNum].
addCallPort(port);
518 static_cast<FwAssertArgType>(portNum)
521 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
526 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 535 Fw::InputSerializePort* port
540 static_cast<FwAssertArgType>(portNum)
543 this->m_CmdReg_OutputPort[portNum].registerSerialPort(port);
549 Fw::InputSerializePort* port
554 static_cast<FwAssertArgType>(portNum)
557 this->m_CmdStatus_OutputPort[portNum].registerSerialPort(port);
563 Fw::InputSerializePort* port
568 static_cast<FwAssertArgType>(portNum)
571 this->m_Log_OutputPort[portNum].registerSerialPort(port);
574 #if FW_ENABLE_TEXT_LOGGING == 1 576 void EventManagerComponentBase ::
577 set_LogText_OutputPort(
579 Fw::InputSerializePort* port
583 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
584 static_cast<FwAssertArgType>(portNum)
587 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
595 Fw::InputSerializePort* port
600 static_cast<FwAssertArgType>(portNum)
603 this->m_Time_OutputPort[portNum].registerSerialPort(port);
608 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 617 Fw::InputSerializePort* port
622 static_cast<FwAssertArgType>(portNum)
625 this->m_FatalAnnounce_OutputPort[portNum].registerSerialPort(port);
631 Fw::InputSerializePort* port
636 static_cast<FwAssertArgType>(portNum)
639 this->m_PktSend_OutputPort[portNum].registerSerialPort(port);
645 Fw::InputSerializePort* port
650 static_cast<FwAssertArgType>(portNum)
653 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
689 Fw::ActiveComponentBase(compName)
700 #if !FW_DIRECT_PORT_CALLS 711 static_cast<FwAssertArgType>(portNum)
714 return this->m_CmdReg_OutputPort[portNum].
isConnected();
722 static_cast<FwAssertArgType>(portNum)
725 return this->m_CmdStatus_OutputPort[portNum].
isConnected();
733 static_cast<FwAssertArgType>(portNum)
736 return this->m_Log_OutputPort[portNum].
isConnected();
739 #if FW_ENABLE_TEXT_LOGGING == 1 741 bool EventManagerComponentBase ::
742 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 745 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
746 static_cast<FwAssertArgType>(portNum)
749 return this->m_LogText_OutputPort[portNum].isConnected();
759 static_cast<FwAssertArgType>(portNum)
762 return this->m_Time_OutputPort[portNum].
isConnected();
767 #if !FW_DIRECT_PORT_CALLS 778 static_cast<FwAssertArgType>(portNum)
781 return this->m_FatalAnnounce_OutputPort[portNum].
isConnected();
789 static_cast<FwAssertArgType>(portNum)
792 return this->m_PktSend_OutputPort[portNum].
isConnected();
800 static_cast<FwAssertArgType>(portNum)
803 return this->m_pingOut_OutputPort[portNum].
isConnected();
824 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
827 switch (opCode - idBase) {
878 static_cast<FwAssertArgType>(portNum)
900 static_cast<FwAssertArgType>(portNum)
908 ComponentIpcSerializableBuffer msg;
912 _status = msg.serializeFrom(
913 static_cast<FwEnumStoreType>(PINGIN_PING)
917 static_cast<FwAssertArgType>(_status)
921 _status = msg.serializeFrom(portNum);
924 static_cast<FwAssertArgType>(_status)
928 _status = msg.serializeFrom(key);
931 static_cast<FwAssertArgType>(_status)
940 static_cast<FwAssertArgType>(qStatus)
961 #if !FW_DIRECT_PORT_CALLS 975 static_cast<FwAssertArgType>(portNum)
979 this->m_FatalAnnounce_OutputPort[portNum].isConnected(),
980 static_cast<FwAssertArgType>(portNum)
982 this->m_FatalAnnounce_OutputPort[portNum].
invoke(
996 static_cast<FwAssertArgType>(portNum)
1000 this->m_PktSend_OutputPort[portNum].isConnected(),
1001 static_cast<FwAssertArgType>(portNum)
1003 this->m_PktSend_OutputPort[portNum].
invoke(
1017 static_cast<FwAssertArgType>(portNum)
1021 this->m_pingOut_OutputPort[portNum].isConnected(),
1022 static_cast<FwAssertArgType>(portNum)
1024 this->m_pingOut_OutputPort[portNum].
invoke(
1043 ComponentIpcSerializableBuffer msg;
1047 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_LOQQUEUE));
1050 static_cast<FwAssertArgType>(_status)
1054 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1057 static_cast<FwAssertArgType>(_status)
1060 _status = msg.serializeFrom(
id);
1063 static_cast<FwAssertArgType>(_status)
1066 _status = msg.serializeFrom(timeTag);
1069 static_cast<FwAssertArgType>(_status)
1072 _status = msg.serializeFrom(severity);
1075 static_cast<FwAssertArgType>(_status)
1078 _status = msg.serializeFrom(args);
1081 static_cast<FwAssertArgType>(_status)
1088 if (qStatus == Os::Queue::Status::FULL) {
1095 static_cast<FwAssertArgType>(qStatus)
1111 this->CmdStatus_out(0, opCode, cmdSeq, response);
1137 this->CmdStatus_out(
1151 this->CmdStatus_out(
1161 #if FW_CMD_CHECK_RESIDUAL 1166 this->CmdStatus_out(
1196 ComponentIpcSerializableBuffer msg;
1200 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SET_ID_FILTER));
1203 static_cast<FwAssertArgType>(_status)
1209 _status = msg.serializeFrom(port);
1212 static_cast<FwAssertArgType>(_status)
1215 _status = msg.serializeFrom(opCode);
1218 static_cast<FwAssertArgType>(_status)
1221 _status = msg.serializeFrom(cmdSeq);
1224 static_cast<FwAssertArgType>(_status)
1227 _status = msg.serializeFrom(args);
1230 static_cast<FwAssertArgType>(_status)
1239 static_cast<FwAssertArgType>(qStatus)
1255 ComponentIpcSerializableBuffer msg;
1259 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_DUMP_FILTER_STATE));
1262 static_cast<FwAssertArgType>(_status)
1268 _status = msg.serializeFrom(port);
1271 static_cast<FwAssertArgType>(_status)
1274 _status = msg.serializeFrom(opCode);
1277 static_cast<FwAssertArgType>(_status)
1280 _status = msg.serializeFrom(cmdSeq);
1283 static_cast<FwAssertArgType>(_status)
1286 _status = msg.serializeFrom(args);
1289 static_cast<FwAssertArgType>(_status)
1298 static_cast<FwAssertArgType>(qStatus)
1345 this->Time_out(0, _logTime);
1355 #if FW_AMPCS_COMPATIBLE 1360 static_cast<FwAssertArgType>(_status)
1364 #if FW_AMPCS_COMPATIBLE 1371 static_cast<FwAssertArgType>(_status)
1377 static_cast<FwAssertArgType>(_status)
1380 #if FW_AMPCS_COMPATIBLE 1383 static_cast<U8>(
sizeof(
U8))
1387 static_cast<FwAssertArgType>(_status)
1393 static_cast<FwAssertArgType>(_status)
1406 #if FW_ENABLE_TEXT_LOGGING 1407 if (this->isConnected_LogText_OutputPort(0)) {
1408 #if FW_OBJECT_NAMES == 1 1409 const char* _formatString =
1410 "(%s) %s: %s filter state. %d";
1412 const char* _formatString =
1413 "%s: %s filter state. %d";
1417 severity.toString(severityStr);
1423 this->m_objName.toChar(),
1425 "SEVERITY_FILTER_STATE ",
1447 this->Time_out(0, _logTime);
1457 #if FW_AMPCS_COMPATIBLE 1462 static_cast<FwAssertArgType>(_status)
1466 #if FW_AMPCS_COMPATIBLE 1473 static_cast<FwAssertArgType>(_status)
1479 static_cast<FwAssertArgType>(_status)
1492 #if FW_ENABLE_TEXT_LOGGING 1493 if (this->isConnected_LogText_OutputPort(0)) {
1494 #if FW_OBJECT_NAMES == 1 1495 const char* _formatString =
1496 "(%s) %s: ID %" PRIu32
" is filtered.";
1498 const char* _formatString =
1499 "%s: ID %" PRIu32
" is filtered.";
1506 this->m_objName.toChar(),
1508 "ID_FILTER_ENABLED ",
1529 this->Time_out(0, _logTime);
1539 #if FW_AMPCS_COMPATIBLE 1544 static_cast<FwAssertArgType>(_status)
1548 #if FW_AMPCS_COMPATIBLE 1555 static_cast<FwAssertArgType>(_status)
1561 static_cast<FwAssertArgType>(_status)
1574 #if FW_ENABLE_TEXT_LOGGING 1575 if (this->isConnected_LogText_OutputPort(0)) {
1576 #if FW_OBJECT_NAMES == 1 1577 const char* _formatString =
1578 "(%s) %s: ID filter list is full. Cannot filter %" PRIu32
" .";
1580 const char* _formatString =
1581 "%s: ID filter list is full. Cannot filter %" PRIu32
" .";
1588 this->m_objName.toChar(),
1590 "ID_FILTER_LIST_FULL ",
1611 this->Time_out(0, _logTime);
1621 #if FW_AMPCS_COMPATIBLE 1626 static_cast<FwAssertArgType>(_status)
1630 #if FW_AMPCS_COMPATIBLE 1637 static_cast<FwAssertArgType>(_status)
1643 static_cast<FwAssertArgType>(_status)
1656 #if FW_ENABLE_TEXT_LOGGING 1657 if (this->isConnected_LogText_OutputPort(0)) {
1658 #if FW_OBJECT_NAMES == 1 1659 const char* _formatString =
1660 "(%s) %s: ID filter ID %" PRIu32
" removed.";
1662 const char* _formatString =
1663 "%s: ID filter ID %" PRIu32
" removed.";
1670 this->m_objName.toChar(),
1672 "ID_FILTER_REMOVED ",
1693 this->Time_out(0, _logTime);
1703 #if FW_AMPCS_COMPATIBLE 1708 static_cast<FwAssertArgType>(_status)
1712 #if FW_AMPCS_COMPATIBLE 1719 static_cast<FwAssertArgType>(_status)
1725 static_cast<FwAssertArgType>(_status)
1738 #if FW_ENABLE_TEXT_LOGGING 1739 if (this->isConnected_LogText_OutputPort(0)) {
1740 #if FW_OBJECT_NAMES == 1 1741 const char* _formatString =
1742 "(%s) %s: ID filter ID %" PRIu32
" not found.";
1744 const char* _formatString =
1745 "%s: ID filter ID %" PRIu32
" not found.";
1752 this->m_objName.toChar(),
1754 "ID_FILTER_NOT_FOUND ",
1778 this->Time_out(0, _time);
1793 ComponentIpcSerializableBuffer _msg;
1803 static_cast<FwAssertArgType>(_msgStatus)
1813 static_cast<FwAssertArgType>(_deserStatus)
1816 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
1818 if (_msgType == EVENTMANAGER_COMPONENT_EXIT) {
1823 _deserStatus = _msg.deserializeTo(portNum);
1826 static_cast<FwAssertArgType>(_deserStatus)
1834 _deserStatus = _msg.deserializeTo(key);
1837 static_cast<FwAssertArgType>(_deserStatus)
1849 case CMD_SET_ID_FILTER: {
1852 _deserStatus = _msg.deserializeTo(_opCode);
1855 static_cast<FwAssertArgType>(_deserStatus)
1860 _deserStatus = _msg.deserializeTo(_cmdSeq);
1863 static_cast<FwAssertArgType>(_deserStatus)
1868 _deserStatus = _msg.deserializeTo(args);
1871 static_cast<FwAssertArgType>(_deserStatus)
1909 #if FW_CMD_CHECK_RESIDUAL 1930 case CMD_DUMP_FILTER_STATE: {
1933 _deserStatus = _msg.deserializeTo(_opCode);
1936 static_cast<FwAssertArgType>(_deserStatus)
1941 _deserStatus = _msg.deserializeTo(_cmdSeq);
1944 static_cast<FwAssertArgType>(_deserStatus)
1949 _deserStatus = _msg.deserializeTo(args);
1952 static_cast<FwAssertArgType>(_deserStatus)
1960 #if FW_CMD_CHECK_RESIDUAL 1977 case INT_IF_LOQQUEUE: {
1979 _deserStatus = _msg.deserializeTo(
id);
1984 static_cast<FwAssertArgType>(_deserStatus)
1988 _deserStatus = _msg.deserializeTo(timeTag);
1993 static_cast<FwAssertArgType>(_deserStatus)
1997 _deserStatus = _msg.deserializeTo(severity);
2002 static_cast<FwAssertArgType>(_deserStatus)
2006 _deserStatus = _msg.deserializeTo(args);
2011 static_cast<FwAssertArgType>(_deserStatus)
2017 _msg.getDeserializeSizeLeft() == 0,
2043 void EventManagerComponentBase ::
2054 compPtr->CmdDisp_handlerBase(
2066 void EventManagerComponentBase ::
2078 compPtr->LogRecv_handlerBase(
2087 void EventManagerComponentBase ::
2096 compPtr->pingIn_handlerBase(
2102 #if !FW_DIRECT_PORT_CALLS 2108 void EventManagerComponentBase ::
2116 static_cast<FwAssertArgType>(portNum)
2120 this->m_CmdReg_OutputPort[portNum].isConnected(),
2121 static_cast<FwAssertArgType>(portNum)
2123 this->m_CmdReg_OutputPort[portNum].
invoke(
2128 void EventManagerComponentBase ::
2138 static_cast<FwAssertArgType>(portNum)
2142 this->m_CmdStatus_OutputPort[portNum].isConnected(),
2143 static_cast<FwAssertArgType>(portNum)
2145 this->m_CmdStatus_OutputPort[portNum].
invoke(
2152 void EventManagerComponentBase ::
2163 static_cast<FwAssertArgType>(portNum)
2167 this->m_Log_OutputPort[portNum].isConnected(),
2168 static_cast<FwAssertArgType>(portNum)
2170 this->m_Log_OutputPort[portNum].
invoke(
2178 #if FW_ENABLE_TEXT_LOGGING 2180 void EventManagerComponentBase ::
2190 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
2191 static_cast<FwAssertArgType>(portNum)
2195 this->m_LogText_OutputPort[portNum].isConnected(),
2196 static_cast<FwAssertArgType>(portNum)
2198 this->m_LogText_OutputPort[portNum].invoke(
2208 void EventManagerComponentBase ::
2216 static_cast<FwAssertArgType>(portNum)
2220 this->m_Time_OutputPort[portNum].isConnected(),
2221 static_cast<FwAssertArgType>(portNum)
2223 this->m_Time_OutputPort[portNum].
invoke(
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port connection.
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
void init()
Initialization function.
static constexpr FwSizeType CAPACITY
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
Attempted to add ID to full ID filter ID.
Enabled and disabled state.
Removed an ID from the filter.
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.
FwIdType FwOpcodeType
The type of a command opcode.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
FwIdType getIdBase() const
PlatformSizeType FwSizeType
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
Status
status returned from the queue send function
const char * toChar() const
Convert to a C-style char*.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum) const
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void invoke(U32 key) const
Invoke a port connection.
Dump the filter states via events.
bool isConnected_PktSend_OutputPort(FwIndexType portNum) const
bool isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
static constexpr FwIndexType getNum_CmdReg_OutputPorts()
void CmdDisp_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port CmdDisp.
static constexpr FwIndexType getNum_LogRecv_InputPorts()
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
Enum representing a command response.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
void invoke(FwEventIdType Id) const
Invoke a port connection.
No time base has been established (Required)
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
void set_PktSend_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to PktSend[portNum].
Os::Queue m_queue
queue object for active component
void init()
Object initializer.
static constexpr FwIndexType getNum_CmdStatus_OutputPorts()
void regCommands()
Register commands with the Command Dispatcher.
SerializeStatus
forward declaration for string
Message will block until space is available.
static constexpr FwIndexType getNum_pingIn_InputPorts()
FwIdType FwEventIdType
The type of an event identifier.
The size of the serial representation.
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
static constexpr FwSizeType CAPACITY
void SET_EVENT_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Dump severity filter state.
void addCallPort(InputFatalEventPort *callPort)
Register an input port.
void log_ACTIVITY_HI_ID_FILTER_ENABLED(FwEventIdType ID) const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
virtual void SET_ID_FILTER_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SET_ID_FILTER.
virtual void DUMP_FILTER_STATE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command DUMP_FILTER_STATE.
void init()
Initialization function.
Less important informational events.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
void log_WARNING_LO_ID_FILTER_LIST_FULL(FwEventIdType ID) const
A less serious but recoverable event.
bool isConnected_Log_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
static constexpr FwIndexType getNum_FatalAnnounce_OutputPorts()
static constexpr FwIndexType getNum_PktSend_OutputPorts()
void invoke(Fw::Time &time) const
Invoke a port connection.
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
const char * toChar() const
Convert to a C-style char*.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
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 FatalAnnounce_out(FwIndexType portNum, FwEventIdType Id) const
Invoke output port FatalAnnounce.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
Errors dispatching messages.
Enum representing event severity.
bool isConnected_Time_OutputPort(FwIndexType portNum) const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
virtual void SET_EVENT_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::EventManager_FilterSeverity filterLevel, Svc::EventManager_Enabled filterEnabled)=0
uint8_t U8
8-bit unsigned integer
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void log_WARNING_LO_ID_FILTER_NOT_FOUND(FwEventIdType ID) const
bool isConnected_CmdReg_OutputPort(FwIndexType portNum) const
void loqQueue_internalInterfaceInvoke(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)
Internal interface base-class function for loqQueue.
Command failed to deserialize.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
Important informational events.
Set filter for reporting events. Events are not stored in component.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
void SET_ID_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
virtual void LogRecv_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
Handler for input port LogRecv.
A message was sent requesting an exit of the loop.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
PlatformIndexType FwIndexType
void DUMP_FILTER_STATE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The size of the serial representation.
void addCallPort(InputLogPort *callPort)
Register an input port.
virtual void DUMP_FILTER_STATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
void init()
Initialization function.
void incNumMsgDropped()
increment the number of messages dropped
static constexpr FwIndexType getNum_Time_OutputPorts()
static constexpr FwIndexType getNum_CmdDisp_InputPorts()
virtual void loqQueue_internalInterfaceHandler(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)=0
Internal interface handler for loqQueue.
RateGroupDivider component implementation.
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
message sent/received okay
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
static constexpr FwIndexType getNum_Log_OutputPorts()
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(Svc::EventManager_FilterSeverity severity, bool enabled) const
void addCallPort(InputComPort *callPort)
Register an input port.
void PktSend_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
Invoke output port PktSend.
Message will return with status when space is unavailable.
void init()
Initialization function.
Implementation of malloc based allocator.
virtual ~EventManagerComponentBase()
Destroy EventManagerComponentBase object.
void init()
Initialization function.
EventManagerComponentBase(const char *compName="")
Construct EventManagerComponentBase object.
void set_FatalAnnounce_OutputPort(FwIndexType portNum, Svc::InputFatalEventPort *port)
Connect port to FatalAnnounce[portNum].
Fw::InputLogPort * get_LogRecv_InputPort(FwIndexType portNum)
void log_ACTIVITY_HI_ID_FILTER_REMOVED(FwEventIdType ID) const
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
message to exit active component task
virtual void SET_ID_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, FwEventIdType ID, Svc::EventManager_Enabled idFilterEnabled)=0