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];
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 EventManagerComponentBase ::
415 set_LogText_OutputPort(
421 (0 <= portNum) && (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 EventManagerComponentBase ::
541 set_LogText_OutputPort(
543 Fw::InputSerializePort* port
547 (0 <= portNum) && (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)
670 static_cast<FwAssertArgType>(portNum)
673 return this->m_CmdReg_OutputPort[portNum].
isConnected();
681 static_cast<FwAssertArgType>(portNum)
684 return this->m_CmdStatus_OutputPort[portNum].
isConnected();
692 static_cast<FwAssertArgType>(portNum)
695 return this->m_Log_OutputPort[portNum].
isConnected();
698 #if FW_ENABLE_TEXT_LOGGING == 1 700 bool EventManagerComponentBase ::
701 isConnected_LogText_OutputPort(
FwIndexType portNum)
704 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
705 static_cast<FwAssertArgType>(portNum)
708 return this->m_LogText_OutputPort[portNum].isConnected();
718 static_cast<FwAssertArgType>(portNum)
721 return this->m_Time_OutputPort[portNum].
isConnected();
733 static_cast<FwAssertArgType>(portNum)
736 return this->m_FatalAnnounce_OutputPort[portNum].
isConnected();
744 static_cast<FwAssertArgType>(portNum)
747 return this->m_PktSend_OutputPort[portNum].
isConnected();
755 static_cast<FwAssertArgType>(portNum)
758 return this->m_pingOut_OutputPort[portNum].
isConnected();
779 static_cast<FwAssertArgType>(portNum)
801 static_cast<FwAssertArgType>(portNum)
809 ComponentIpcSerializableBuffer msg;
813 _status = msg.serializeFrom(
814 static_cast<FwEnumStoreType>(PINGIN_PING)
818 static_cast<FwAssertArgType>(_status)
822 _status = msg.serializeFrom(portNum);
825 static_cast<FwAssertArgType>(_status)
829 _status = msg.serializeFrom(key);
832 static_cast<FwAssertArgType>(_status)
841 static_cast<FwAssertArgType>(qStatus)
874 static_cast<FwAssertArgType>(portNum)
878 this->m_FatalAnnounce_OutputPort[portNum].isConnected(),
879 static_cast<FwAssertArgType>(portNum)
881 this->m_FatalAnnounce_OutputPort[portNum].
invoke(
895 static_cast<FwAssertArgType>(portNum)
899 this->m_PktSend_OutputPort[portNum].isConnected(),
900 static_cast<FwAssertArgType>(portNum)
902 this->m_PktSend_OutputPort[portNum].
invoke(
916 static_cast<FwAssertArgType>(portNum)
920 this->m_pingOut_OutputPort[portNum].isConnected(),
921 static_cast<FwAssertArgType>(portNum)
923 this->m_pingOut_OutputPort[portNum].
invoke(
940 ComponentIpcSerializableBuffer msg;
944 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_LOQQUEUE));
947 static_cast<FwAssertArgType>(_status)
951 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
954 static_cast<FwAssertArgType>(_status)
957 _status = msg.serializeFrom(
id);
960 static_cast<FwAssertArgType>(_status)
963 _status = msg.serializeFrom(timeTag);
966 static_cast<FwAssertArgType>(_status)
969 _status = msg.serializeFrom(severity);
972 static_cast<FwAssertArgType>(_status)
975 _status = msg.serializeFrom(args);
978 static_cast<FwAssertArgType>(_status)
985 if (qStatus == Os::Queue::Status::FULL) {
992 static_cast<FwAssertArgType>(qStatus)
1007 FW_ASSERT(this->m_CmdStatus_OutputPort[0].isConnected());
1008 this->m_CmdStatus_OutputPort[0].
invoke(opCode, cmdSeq, response);
1033 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1034 this->m_CmdStatus_OutputPort[0].
invoke(
1046 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1047 this->m_CmdStatus_OutputPort[0].
invoke(
1056 #if FW_CMD_CHECK_RESIDUAL 1060 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1061 this->m_CmdStatus_OutputPort[0].
invoke(
1090 ComponentIpcSerializableBuffer msg;
1094 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SET_ID_FILTER));
1097 static_cast<FwAssertArgType>(_status)
1103 _status = msg.serializeFrom(port);
1106 static_cast<FwAssertArgType>(_status)
1109 _status = msg.serializeFrom(opCode);
1112 static_cast<FwAssertArgType>(_status)
1115 _status = msg.serializeFrom(cmdSeq);
1118 static_cast<FwAssertArgType>(_status)
1121 _status = msg.serializeFrom(args);
1124 static_cast<FwAssertArgType>(_status)
1133 static_cast<FwAssertArgType>(qStatus)
1149 ComponentIpcSerializableBuffer msg;
1153 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_DUMP_FILTER_STATE));
1156 static_cast<FwAssertArgType>(_status)
1162 _status = msg.serializeFrom(port);
1165 static_cast<FwAssertArgType>(_status)
1168 _status = msg.serializeFrom(opCode);
1171 static_cast<FwAssertArgType>(_status)
1174 _status = msg.serializeFrom(cmdSeq);
1177 static_cast<FwAssertArgType>(_status)
1180 _status = msg.serializeFrom(args);
1183 static_cast<FwAssertArgType>(_status)
1192 static_cast<FwAssertArgType>(qStatus)
1238 if (this->m_Time_OutputPort[0].isConnected()) {
1239 this->m_Time_OutputPort[0].
invoke(_logTime);
1247 if (this->m_Log_OutputPort[0].isConnected()) {
1251 #if FW_AMPCS_COMPATIBLE 1256 static_cast<FwAssertArgType>(_status)
1260 #if FW_AMPCS_COMPATIBLE 1267 static_cast<FwAssertArgType>(_status)
1273 static_cast<FwAssertArgType>(_status)
1276 #if FW_AMPCS_COMPATIBLE 1279 static_cast<U8>(
sizeof(
U8))
1283 static_cast<FwAssertArgType>(_status)
1289 static_cast<FwAssertArgType>(_status)
1292 this->m_Log_OutputPort[0].
invoke(
1301 #if FW_ENABLE_TEXT_LOGGING 1302 if (this->m_LogText_OutputPort[0].isConnected()) {
1303 #if FW_OBJECT_NAMES == 1 1304 const char* _formatString =
1305 "(%s) %s: %s filter state. %d";
1307 const char* _formatString =
1308 "%s: %s filter state. %d";
1312 severity.toString(severityStr);
1318 this->m_objName.toChar(),
1320 "SEVERITY_FILTER_STATE ",
1325 this->m_LogText_OutputPort[0].invoke(
1340 if (this->m_Time_OutputPort[0].isConnected()) {
1341 this->m_Time_OutputPort[0].
invoke(_logTime);
1349 if (this->m_Log_OutputPort[0].isConnected()) {
1353 #if FW_AMPCS_COMPATIBLE 1358 static_cast<FwAssertArgType>(_status)
1362 #if FW_AMPCS_COMPATIBLE 1369 static_cast<FwAssertArgType>(_status)
1375 static_cast<FwAssertArgType>(_status)
1378 this->m_Log_OutputPort[0].
invoke(
1387 #if FW_ENABLE_TEXT_LOGGING 1388 if (this->m_LogText_OutputPort[0].isConnected()) {
1389 #if FW_OBJECT_NAMES == 1 1390 const char* _formatString =
1391 "(%s) %s: ID %" PRIu32
" is filtered.";
1393 const char* _formatString =
1394 "%s: ID %" PRIu32
" is filtered.";
1401 this->m_objName.toChar(),
1403 "ID_FILTER_ENABLED ",
1407 this->m_LogText_OutputPort[0].invoke(
1422 if (this->m_Time_OutputPort[0].isConnected()) {
1423 this->m_Time_OutputPort[0].
invoke(_logTime);
1431 if (this->m_Log_OutputPort[0].isConnected()) {
1435 #if FW_AMPCS_COMPATIBLE 1440 static_cast<FwAssertArgType>(_status)
1444 #if FW_AMPCS_COMPATIBLE 1451 static_cast<FwAssertArgType>(_status)
1457 static_cast<FwAssertArgType>(_status)
1460 this->m_Log_OutputPort[0].
invoke(
1469 #if FW_ENABLE_TEXT_LOGGING 1470 if (this->m_LogText_OutputPort[0].isConnected()) {
1471 #if FW_OBJECT_NAMES == 1 1472 const char* _formatString =
1473 "(%s) %s: ID filter list is full. Cannot filter %" PRIu32
" .";
1475 const char* _formatString =
1476 "%s: ID filter list is full. Cannot filter %" PRIu32
" .";
1483 this->m_objName.toChar(),
1485 "ID_FILTER_LIST_FULL ",
1489 this->m_LogText_OutputPort[0].invoke(
1504 if (this->m_Time_OutputPort[0].isConnected()) {
1505 this->m_Time_OutputPort[0].
invoke(_logTime);
1513 if (this->m_Log_OutputPort[0].isConnected()) {
1517 #if FW_AMPCS_COMPATIBLE 1522 static_cast<FwAssertArgType>(_status)
1526 #if FW_AMPCS_COMPATIBLE 1533 static_cast<FwAssertArgType>(_status)
1539 static_cast<FwAssertArgType>(_status)
1542 this->m_Log_OutputPort[0].
invoke(
1551 #if FW_ENABLE_TEXT_LOGGING 1552 if (this->m_LogText_OutputPort[0].isConnected()) {
1553 #if FW_OBJECT_NAMES == 1 1554 const char* _formatString =
1555 "(%s) %s: ID filter ID %" PRIu32
" removed.";
1557 const char* _formatString =
1558 "%s: ID filter ID %" PRIu32
" removed.";
1565 this->m_objName.toChar(),
1567 "ID_FILTER_REMOVED ",
1571 this->m_LogText_OutputPort[0].invoke(
1586 if (this->m_Time_OutputPort[0].isConnected()) {
1587 this->m_Time_OutputPort[0].
invoke(_logTime);
1595 if (this->m_Log_OutputPort[0].isConnected()) {
1599 #if FW_AMPCS_COMPATIBLE 1604 static_cast<FwAssertArgType>(_status)
1608 #if FW_AMPCS_COMPATIBLE 1615 static_cast<FwAssertArgType>(_status)
1621 static_cast<FwAssertArgType>(_status)
1624 this->m_Log_OutputPort[0].
invoke(
1633 #if FW_ENABLE_TEXT_LOGGING 1634 if (this->m_LogText_OutputPort[0].isConnected()) {
1635 #if FW_OBJECT_NAMES == 1 1636 const char* _formatString =
1637 "(%s) %s: ID filter ID %" PRIu32
" not found.";
1639 const char* _formatString =
1640 "%s: ID filter ID %" PRIu32
" not found.";
1647 this->m_objName.toChar(),
1649 "ID_FILTER_NOT_FOUND ",
1653 this->m_LogText_OutputPort[0].invoke(
1670 if (this->m_Time_OutputPort[0].isConnected()) {
1672 this->m_Time_OutputPort[0].
invoke(_time);
1687 ComponentIpcSerializableBuffer _msg;
1697 static_cast<FwAssertArgType>(_msgStatus)
1707 static_cast<FwAssertArgType>(_deserStatus)
1710 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
1712 if (_msgType == EVENTMANAGER_COMPONENT_EXIT) {
1717 _deserStatus = _msg.deserializeTo(portNum);
1720 static_cast<FwAssertArgType>(_deserStatus)
1728 _deserStatus = _msg.deserializeTo(key);
1731 static_cast<FwAssertArgType>(_deserStatus)
1743 case CMD_SET_ID_FILTER: {
1746 _deserStatus = _msg.deserializeTo(_opCode);
1749 static_cast<FwAssertArgType>(_deserStatus)
1754 _deserStatus = _msg.deserializeTo(_cmdSeq);
1757 static_cast<FwAssertArgType>(_deserStatus)
1762 _deserStatus = _msg.deserializeTo(args);
1765 static_cast<FwAssertArgType>(_deserStatus)
1775 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1790 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1803 #if FW_CMD_CHECK_RESIDUAL 1805 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1824 case CMD_DUMP_FILTER_STATE: {
1827 _deserStatus = _msg.deserializeTo(_opCode);
1830 static_cast<FwAssertArgType>(_deserStatus)
1835 _deserStatus = _msg.deserializeTo(_cmdSeq);
1838 static_cast<FwAssertArgType>(_deserStatus)
1843 _deserStatus = _msg.deserializeTo(args);
1846 static_cast<FwAssertArgType>(_deserStatus)
1854 #if FW_CMD_CHECK_RESIDUAL 1856 if (this->m_CmdStatus_OutputPort[0].isConnected()) {
1871 case INT_IF_LOQQUEUE: {
1873 _deserStatus = _msg.deserializeTo(
id);
1878 static_cast<FwAssertArgType>(_deserStatus)
1882 _deserStatus = _msg.deserializeTo(timeTag);
1887 static_cast<FwAssertArgType>(_deserStatus)
1891 _deserStatus = _msg.deserializeTo(severity);
1896 static_cast<FwAssertArgType>(_deserStatus)
1900 _deserStatus = _msg.deserializeTo(args);
1905 static_cast<FwAssertArgType>(_deserStatus)
1911 _msg.getDeserializeSizeLeft() == 0,
1937 void EventManagerComponentBase ::
1949 const U32 idBase = callComp->
getIdBase();
1950 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
1953 switch (opCode - idBase) {
1955 compPtr->SET_EVENT_FILTER_cmdHandlerBase(
1964 compPtr->SET_ID_FILTER_cmdHandlerBase(
1973 compPtr->DUMP_FILTER_STATE_cmdHandlerBase(
1987 void EventManagerComponentBase ::
1999 compPtr->LogRecv_handlerBase(
2008 void EventManagerComponentBase ::
2017 compPtr->pingIn_handlerBase(
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum)
The size of the serial representation.
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port interface.
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
void init()
Initialization function.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
Enabled and disabled state.
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.
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
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*.
Dump severity filter state.
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void invoke(U32 key) const
Invoke a port interface.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
static constexpr FwIndexType getNum_CmdReg_OutputPorts()
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
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 interface.
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].
void PktSend_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port PktSend.
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.
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
void SET_EVENT_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
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.
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 interface.
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 interface.
bool isConnected_FatalAnnounce_OutputPort(FwIndexType portNum)
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 resetDeser() override
Reset deserialization pointer to beginning of buffer.
Dump the filter states via events.
Errors dispatching messages.
bool isConnected_Time_OutputPort(FwIndexType portNum)
Enum representing event severity.
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
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.
The size of the serial representation.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
Important informational events.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
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.
bool isConnected_CmdReg_OutputPort(FwIndexType portNum)
A message was sent requesting an exit of the loop.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
message to exit active component task
PlatformIndexType FwIndexType
void DUMP_FILTER_STATE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
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.
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()
Set filter for reporting events. Events are not stored in component.
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(Svc::EventManager_FilterSeverity severity, bool enabled) const
void addCallPort(InputComPort *callPort)
Register an input port.
void FatalAnnounce_out(FwIndexType portNum, FwEventIdType Id)
Invoke output port FatalAnnounce.
Message will return with status when space is unavailable.
void init()
Initialization function.
Implementation of malloc based allocator.
bool isConnected_PktSend_OutputPort(FwIndexType portNum)
bool isConnected_Log_OutputPort(FwIndexType portNum)
Attempted to add ID to full ID filter ID.
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.
Removed an ID from the filter.
virtual void SET_ID_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, FwEventIdType ID, Svc::EventManager_Enabled idFilterEnabled)=0