9 #if FW_ENABLE_TEXT_LOGGING 21 CMD_DUMP_FILTER_STATE,
32 BYTE loqQueueIntIfSize[
42 class ComponentIpcSerializableBuffer :
52 MAX_DATA_SIZE =
sizeof(BuffUnion),
54 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
57 ComponentIpcSerializableBuffer() :
Fw::LinearBufferBase(m_buff, sizeof(m_buff)) {
63 U8 m_buff[SERIALIZATION_SIZE];
81 #if !FW_DIRECT_PORT_CALLS 88 this->m_CmdDisp_InputPort[port].
init();
93 this->m_CmdDisp_InputPort[port].
setPortNum(port);
95 #if FW_OBJECT_NAMES == 1 99 this->m_objName.toChar(),
102 this->m_CmdDisp_InputPort[port].setObjName(portName.
toChar());
107 #if !FW_DIRECT_PORT_CALLS 114 this->m_LogRecv_InputPort[port].
init();
119 this->m_LogRecv_InputPort[port].
setPortNum(port);
121 #if FW_OBJECT_NAMES == 1 125 this->m_objName.toChar(),
128 this->m_LogRecv_InputPort[port].setObjName(portName.
toChar());
133 #if !FW_DIRECT_PORT_CALLS 140 this->m_pingIn_InputPort[port].
init();
145 this->m_pingIn_InputPort[port].
setPortNum(port);
147 #if FW_OBJECT_NAMES == 1 151 this->m_objName.toChar(),
154 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
159 #if !FW_DIRECT_PORT_CALLS 166 this->m_run_InputPort[port].
init();
173 #if FW_OBJECT_NAMES == 1 177 this->m_objName.toChar(),
180 this->m_run_InputPort[port].setObjName(portName.
toChar());
185 #if !FW_DIRECT_PORT_CALLS 192 this->m_CmdReg_OutputPort[port].
init();
194 #if FW_OBJECT_NAMES == 1 198 this->m_objName.toChar(),
201 this->m_CmdReg_OutputPort[port].setObjName(portName.
toChar());
206 #if !FW_DIRECT_PORT_CALLS 213 this->m_CmdStatus_OutputPort[port].
init();
215 #if FW_OBJECT_NAMES == 1 219 this->m_objName.toChar(),
222 this->m_CmdStatus_OutputPort[port].setObjName(portName.
toChar());
227 #if !FW_DIRECT_PORT_CALLS 234 this->m_Log_OutputPort[port].
init();
236 #if FW_OBJECT_NAMES == 1 240 this->m_objName.toChar(),
243 this->m_Log_OutputPort[port].setObjName(portName.
toChar());
248 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 252 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
255 this->m_LogText_OutputPort[port].
init();
257 #if FW_OBJECT_NAMES == 1 261 this->m_objName.toChar(),
264 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
269 #if !FW_DIRECT_PORT_CALLS 276 this->m_Time_OutputPort[port].
init();
278 #if FW_OBJECT_NAMES == 1 282 this->m_objName.toChar(),
285 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
290 #if !FW_DIRECT_PORT_CALLS 297 this->m_Tlm_OutputPort[port].
init();
299 #if FW_OBJECT_NAMES == 1 303 this->m_objName.toChar(),
306 this->m_Tlm_OutputPort[port].setObjName(portName.
toChar());
311 #if !FW_DIRECT_PORT_CALLS 318 this->m_FatalAnnounce_OutputPort[port].
init();
320 #if FW_OBJECT_NAMES == 1 324 this->m_objName.toChar(),
327 this->m_FatalAnnounce_OutputPort[port].setObjName(portName.
toChar());
332 #if !FW_DIRECT_PORT_CALLS 339 this->m_PktSend_OutputPort[port].
init();
341 #if FW_OBJECT_NAMES == 1 345 this->m_objName.toChar(),
348 this->m_PktSend_OutputPort[port].setObjName(portName.
toChar());
353 #if !FW_DIRECT_PORT_CALLS 360 this->m_pingOut_OutputPort[port].
init();
362 #if FW_OBJECT_NAMES == 1 366 this->m_objName.toChar(),
369 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
377 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
381 static_cast<FwAssertArgType>(qStat)
385 #if !FW_DIRECT_PORT_CALLS 396 static_cast<FwAssertArgType>(portNum)
399 return &this->m_CmdDisp_InputPort[portNum];
404 #if !FW_DIRECT_PORT_CALLS 415 static_cast<FwAssertArgType>(portNum)
418 return &this->m_LogRecv_InputPort[portNum];
426 static_cast<FwAssertArgType>(portNum)
429 return &this->m_pingIn_InputPort[portNum];
437 static_cast<FwAssertArgType>(portNum)
440 return &this->m_run_InputPort[portNum];
445 #if !FW_DIRECT_PORT_CALLS 459 static_cast<FwAssertArgType>(portNum)
462 this->m_CmdReg_OutputPort[portNum].
addCallPort(port);
473 static_cast<FwAssertArgType>(portNum)
476 this->m_CmdStatus_OutputPort[portNum].
addCallPort(port);
487 static_cast<FwAssertArgType>(portNum)
493 #if FW_ENABLE_TEXT_LOGGING == 1 495 void EventManagerComponentBase ::
496 set_LogText_OutputPort(
502 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
503 static_cast<FwAssertArgType>(portNum)
506 this->m_LogText_OutputPort[portNum].addCallPort(port);
519 static_cast<FwAssertArgType>(portNum)
522 this->m_Time_OutputPort[portNum].
addCallPort(port);
533 static_cast<FwAssertArgType>(portNum)
541 #if !FW_DIRECT_PORT_CALLS 555 static_cast<FwAssertArgType>(portNum)
558 this->m_FatalAnnounce_OutputPort[portNum].
addCallPort(port);
569 static_cast<FwAssertArgType>(portNum)
572 this->m_PktSend_OutputPort[portNum].
addCallPort(port);
583 static_cast<FwAssertArgType>(portNum)
586 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
591 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 600 Fw::InputSerializePort* port
605 static_cast<FwAssertArgType>(portNum)
608 this->m_CmdReg_OutputPort[portNum].registerSerialPort(port);
614 Fw::InputSerializePort* port
619 static_cast<FwAssertArgType>(portNum)
622 this->m_CmdStatus_OutputPort[portNum].registerSerialPort(port);
628 Fw::InputSerializePort* port
633 static_cast<FwAssertArgType>(portNum)
636 this->m_Log_OutputPort[portNum].registerSerialPort(port);
639 #if FW_ENABLE_TEXT_LOGGING == 1 641 void EventManagerComponentBase ::
642 set_LogText_OutputPort(
644 Fw::InputSerializePort* port
648 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
649 static_cast<FwAssertArgType>(portNum)
652 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
660 Fw::InputSerializePort* port
665 static_cast<FwAssertArgType>(portNum)
668 this->m_Time_OutputPort[portNum].registerSerialPort(port);
674 Fw::InputSerializePort* port
679 static_cast<FwAssertArgType>(portNum)
682 this->m_Tlm_OutputPort[portNum].registerSerialPort(port);
687 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 696 Fw::InputSerializePort* port
701 static_cast<FwAssertArgType>(portNum)
704 this->m_FatalAnnounce_OutputPort[portNum].registerSerialPort(port);
710 Fw::InputSerializePort* port
715 static_cast<FwAssertArgType>(portNum)
718 this->m_PktSend_OutputPort[portNum].registerSerialPort(port);
724 Fw::InputSerializePort* port
729 static_cast<FwAssertArgType>(portNum)
732 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
768 Fw::ActiveComponentBase(compName)
779 #if !FW_DIRECT_PORT_CALLS 790 static_cast<FwAssertArgType>(portNum)
793 return this->m_CmdReg_OutputPort[portNum].
isConnected();
801 static_cast<FwAssertArgType>(portNum)
804 return this->m_CmdStatus_OutputPort[portNum].
isConnected();
812 static_cast<FwAssertArgType>(portNum)
815 return this->m_Log_OutputPort[portNum].
isConnected();
818 #if FW_ENABLE_TEXT_LOGGING == 1 820 bool EventManagerComponentBase ::
821 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 824 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
825 static_cast<FwAssertArgType>(portNum)
828 return this->m_LogText_OutputPort[portNum].isConnected();
838 static_cast<FwAssertArgType>(portNum)
841 return this->m_Time_OutputPort[portNum].
isConnected();
849 static_cast<FwAssertArgType>(portNum)
852 return this->m_Tlm_OutputPort[portNum].
isConnected();
857 #if !FW_DIRECT_PORT_CALLS 868 static_cast<FwAssertArgType>(portNum)
871 return this->m_FatalAnnounce_OutputPort[portNum].
isConnected();
879 static_cast<FwAssertArgType>(portNum)
882 return this->m_PktSend_OutputPort[portNum].
isConnected();
890 static_cast<FwAssertArgType>(portNum)
893 return this->m_pingOut_OutputPort[portNum].
isConnected();
914 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
917 switch (opCode - idBase) {
968 static_cast<FwAssertArgType>(portNum)
990 static_cast<FwAssertArgType>(portNum)
998 ComponentIpcSerializableBuffer msg;
1002 _status = msg.serializeFrom(
1003 static_cast<FwEnumStoreType>(PINGIN_PING)
1007 static_cast<FwAssertArgType>(_status)
1011 _status = msg.serializeFrom(portNum);
1014 static_cast<FwAssertArgType>(_status)
1018 _status = msg.serializeFrom(key);
1021 static_cast<FwAssertArgType>(_status)
1028 if (qStatus == Os::Queue::Status::FULL) {
1035 static_cast<FwAssertArgType>(qStatus)
1048 static_cast<FwAssertArgType>(portNum)
1075 #if !FW_DIRECT_PORT_CALLS 1089 static_cast<FwAssertArgType>(portNum)
1093 this->m_FatalAnnounce_OutputPort[portNum].isConnected(),
1094 static_cast<FwAssertArgType>(portNum)
1096 this->m_FatalAnnounce_OutputPort[portNum].
invoke(
1110 static_cast<FwAssertArgType>(portNum)
1114 this->m_PktSend_OutputPort[portNum].isConnected(),
1115 static_cast<FwAssertArgType>(portNum)
1117 this->m_PktSend_OutputPort[portNum].
invoke(
1131 static_cast<FwAssertArgType>(portNum)
1135 this->m_pingOut_OutputPort[portNum].isConnected(),
1136 static_cast<FwAssertArgType>(portNum)
1138 this->m_pingOut_OutputPort[portNum].
invoke(
1165 ComponentIpcSerializableBuffer msg;
1169 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_LOQQUEUE));
1172 static_cast<FwAssertArgType>(_status)
1176 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1179 static_cast<FwAssertArgType>(_status)
1182 _status = msg.serializeFrom(
id);
1185 static_cast<FwAssertArgType>(_status)
1188 _status = msg.serializeFrom(timeTag);
1191 static_cast<FwAssertArgType>(_status)
1194 _status = msg.serializeFrom(severity);
1197 static_cast<FwAssertArgType>(_status)
1200 _status = msg.serializeFrom(args);
1203 static_cast<FwAssertArgType>(_status)
1210 if (qStatus == Os::Queue::Status::FULL) {
1217 static_cast<FwAssertArgType>(qStatus)
1224 ComponentIpcSerializableBuffer msg;
1228 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_RUNINTERNAL));
1231 static_cast<FwAssertArgType>(_status)
1235 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1238 static_cast<FwAssertArgType>(_status)
1245 if (qStatus == Os::Queue::Status::FULL) {
1252 static_cast<FwAssertArgType>(qStatus)
1268 this->CmdStatus_out(0, opCode, cmdSeq, response);
1294 this->CmdStatus_out(
1308 this->CmdStatus_out(
1318 #if FW_CMD_CHECK_RESIDUAL 1323 this->CmdStatus_out(
1353 ComponentIpcSerializableBuffer msg;
1357 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SET_ID_FILTER));
1360 static_cast<FwAssertArgType>(_status)
1366 _status = msg.serializeFrom(port);
1369 static_cast<FwAssertArgType>(_status)
1372 _status = msg.serializeFrom(opCode);
1375 static_cast<FwAssertArgType>(_status)
1378 _status = msg.serializeFrom(cmdSeq);
1381 static_cast<FwAssertArgType>(_status)
1384 _status = msg.serializeFrom(args);
1387 static_cast<FwAssertArgType>(_status)
1396 static_cast<FwAssertArgType>(qStatus)
1412 ComponentIpcSerializableBuffer msg;
1416 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_DUMP_FILTER_STATE));
1419 static_cast<FwAssertArgType>(_status)
1425 _status = msg.serializeFrom(port);
1428 static_cast<FwAssertArgType>(_status)
1431 _status = msg.serializeFrom(opCode);
1434 static_cast<FwAssertArgType>(_status)
1437 _status = msg.serializeFrom(cmdSeq);
1440 static_cast<FwAssertArgType>(_status)
1443 _status = msg.serializeFrom(args);
1446 static_cast<FwAssertArgType>(_status)
1455 static_cast<FwAssertArgType>(qStatus)
1502 this->Time_out(0, _logTime);
1512 #if FW_AMPCS_COMPATIBLE 1517 static_cast<FwAssertArgType>(_status)
1521 #if FW_AMPCS_COMPATIBLE 1528 static_cast<FwAssertArgType>(_status)
1534 static_cast<FwAssertArgType>(_status)
1537 #if FW_AMPCS_COMPATIBLE 1540 static_cast<U8>(
sizeof(
U8))
1544 static_cast<FwAssertArgType>(_status)
1550 static_cast<FwAssertArgType>(_status)
1563 #if FW_ENABLE_TEXT_LOGGING 1564 if (this->isConnected_LogText_OutputPort(0)) {
1565 #if FW_OBJECT_NAMES == 1 1566 const char* _formatString =
1567 "(%s) %s: %s filter state. %d";
1569 const char* _formatString =
1570 "%s: %s filter state. %d";
1574 severity.toString(severityStr);
1577 (void) _logString.
format(
1580 this->m_objName.toChar(),
1582 "SEVERITY_FILTER_STATE ",
1604 this->Time_out(0, _logTime);
1614 #if FW_AMPCS_COMPATIBLE 1619 static_cast<FwAssertArgType>(_status)
1623 #if FW_AMPCS_COMPATIBLE 1630 static_cast<FwAssertArgType>(_status)
1636 static_cast<FwAssertArgType>(_status)
1649 #if FW_ENABLE_TEXT_LOGGING 1650 if (this->isConnected_LogText_OutputPort(0)) {
1651 #if FW_OBJECT_NAMES == 1 1652 const char* _formatString =
1653 "(%s) %s: ID %" PRIu32
" is filtered.";
1655 const char* _formatString =
1656 "%s: ID %" PRIu32
" is filtered.";
1660 (void) _logString.
format(
1663 this->m_objName.toChar(),
1665 "ID_FILTER_ENABLED ",
1686 this->Time_out(0, _logTime);
1696 #if FW_AMPCS_COMPATIBLE 1701 static_cast<FwAssertArgType>(_status)
1705 #if FW_AMPCS_COMPATIBLE 1712 static_cast<FwAssertArgType>(_status)
1718 static_cast<FwAssertArgType>(_status)
1731 #if FW_ENABLE_TEXT_LOGGING 1732 if (this->isConnected_LogText_OutputPort(0)) {
1733 #if FW_OBJECT_NAMES == 1 1734 const char* _formatString =
1735 "(%s) %s: ID filter list is full. Cannot filter %" PRIu32
" .";
1737 const char* _formatString =
1738 "%s: ID filter list is full. Cannot filter %" PRIu32
" .";
1742 (void) _logString.
format(
1745 this->m_objName.toChar(),
1747 "ID_FILTER_LIST_FULL ",
1768 this->Time_out(0, _logTime);
1778 #if FW_AMPCS_COMPATIBLE 1783 static_cast<FwAssertArgType>(_status)
1787 #if FW_AMPCS_COMPATIBLE 1794 static_cast<FwAssertArgType>(_status)
1800 static_cast<FwAssertArgType>(_status)
1813 #if FW_ENABLE_TEXT_LOGGING 1814 if (this->isConnected_LogText_OutputPort(0)) {
1815 #if FW_OBJECT_NAMES == 1 1816 const char* _formatString =
1817 "(%s) %s: ID filter ID %" PRIu32
" removed.";
1819 const char* _formatString =
1820 "%s: ID filter ID %" PRIu32
" removed.";
1824 (void) _logString.
format(
1827 this->m_objName.toChar(),
1829 "ID_FILTER_REMOVED ",
1850 this->Time_out(0, _logTime);
1860 #if FW_AMPCS_COMPATIBLE 1865 static_cast<FwAssertArgType>(_status)
1869 #if FW_AMPCS_COMPATIBLE 1876 static_cast<FwAssertArgType>(_status)
1882 static_cast<FwAssertArgType>(_status)
1895 #if FW_ENABLE_TEXT_LOGGING 1896 if (this->isConnected_LogText_OutputPort(0)) {
1897 #if FW_OBJECT_NAMES == 1 1898 const char* _formatString =
1899 "(%s) %s: ID filter ID %" PRIu32
" not found.";
1901 const char* _formatString =
1902 "%s: ID filter ID %" PRIu32
" not found.";
1906 (void) _logString.
format(
1909 this->m_objName.toChar(),
1911 "ID_FILTER_NOT_FOUND ",
1942 this->Time_out(0, _tlmTime);
1968 if (not this->m_first_update_EventsDropped) {
1970 if (arg == this->m_last_EventsDropped) {
1974 this->m_last_EventsDropped = arg;
1978 this->m_first_update_EventsDropped =
false;
1979 this->m_last_EventsDropped = arg;
1987 static_cast<FwAssertArgType>(_stat)
2007 this->Time_out(0, _time);
2022 ComponentIpcSerializableBuffer _msg;
2032 static_cast<FwAssertArgType>(_msgStatus)
2042 static_cast<FwAssertArgType>(_deserStatus)
2045 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
2047 if (_msgType == EVENTMANAGER_COMPONENT_EXIT) {
2052 _deserStatus = _msg.deserializeTo(portNum);
2055 static_cast<FwAssertArgType>(_deserStatus)
2063 _deserStatus = _msg.deserializeTo(key);
2066 static_cast<FwAssertArgType>(_deserStatus)
2078 case CMD_SET_ID_FILTER: {
2081 _deserStatus = _msg.deserializeTo(_opCode);
2084 static_cast<FwAssertArgType>(_deserStatus)
2089 _deserStatus = _msg.deserializeTo(_cmdSeq);
2092 static_cast<FwAssertArgType>(_deserStatus)
2097 _deserStatus = _msg.deserializeTo(args);
2100 static_cast<FwAssertArgType>(_deserStatus)
2138 #if FW_CMD_CHECK_RESIDUAL 2159 case CMD_DUMP_FILTER_STATE: {
2162 _deserStatus = _msg.deserializeTo(_opCode);
2165 static_cast<FwAssertArgType>(_deserStatus)
2170 _deserStatus = _msg.deserializeTo(_cmdSeq);
2173 static_cast<FwAssertArgType>(_deserStatus)
2178 _deserStatus = _msg.deserializeTo(args);
2181 static_cast<FwAssertArgType>(_deserStatus)
2189 #if FW_CMD_CHECK_RESIDUAL 2206 case INT_IF_LOQQUEUE: {
2208 _deserStatus = _msg.deserializeTo(
id);
2213 static_cast<FwAssertArgType>(_deserStatus)
2217 _deserStatus = _msg.deserializeTo(timeTag);
2222 static_cast<FwAssertArgType>(_deserStatus)
2226 _deserStatus = _msg.deserializeTo(severity);
2231 static_cast<FwAssertArgType>(_deserStatus)
2235 _deserStatus = _msg.deserializeTo(args);
2240 static_cast<FwAssertArgType>(_deserStatus)
2246 _msg.getDeserializeSizeLeft() == 0,
2262 case INT_IF_RUNINTERNAL: {
2266 _msg.getDeserializeSizeLeft() == 0,
2287 void EventManagerComponentBase ::
2298 compPtr->CmdDisp_handlerBase(
2310 void EventManagerComponentBase ::
2322 compPtr->LogRecv_handlerBase(
2331 void EventManagerComponentBase ::
2340 compPtr->pingIn_handlerBase(
2346 void EventManagerComponentBase ::
2355 compPtr->run_handlerBase(
2361 #if !FW_DIRECT_PORT_CALLS 2367 void EventManagerComponentBase ::
2375 static_cast<FwAssertArgType>(portNum)
2379 this->m_CmdReg_OutputPort[portNum].isConnected(),
2380 static_cast<FwAssertArgType>(portNum)
2382 this->m_CmdReg_OutputPort[portNum].
invoke(
2387 void EventManagerComponentBase ::
2397 static_cast<FwAssertArgType>(portNum)
2401 this->m_CmdStatus_OutputPort[portNum].isConnected(),
2402 static_cast<FwAssertArgType>(portNum)
2404 this->m_CmdStatus_OutputPort[portNum].
invoke(
2411 void EventManagerComponentBase ::
2422 static_cast<FwAssertArgType>(portNum)
2426 this->m_Log_OutputPort[portNum].isConnected(),
2427 static_cast<FwAssertArgType>(portNum)
2429 this->m_Log_OutputPort[portNum].
invoke(
2437 #if FW_ENABLE_TEXT_LOGGING 2439 void EventManagerComponentBase ::
2449 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
2450 static_cast<FwAssertArgType>(portNum)
2454 this->m_LogText_OutputPort[portNum].isConnected(),
2455 static_cast<FwAssertArgType>(portNum)
2457 this->m_LogText_OutputPort[portNum].invoke(
2467 void EventManagerComponentBase ::
2475 static_cast<FwAssertArgType>(portNum)
2479 this->m_Time_OutputPort[portNum].isConnected(),
2480 static_cast<FwAssertArgType>(portNum)
2482 this->m_Time_OutputPort[portNum].
invoke(
2487 void EventManagerComponentBase ::
2497 static_cast<FwAssertArgType>(portNum)
2501 this->m_Tlm_OutputPort[portNum].isConnected(),
2502 static_cast<FwAssertArgType>(portNum)
2504 this->m_Tlm_OutputPort[portNum].
invoke(
Dump the filter states via events.
Serialization/Deserialization operation was successful.
void run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port run.
void addCallPort(InputTimePort *callPort)
Register an input port.
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(const Svc::EventManager_FilterSeverity &severity, bool enabled) const
static constexpr FwIndexType getNum_Tlm_OutputPorts()
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port connection.
Channel ID for EventsDropped.
void tlmWrite_EventsDropped(FwSizeType arg, Fw::Time _tlmTime=Fw::Time())
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
void init()
Initialization function.
static constexpr FwSizeType CAPACITY
virtual void SET_EVENT_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Svc::EventManager_FilterSeverity &filterLevel, const Svc::EventManager_Enabled &filterEnabled)=0
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
Enabled and disabled state.
Dump severity filter 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.
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
BYTE pingInPortSize[Svc::PingPortBuffer::CAPACITY]
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum) const
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void invoke(U32 key) const
Invoke a port connection.
bool isConnected_PktSend_OutputPort(FwIndexType portNum) const
bool isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const
bool isConnected_Tlm_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)
void init()
Initialization function.
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)
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
void set_PktSend_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to PktSend[portNum].
Removed an ID from the filter.
Svc::InputSchedPort * get_run_InputPort(FwIndexType portNum)
Os::Queue m_queue
queue object for active component
virtual void runInternal_internalInterfaceHandler()=0
Internal interface handler for runInternal.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
message to exit active component task
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.
virtual void runInternal_overflowHook()=0
Overflow hook for async input port runInternal.
static constexpr FwIndexType getNum_pingIn_InputPorts()
FwIdType FwEventIdType
The type of an event identifier.
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)
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.
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
Less important informational events.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
void log_WARNING_LO_ID_FILTER_LIST_FULL(FwEventIdType ID) const
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) 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].
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
void addCallPort(InputPingPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_run_InputPorts()
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.
The size of the serial representation.
Errors dispatching messages.
void runInternal_internalInterfaceInvoke()
Internal interface base-class function for runInternal.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port connection.
const char * toChar() const
Convert to a C-style char*.
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.
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.
virtual void run_handler(FwIndexType portNum, U32 context)=0
Handler for input port run.
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.
Attempted to add ID to full ID filter ID.
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)
Set filter for reporting events. Events are not stored in component.
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
static constexpr FwIndexType getNum_Log_OutputPorts()
The size of the serial representation.
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.
size when serialized: buffer + stored size
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.
BYTE cmdPortSize[Fw::CmdPortBuffer::CAPACITY]
virtual void SET_ID_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, FwEventIdType ID, const Svc::EventManager_Enabled &idFilterEnabled)=0