9 #if FW_ENABLE_TEXT_LOGGING 22 CMD_DUMP_FILTER_STATE,
33 BYTE loqQueueIntIfSize[
43 class ComponentIpcSerializableBuffer :
53 MAX_DATA_SIZE =
sizeof(BuffUnion),
55 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
58 ComponentIpcSerializableBuffer() :
Fw::LinearBufferBase(m_buff, sizeof(m_buff)) {
64 U8 m_buff[SERIALIZATION_SIZE];
82 #if !FW_DIRECT_PORT_CALLS 89 this->m_CmdDisp_InputPort[port].
init();
94 this->m_CmdDisp_InputPort[port].
setPortNum(port);
96 #if FW_OBJECT_NAMES == 1 100 this->m_objName.toChar(),
103 this->m_CmdDisp_InputPort[port].setObjName(portName.
toChar());
108 #if !FW_DIRECT_PORT_CALLS 115 this->m_LogRecv_InputPort[port].
init();
120 this->m_LogRecv_InputPort[port].
setPortNum(port);
122 #if FW_OBJECT_NAMES == 1 126 this->m_objName.toChar(),
129 this->m_LogRecv_InputPort[port].setObjName(portName.
toChar());
134 #if !FW_DIRECT_PORT_CALLS 141 this->m_pingIn_InputPort[port].
init();
146 this->m_pingIn_InputPort[port].
setPortNum(port);
148 #if FW_OBJECT_NAMES == 1 152 this->m_objName.toChar(),
155 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
160 #if !FW_DIRECT_PORT_CALLS 167 this->m_run_InputPort[port].
init();
174 #if FW_OBJECT_NAMES == 1 178 this->m_objName.toChar(),
181 this->m_run_InputPort[port].setObjName(portName.
toChar());
186 #if !FW_DIRECT_PORT_CALLS 193 this->m_CmdReg_OutputPort[port].
init();
195 #if FW_OBJECT_NAMES == 1 199 this->m_objName.toChar(),
202 this->m_CmdReg_OutputPort[port].setObjName(portName.
toChar());
207 #if !FW_DIRECT_PORT_CALLS 214 this->m_CmdStatus_OutputPort[port].
init();
216 #if FW_OBJECT_NAMES == 1 220 this->m_objName.toChar(),
223 this->m_CmdStatus_OutputPort[port].setObjName(portName.
toChar());
228 #if !FW_DIRECT_PORT_CALLS 235 this->m_Log_OutputPort[port].
init();
237 #if FW_OBJECT_NAMES == 1 241 this->m_objName.toChar(),
244 this->m_Log_OutputPort[port].setObjName(portName.
toChar());
249 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 253 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
256 this->m_LogText_OutputPort[port].
init();
258 #if FW_OBJECT_NAMES == 1 262 this->m_objName.toChar(),
265 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
270 #if !FW_DIRECT_PORT_CALLS 277 this->m_Time_OutputPort[port].
init();
279 #if FW_OBJECT_NAMES == 1 283 this->m_objName.toChar(),
286 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
291 #if !FW_DIRECT_PORT_CALLS 298 this->m_Tlm_OutputPort[port].
init();
300 #if FW_OBJECT_NAMES == 1 304 this->m_objName.toChar(),
307 this->m_Tlm_OutputPort[port].setObjName(portName.
toChar());
312 #if !FW_DIRECT_PORT_CALLS 319 this->m_FatalAnnounce_OutputPort[port].
init();
321 #if FW_OBJECT_NAMES == 1 325 this->m_objName.toChar(),
328 this->m_FatalAnnounce_OutputPort[port].setObjName(portName.
toChar());
333 #if !FW_DIRECT_PORT_CALLS 340 this->m_PktSend_OutputPort[port].
init();
342 #if FW_OBJECT_NAMES == 1 346 this->m_objName.toChar(),
349 this->m_PktSend_OutputPort[port].setObjName(portName.
toChar());
354 #if !FW_DIRECT_PORT_CALLS 361 this->m_pingOut_OutputPort[port].
init();
363 #if FW_OBJECT_NAMES == 1 367 this->m_objName.toChar(),
370 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
378 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
382 static_cast<FwAssertArgType>(qStat)
386 #if !FW_DIRECT_PORT_CALLS 397 static_cast<FwAssertArgType>(portNum)
400 return &this->m_CmdDisp_InputPort[portNum];
405 #if !FW_DIRECT_PORT_CALLS 416 static_cast<FwAssertArgType>(portNum)
419 return &this->m_LogRecv_InputPort[portNum];
427 static_cast<FwAssertArgType>(portNum)
430 return &this->m_pingIn_InputPort[portNum];
438 static_cast<FwAssertArgType>(portNum)
441 return &this->m_run_InputPort[portNum];
446 #if !FW_DIRECT_PORT_CALLS 460 static_cast<FwAssertArgType>(portNum)
463 this->m_CmdReg_OutputPort[portNum].
addCallPort(port);
474 static_cast<FwAssertArgType>(portNum)
477 this->m_CmdStatus_OutputPort[portNum].
addCallPort(port);
488 static_cast<FwAssertArgType>(portNum)
494 #if FW_ENABLE_TEXT_LOGGING == 1 496 void EventManagerComponentBase ::
497 set_LogText_OutputPort(
503 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
504 static_cast<FwAssertArgType>(portNum)
507 this->m_LogText_OutputPort[portNum].addCallPort(port);
520 static_cast<FwAssertArgType>(portNum)
523 this->m_Time_OutputPort[portNum].
addCallPort(port);
534 static_cast<FwAssertArgType>(portNum)
542 #if !FW_DIRECT_PORT_CALLS 556 static_cast<FwAssertArgType>(portNum)
559 this->m_FatalAnnounce_OutputPort[portNum].
addCallPort(port);
570 static_cast<FwAssertArgType>(portNum)
573 this->m_PktSend_OutputPort[portNum].
addCallPort(port);
584 static_cast<FwAssertArgType>(portNum)
587 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
592 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 601 Fw::InputSerializePort* port
606 static_cast<FwAssertArgType>(portNum)
609 this->m_CmdReg_OutputPort[portNum].registerSerialPort(port);
615 Fw::InputSerializePort* port
620 static_cast<FwAssertArgType>(portNum)
623 this->m_CmdStatus_OutputPort[portNum].registerSerialPort(port);
629 Fw::InputSerializePort* port
634 static_cast<FwAssertArgType>(portNum)
637 this->m_Log_OutputPort[portNum].registerSerialPort(port);
640 #if FW_ENABLE_TEXT_LOGGING == 1 642 void EventManagerComponentBase ::
643 set_LogText_OutputPort(
645 Fw::InputSerializePort* port
649 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
650 static_cast<FwAssertArgType>(portNum)
653 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
661 Fw::InputSerializePort* port
666 static_cast<FwAssertArgType>(portNum)
669 this->m_Time_OutputPort[portNum].registerSerialPort(port);
675 Fw::InputSerializePort* port
680 static_cast<FwAssertArgType>(portNum)
683 this->m_Tlm_OutputPort[portNum].registerSerialPort(port);
688 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 697 Fw::InputSerializePort* port
702 static_cast<FwAssertArgType>(portNum)
705 this->m_FatalAnnounce_OutputPort[portNum].registerSerialPort(port);
711 Fw::InputSerializePort* port
716 static_cast<FwAssertArgType>(portNum)
719 this->m_PktSend_OutputPort[portNum].registerSerialPort(port);
725 Fw::InputSerializePort* port
730 static_cast<FwAssertArgType>(portNum)
733 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
769 Fw::ActiveComponentBase(compName)
780 #if !FW_DIRECT_PORT_CALLS 791 static_cast<FwAssertArgType>(portNum)
794 return this->m_CmdReg_OutputPort[portNum].
isConnected();
802 static_cast<FwAssertArgType>(portNum)
805 return this->m_CmdStatus_OutputPort[portNum].
isConnected();
813 static_cast<FwAssertArgType>(portNum)
816 return this->m_Log_OutputPort[portNum].
isConnected();
819 #if FW_ENABLE_TEXT_LOGGING == 1 821 bool EventManagerComponentBase ::
822 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 825 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
826 static_cast<FwAssertArgType>(portNum)
829 return this->m_LogText_OutputPort[portNum].isConnected();
839 static_cast<FwAssertArgType>(portNum)
842 return this->m_Time_OutputPort[portNum].
isConnected();
850 static_cast<FwAssertArgType>(portNum)
853 return this->m_Tlm_OutputPort[portNum].
isConnected();
858 #if !FW_DIRECT_PORT_CALLS 869 static_cast<FwAssertArgType>(portNum)
872 return this->m_FatalAnnounce_OutputPort[portNum].
isConnected();
880 static_cast<FwAssertArgType>(portNum)
883 return this->m_PktSend_OutputPort[portNum].
isConnected();
891 static_cast<FwAssertArgType>(portNum)
894 return this->m_pingOut_OutputPort[portNum].
isConnected();
915 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
918 switch (opCode - idBase) {
969 static_cast<FwAssertArgType>(portNum)
991 static_cast<FwAssertArgType>(portNum)
999 ComponentIpcSerializableBuffer msg;
1003 _status = msg.serializeFrom(
1004 static_cast<FwEnumStoreType>(PINGIN_PING)
1008 static_cast<FwAssertArgType>(_status)
1012 _status = msg.serializeFrom(portNum);
1015 static_cast<FwAssertArgType>(_status)
1019 _status = msg.serializeFrom(key);
1022 static_cast<FwAssertArgType>(_status)
1031 static_cast<FwAssertArgType>(qStatus)
1044 static_cast<FwAssertArgType>(portNum)
1052 ComponentIpcSerializableBuffer msg;
1056 _status = msg.serializeFrom(
1057 static_cast<FwEnumStoreType>(RUN_SCHED)
1061 static_cast<FwAssertArgType>(_status)
1065 _status = msg.serializeFrom(portNum);
1068 static_cast<FwAssertArgType>(_status)
1072 _status = msg.serializeFrom(context);
1075 static_cast<FwAssertArgType>(_status)
1082 if (qStatus == Os::Queue::Status::FULL) {
1089 static_cast<FwAssertArgType>(qStatus)
1119 #if !FW_DIRECT_PORT_CALLS 1133 static_cast<FwAssertArgType>(portNum)
1137 this->m_FatalAnnounce_OutputPort[portNum].isConnected(),
1138 static_cast<FwAssertArgType>(portNum)
1140 this->m_FatalAnnounce_OutputPort[portNum].
invoke(
1154 static_cast<FwAssertArgType>(portNum)
1158 this->m_PktSend_OutputPort[portNum].isConnected(),
1159 static_cast<FwAssertArgType>(portNum)
1161 this->m_PktSend_OutputPort[portNum].
invoke(
1175 static_cast<FwAssertArgType>(portNum)
1179 this->m_pingOut_OutputPort[portNum].isConnected(),
1180 static_cast<FwAssertArgType>(portNum)
1182 this->m_pingOut_OutputPort[portNum].
invoke(
1201 ComponentIpcSerializableBuffer msg;
1205 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_LOQQUEUE));
1208 static_cast<FwAssertArgType>(_status)
1212 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1215 static_cast<FwAssertArgType>(_status)
1218 _status = msg.serializeFrom(
id);
1221 static_cast<FwAssertArgType>(_status)
1224 _status = msg.serializeFrom(timeTag);
1227 static_cast<FwAssertArgType>(_status)
1230 _status = msg.serializeFrom(severity);
1233 static_cast<FwAssertArgType>(_status)
1236 _status = msg.serializeFrom(args);
1239 static_cast<FwAssertArgType>(_status)
1246 if (qStatus == Os::Queue::Status::FULL) {
1253 static_cast<FwAssertArgType>(qStatus)
1269 this->CmdStatus_out(0, opCode, cmdSeq, response);
1295 this->CmdStatus_out(
1309 this->CmdStatus_out(
1319 #if FW_CMD_CHECK_RESIDUAL 1324 this->CmdStatus_out(
1354 ComponentIpcSerializableBuffer msg;
1358 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SET_ID_FILTER));
1361 static_cast<FwAssertArgType>(_status)
1367 _status = msg.serializeFrom(port);
1370 static_cast<FwAssertArgType>(_status)
1373 _status = msg.serializeFrom(opCode);
1376 static_cast<FwAssertArgType>(_status)
1379 _status = msg.serializeFrom(cmdSeq);
1382 static_cast<FwAssertArgType>(_status)
1385 _status = msg.serializeFrom(args);
1388 static_cast<FwAssertArgType>(_status)
1397 static_cast<FwAssertArgType>(qStatus)
1413 ComponentIpcSerializableBuffer msg;
1417 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_DUMP_FILTER_STATE));
1420 static_cast<FwAssertArgType>(_status)
1426 _status = msg.serializeFrom(port);
1429 static_cast<FwAssertArgType>(_status)
1432 _status = msg.serializeFrom(opCode);
1435 static_cast<FwAssertArgType>(_status)
1438 _status = msg.serializeFrom(cmdSeq);
1441 static_cast<FwAssertArgType>(_status)
1444 _status = msg.serializeFrom(args);
1447 static_cast<FwAssertArgType>(_status)
1456 static_cast<FwAssertArgType>(qStatus)
1503 this->Time_out(0, _logTime);
1513 #if FW_AMPCS_COMPATIBLE 1518 static_cast<FwAssertArgType>(_status)
1522 #if FW_AMPCS_COMPATIBLE 1529 static_cast<FwAssertArgType>(_status)
1535 static_cast<FwAssertArgType>(_status)
1538 #if FW_AMPCS_COMPATIBLE 1541 static_cast<U8>(
sizeof(
U8))
1545 static_cast<FwAssertArgType>(_status)
1551 static_cast<FwAssertArgType>(_status)
1564 #if FW_ENABLE_TEXT_LOGGING 1565 if (this->isConnected_LogText_OutputPort(0)) {
1566 #if FW_OBJECT_NAMES == 1 1567 const char* _formatString =
1568 "(%s) %s: %s filter state. %d";
1570 const char* _formatString =
1571 "%s: %s filter state. %d";
1575 severity.toString(severityStr);
1578 (void) _logString.
format(
1581 this->m_objName.toChar(),
1583 "SEVERITY_FILTER_STATE ",
1605 this->Time_out(0, _logTime);
1615 #if FW_AMPCS_COMPATIBLE 1620 static_cast<FwAssertArgType>(_status)
1624 #if FW_AMPCS_COMPATIBLE 1631 static_cast<FwAssertArgType>(_status)
1637 static_cast<FwAssertArgType>(_status)
1650 #if FW_ENABLE_TEXT_LOGGING 1651 if (this->isConnected_LogText_OutputPort(0)) {
1652 #if FW_OBJECT_NAMES == 1 1653 const char* _formatString =
1654 "(%s) %s: ID %" PRIu32
" is filtered.";
1656 const char* _formatString =
1657 "%s: ID %" PRIu32
" is filtered.";
1661 (void) _logString.
format(
1664 this->m_objName.toChar(),
1666 "ID_FILTER_ENABLED ",
1687 this->Time_out(0, _logTime);
1697 #if FW_AMPCS_COMPATIBLE 1702 static_cast<FwAssertArgType>(_status)
1706 #if FW_AMPCS_COMPATIBLE 1713 static_cast<FwAssertArgType>(_status)
1719 static_cast<FwAssertArgType>(_status)
1732 #if FW_ENABLE_TEXT_LOGGING 1733 if (this->isConnected_LogText_OutputPort(0)) {
1734 #if FW_OBJECT_NAMES == 1 1735 const char* _formatString =
1736 "(%s) %s: ID filter list is full. Cannot filter %" PRIu32
" .";
1738 const char* _formatString =
1739 "%s: ID filter list is full. Cannot filter %" PRIu32
" .";
1743 (void) _logString.
format(
1746 this->m_objName.toChar(),
1748 "ID_FILTER_LIST_FULL ",
1769 this->Time_out(0, _logTime);
1779 #if FW_AMPCS_COMPATIBLE 1784 static_cast<FwAssertArgType>(_status)
1788 #if FW_AMPCS_COMPATIBLE 1795 static_cast<FwAssertArgType>(_status)
1801 static_cast<FwAssertArgType>(_status)
1814 #if FW_ENABLE_TEXT_LOGGING 1815 if (this->isConnected_LogText_OutputPort(0)) {
1816 #if FW_OBJECT_NAMES == 1 1817 const char* _formatString =
1818 "(%s) %s: ID filter ID %" PRIu32
" removed.";
1820 const char* _formatString =
1821 "%s: ID filter ID %" PRIu32
" removed.";
1825 (void) _logString.
format(
1828 this->m_objName.toChar(),
1830 "ID_FILTER_REMOVED ",
1851 this->Time_out(0, _logTime);
1861 #if FW_AMPCS_COMPATIBLE 1866 static_cast<FwAssertArgType>(_status)
1870 #if FW_AMPCS_COMPATIBLE 1877 static_cast<FwAssertArgType>(_status)
1883 static_cast<FwAssertArgType>(_status)
1896 #if FW_ENABLE_TEXT_LOGGING 1897 if (this->isConnected_LogText_OutputPort(0)) {
1898 #if FW_OBJECT_NAMES == 1 1899 const char* _formatString =
1900 "(%s) %s: ID filter ID %" PRIu32
" not found.";
1902 const char* _formatString =
1903 "%s: ID filter ID %" PRIu32
" not found.";
1907 (void) _logString.
format(
1910 this->m_objName.toChar(),
1912 "ID_FILTER_NOT_FOUND ",
1943 this->Time_out(0, _tlmTime);
1969 if (not this->m_first_update_EventsDropped) {
1971 if (arg == this->m_last_EventsDropped) {
1975 this->m_last_EventsDropped = arg;
1979 this->m_first_update_EventsDropped =
false;
1980 this->m_last_EventsDropped = arg;
1988 static_cast<FwAssertArgType>(_stat)
2008 this->Time_out(0, _time);
2023 ComponentIpcSerializableBuffer _msg;
2033 static_cast<FwAssertArgType>(_msgStatus)
2043 static_cast<FwAssertArgType>(_deserStatus)
2046 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
2048 if (_msgType == EVENTMANAGER_COMPONENT_EXIT) {
2053 _deserStatus = _msg.deserializeTo(portNum);
2056 static_cast<FwAssertArgType>(_deserStatus)
2064 _deserStatus = _msg.deserializeTo(key);
2067 static_cast<FwAssertArgType>(_deserStatus)
2082 _deserStatus = _msg.deserializeTo(context);
2085 static_cast<FwAssertArgType>(_deserStatus)
2097 case CMD_SET_ID_FILTER: {
2100 _deserStatus = _msg.deserializeTo(_opCode);
2103 static_cast<FwAssertArgType>(_deserStatus)
2108 _deserStatus = _msg.deserializeTo(_cmdSeq);
2111 static_cast<FwAssertArgType>(_deserStatus)
2116 _deserStatus = _msg.deserializeTo(args);
2119 static_cast<FwAssertArgType>(_deserStatus)
2157 #if FW_CMD_CHECK_RESIDUAL 2178 case CMD_DUMP_FILTER_STATE: {
2181 _deserStatus = _msg.deserializeTo(_opCode);
2184 static_cast<FwAssertArgType>(_deserStatus)
2189 _deserStatus = _msg.deserializeTo(_cmdSeq);
2192 static_cast<FwAssertArgType>(_deserStatus)
2197 _deserStatus = _msg.deserializeTo(args);
2200 static_cast<FwAssertArgType>(_deserStatus)
2208 #if FW_CMD_CHECK_RESIDUAL 2225 case INT_IF_LOQQUEUE: {
2227 _deserStatus = _msg.deserializeTo(
id);
2232 static_cast<FwAssertArgType>(_deserStatus)
2236 _deserStatus = _msg.deserializeTo(timeTag);
2241 static_cast<FwAssertArgType>(_deserStatus)
2245 _deserStatus = _msg.deserializeTo(severity);
2250 static_cast<FwAssertArgType>(_deserStatus)
2254 _deserStatus = _msg.deserializeTo(args);
2259 static_cast<FwAssertArgType>(_deserStatus)
2265 _msg.getDeserializeSizeLeft() == 0,
2291 void EventManagerComponentBase ::
2302 compPtr->CmdDisp_handlerBase(
2314 void EventManagerComponentBase ::
2326 compPtr->LogRecv_handlerBase(
2335 void EventManagerComponentBase ::
2344 compPtr->pingIn_handlerBase(
2350 void EventManagerComponentBase ::
2359 compPtr->run_handlerBase(
2365 #if !FW_DIRECT_PORT_CALLS 2371 void EventManagerComponentBase ::
2379 static_cast<FwAssertArgType>(portNum)
2383 this->m_CmdReg_OutputPort[portNum].isConnected(),
2384 static_cast<FwAssertArgType>(portNum)
2386 this->m_CmdReg_OutputPort[portNum].
invoke(
2391 void EventManagerComponentBase ::
2401 static_cast<FwAssertArgType>(portNum)
2405 this->m_CmdStatus_OutputPort[portNum].isConnected(),
2406 static_cast<FwAssertArgType>(portNum)
2408 this->m_CmdStatus_OutputPort[portNum].
invoke(
2415 void EventManagerComponentBase ::
2426 static_cast<FwAssertArgType>(portNum)
2430 this->m_Log_OutputPort[portNum].isConnected(),
2431 static_cast<FwAssertArgType>(portNum)
2433 this->m_Log_OutputPort[portNum].
invoke(
2441 #if FW_ENABLE_TEXT_LOGGING 2443 void EventManagerComponentBase ::
2453 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
2454 static_cast<FwAssertArgType>(portNum)
2458 this->m_LogText_OutputPort[portNum].isConnected(),
2459 static_cast<FwAssertArgType>(portNum)
2461 this->m_LogText_OutputPort[portNum].invoke(
2471 void EventManagerComponentBase ::
2479 static_cast<FwAssertArgType>(portNum)
2483 this->m_Time_OutputPort[portNum].isConnected(),
2484 static_cast<FwAssertArgType>(portNum)
2486 this->m_Time_OutputPort[portNum].
invoke(
2491 void EventManagerComponentBase ::
2501 static_cast<FwAssertArgType>(portNum)
2505 this->m_Tlm_OutputPort[portNum].isConnected(),
2506 static_cast<FwAssertArgType>(portNum)
2508 this->m_Tlm_OutputPort[portNum].
invoke(
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.
Dump the filter states via events.
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(const Svc::EventManager_FilterSeverity &severity, bool enabled) const
static constexpr FwIndexType getNum_Tlm_OutputPorts()
virtual void run_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port run.
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port connection.
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.
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.
Attempted to add ID to full ID filter ID.
Channel ID for EventsDropped.
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
message to exit active component task
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].
Svc::InputSchedPort * get_run_InputPort(FwIndexType portNum)
Os::Queue m_queue
queue object for active component
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
static constexpr FwIndexType getNum_CmdStatus_OutputPorts()
void regCommands()
Register commands with the Command Dispatcher.
SerializeStatus
forward declaration for string
The size of the serial representation.
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 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.
Set filter for reporting events. Events are not stored in component.
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.
Errors dispatching messages.
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.
Dump severity filter state.
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.
size when serialized: buffer + stored size
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.
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)
void addCallPort(InputLogPort *callPort)
Register an input port.
virtual void DUMP_FILTER_STATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Removed an ID from the filter.
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()
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.
The size of the serial representation.
void set_FatalAnnounce_OutputPort(FwIndexType portNum, Svc::InputFatalEventPort *port)
Connect port to FatalAnnounce[portNum].
Fw::InputLogPort * get_LogRecv_InputPort(FwIndexType portNum)
static constexpr FwSizeType CAPACITY
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