11#if FW_ENABLE_TEXT_LOGGING
36 class ComponentIpcSerializableBuffer :
51 return sizeof(m_buff);
58 const U8* getBuffAddr()
const {
64 U8 m_buff[SERIALIZATION_SIZE];
73 void TlmPacketizerComponentBase ::
85 port < static_cast<PlatformIntType>(this->getNum_cmdIn_InputPorts());
88 this->m_cmdIn_InputPort[port].init();
89 this->m_cmdIn_InputPort[port].addCallComp(
93 this->m_cmdIn_InputPort[port].setPortNum(port);
95#if FW_OBJECT_NAMES == 1
102 char portName[2*FW_OBJ_NAME_MAX_SIZE];
110 this->m_cmdIn_InputPort[port].setObjName(portName);
117 port < static_cast<PlatformIntType>(this->getNum_Run_InputPorts());
120 this->m_Run_InputPort[port].init();
121 this->m_Run_InputPort[port].addCallComp(
125 this->m_Run_InputPort[port].setPortNum(port);
127#if FW_OBJECT_NAMES == 1
134 char portName[2*FW_OBJ_NAME_MAX_SIZE];
142 this->m_Run_InputPort[port].setObjName(portName);
149 port < static_cast<PlatformIntType>(this->getNum_TlmRecv_InputPorts());
152 this->m_TlmRecv_InputPort[port].init();
153 this->m_TlmRecv_InputPort[port].addCallComp(
157 this->m_TlmRecv_InputPort[port].setPortNum(port);
159#if FW_OBJECT_NAMES == 1
166 char portName[2*FW_OBJ_NAME_MAX_SIZE];
174 this->m_TlmRecv_InputPort[port].setObjName(portName);
181 port < static_cast<PlatformIntType>(this->getNum_pingIn_InputPorts());
184 this->m_pingIn_InputPort[port].init();
185 this->m_pingIn_InputPort[port].addCallComp(
189 this->m_pingIn_InputPort[port].setPortNum(port);
191#if FW_OBJECT_NAMES == 1
198 char portName[2*FW_OBJ_NAME_MAX_SIZE];
206 this->m_pingIn_InputPort[port].setObjName(portName);
213 port < static_cast<PlatformIntType>(this->getNum_cmdRegOut_OutputPorts());
216 this->m_cmdRegOut_OutputPort[port].init();
218#if FW_OBJECT_NAMES == 1
225 char portName[2*FW_OBJ_NAME_MAX_SIZE];
233 this->m_cmdRegOut_OutputPort[port].setObjName(portName);
240 port < static_cast<PlatformIntType>(this->getNum_cmdResponseOut_OutputPorts());
243 this->m_cmdResponseOut_OutputPort[port].init();
245#if FW_OBJECT_NAMES == 1
252 char portName[2*FW_OBJ_NAME_MAX_SIZE];
260 this->m_cmdResponseOut_OutputPort[port].setObjName(portName);
267 port < static_cast<PlatformIntType>(this->getNum_eventOut_OutputPorts());
270 this->m_eventOut_OutputPort[port].init();
272#if FW_OBJECT_NAMES == 1
279 char portName[2*FW_OBJ_NAME_MAX_SIZE];
287 this->m_eventOut_OutputPort[port].setObjName(portName);
291#if FW_ENABLE_TEXT_LOGGING == 1
295 port < static_cast<PlatformIntType>(this->getNum_textEventOut_OutputPorts());
298 this->m_textEventOut_OutputPort[port].init();
300#if FW_OBJECT_NAMES == 1
307 char portName[2*FW_OBJ_NAME_MAX_SIZE];
315 this->m_textEventOut_OutputPort[port].setObjName(portName);
323 port < static_cast<PlatformIntType>(this->getNum_timeGetOut_OutputPorts());
326 this->m_timeGetOut_OutputPort[port].init();
328#if FW_OBJECT_NAMES == 1
335 char portName[2*FW_OBJ_NAME_MAX_SIZE];
343 this->m_timeGetOut_OutputPort[port].setObjName(portName);
350 port < static_cast<PlatformIntType>(this->getNum_tlmOut_OutputPorts());
353 this->m_tlmOut_OutputPort[port].init();
355#if FW_OBJECT_NAMES == 1
362 char portName[2*FW_OBJ_NAME_MAX_SIZE];
370 this->m_tlmOut_OutputPort[port].setObjName(portName);
377 port < static_cast<PlatformIntType>(this->getNum_PktSend_OutputPorts());
380 this->m_PktSend_OutputPort[port].init();
382#if FW_OBJECT_NAMES == 1
389 char portName[2*FW_OBJ_NAME_MAX_SIZE];
397 this->m_PktSend_OutputPort[port].setObjName(portName);
404 port < static_cast<PlatformIntType>(this->getNum_pingOut_OutputPorts());
407 this->m_pingOut_OutputPort[port].init();
409#if FW_OBJECT_NAMES == 1
416 char portName[2*FW_OBJ_NAME_MAX_SIZE];
424 this->m_pingOut_OutputPort[port].setObjName(portName);
430 ComponentIpcSerializableBuffer::SERIALIZATION_SIZE
73 void TlmPacketizerComponentBase :: {
…}
446 portNum < this->getNum_cmdIn_InputPorts(),
450 return &this->m_cmdIn_InputPort[portNum];
461 portNum < this->getNum_Run_InputPorts(),
465 return &this->m_Run_InputPort[portNum];
472 portNum < this->getNum_TlmRecv_InputPorts(),
476 return &this->m_TlmRecv_InputPort[portNum];
483 portNum < this->getNum_pingIn_InputPorts(),
487 return &this->m_pingIn_InputPort[portNum];
494 void TlmPacketizerComponentBase ::
495 set_cmdRegOut_OutputPort(
501 portNum < this->getNum_cmdRegOut_OutputPorts(),
505 this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
494 void TlmPacketizerComponentBase :: {
…}
508 void TlmPacketizerComponentBase ::
509 set_cmdResponseOut_OutputPort(
515 portNum < this->getNum_cmdResponseOut_OutputPorts(),
519 this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
508 void TlmPacketizerComponentBase :: {
…}
522 void TlmPacketizerComponentBase ::
523 set_eventOut_OutputPort(
529 portNum < this->getNum_eventOut_OutputPorts(),
533 this->m_eventOut_OutputPort[portNum].addCallPort(port);
522 void TlmPacketizerComponentBase :: {
…}
536#if FW_ENABLE_TEXT_LOGGING == 1
538 void TlmPacketizerComponentBase ::
539 set_textEventOut_OutputPort(
545 portNum < this->getNum_textEventOut_OutputPorts(),
549 this->m_textEventOut_OutputPort[portNum].addCallPort(port);
554 void TlmPacketizerComponentBase ::
555 set_timeGetOut_OutputPort(
561 portNum < this->getNum_timeGetOut_OutputPorts(),
565 this->m_timeGetOut_OutputPort[portNum].addCallPort(port);
554 void TlmPacketizerComponentBase :: {
…}
568 void TlmPacketizerComponentBase ::
569 set_tlmOut_OutputPort(
575 portNum < this->getNum_tlmOut_OutputPorts(),
579 this->m_tlmOut_OutputPort[portNum].addCallPort(port);
568 void TlmPacketizerComponentBase :: {
…}
586 void TlmPacketizerComponentBase ::
587 set_PktSend_OutputPort(
593 portNum < this->getNum_PktSend_OutputPorts(),
597 this->m_PktSend_OutputPort[portNum].addCallPort(port);
586 void TlmPacketizerComponentBase :: {
…}
600 void TlmPacketizerComponentBase ::
601 set_pingOut_OutputPort(
607 portNum < this->getNum_pingOut_OutputPorts(),
611 this->m_pingOut_OutputPort[portNum].addCallPort(port);
600 void TlmPacketizerComponentBase :: {
…}
614#if FW_PORT_SERIALIZATION
620 void TlmPacketizerComponentBase ::
621 set_cmdRegOut_OutputPort(
623 Fw::InputSerializePort* port
627 portNum < this->getNum_cmdRegOut_OutputPorts(),
631 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
634 void TlmPacketizerComponentBase ::
635 set_cmdResponseOut_OutputPort(
637 Fw::InputSerializePort* port
641 portNum < this->getNum_cmdResponseOut_OutputPorts(),
645 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
648 void TlmPacketizerComponentBase ::
649 set_eventOut_OutputPort(
651 Fw::InputSerializePort* port
655 portNum < this->getNum_eventOut_OutputPorts(),
659 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
662#if FW_ENABLE_TEXT_LOGGING == 1
664 void TlmPacketizerComponentBase ::
665 set_textEventOut_OutputPort(
667 Fw::InputSerializePort* port
671 portNum < this->getNum_textEventOut_OutputPorts(),
675 this->m_textEventOut_OutputPort[portNum].registerSerialPort(port);
680 void TlmPacketizerComponentBase ::
681 set_timeGetOut_OutputPort(
683 Fw::InputSerializePort* port
687 portNum < this->getNum_timeGetOut_OutputPorts(),
691 this->m_timeGetOut_OutputPort[portNum].registerSerialPort(port);
694 void TlmPacketizerComponentBase ::
695 set_tlmOut_OutputPort(
697 Fw::InputSerializePort* port
701 portNum < this->getNum_tlmOut_OutputPorts(),
705 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
710#if FW_PORT_SERIALIZATION
716 void TlmPacketizerComponentBase ::
717 set_PktSend_OutputPort(
719 Fw::InputSerializePort* port
723 portNum < this->getNum_PktSend_OutputPorts(),
727 this->m_PktSend_OutputPort[portNum].registerSerialPort(port);
730 void TlmPacketizerComponentBase ::
731 set_pingOut_OutputPort(
733 Fw::InputSerializePort* port
737 portNum < this->getNum_pingOut_OutputPorts(),
741 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
750 void TlmPacketizerComponentBase ::
753 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
755 this->m_cmdRegOut_OutputPort[0].invoke(
756 this->getIdBase() + OPCODE_SET_LEVEL
759 this->m_cmdRegOut_OutputPort[0].invoke(
760 this->getIdBase() + OPCODE_SEND_PKT
750 void TlmPacketizerComponentBase :: {
…}
768 TlmPacketizerComponentBase ::
769 TlmPacketizerComponentBase(
const char* compName) :
770 Fw::ActiveComponentBase(compName)
768 TlmPacketizerComponentBase :: {
…}
775 TlmPacketizerComponentBase ::
776 ~TlmPacketizerComponentBase()
775 TlmPacketizerComponentBase :: {
…}
786 getNum_cmdIn_InputPorts()
const
796 getNum_Run_InputPorts()
const
802 getNum_TlmRecv_InputPorts()
const
808 getNum_pingIn_InputPorts()
const
818 getNum_cmdRegOut_OutputPorts()
const
824 getNum_cmdResponseOut_OutputPorts()
const
830 getNum_eventOut_OutputPorts()
const
835#if FW_ENABLE_TEXT_LOGGING == 1
838 getNum_textEventOut_OutputPorts()
const
846 getNum_timeGetOut_OutputPorts()
const
852 getNum_tlmOut_OutputPorts()
const
862 getNum_PktSend_OutputPorts()
const
868 getNum_pingOut_OutputPorts()
const
877 bool TlmPacketizerComponentBase ::
881 portNum < this->getNum_cmdRegOut_OutputPorts(),
885 return this->m_cmdRegOut_OutputPort[portNum].isConnected();
877 bool TlmPacketizerComponentBase :: {
…}
888 bool TlmPacketizerComponentBase ::
892 portNum < this->getNum_cmdResponseOut_OutputPorts(),
896 return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
888 bool TlmPacketizerComponentBase :: {
…}
899 bool TlmPacketizerComponentBase ::
903 portNum < this->getNum_eventOut_OutputPorts(),
907 return this->m_eventOut_OutputPort[portNum].isConnected();
899 bool TlmPacketizerComponentBase :: {
…}
910#if FW_ENABLE_TEXT_LOGGING == 1
912 bool TlmPacketizerComponentBase ::
916 portNum < this->getNum_textEventOut_OutputPorts(),
920 return this->m_textEventOut_OutputPort[portNum].isConnected();
925 bool TlmPacketizerComponentBase ::
929 portNum < this->getNum_timeGetOut_OutputPorts(),
933 return this->m_timeGetOut_OutputPort[portNum].isConnected();
925 bool TlmPacketizerComponentBase :: {
…}
936 bool TlmPacketizerComponentBase ::
940 portNum < this->getNum_tlmOut_OutputPorts(),
944 return this->m_tlmOut_OutputPort[portNum].isConnected();
936 bool TlmPacketizerComponentBase :: {
…}
951 bool TlmPacketizerComponentBase ::
955 portNum < this->getNum_PktSend_OutputPorts(),
959 return this->m_PktSend_OutputPort[portNum].isConnected();
951 bool TlmPacketizerComponentBase :: {
…}
962 bool TlmPacketizerComponentBase ::
966 portNum < this->getNum_pingOut_OutputPorts(),
970 return this->m_pingOut_OutputPort[portNum].isConnected();
962 bool TlmPacketizerComponentBase :: {
…}
979 void TlmPacketizerComponentBase ::
987 portNum < this->getNum_Run_InputPorts(),
996 ComponentIpcSerializableBuffer msg;
1000 _status = msg.serialize(
1009 _status = msg.serialize(portNum);
1016 _status = msg.serialize(context);
979 void TlmPacketizerComponentBase :: {
…}
1032 void TlmPacketizerComponentBase ::
1033 TlmRecv_handlerBase(
1042 portNum < this->getNum_TlmRecv_InputPorts(),
1047 this->TlmRecv_handler(
1032 void TlmPacketizerComponentBase :: {
…}
1055 void TlmPacketizerComponentBase ::
1063 portNum < this->getNum_pingIn_InputPorts(),
1072 ComponentIpcSerializableBuffer msg;
1076 _status = msg.serialize(
1085 _status = msg.serialize(portNum);
1092 _status = msg.serialize(key);
1055 void TlmPacketizerComponentBase :: {
…}
1116 void TlmPacketizerComponentBase ::
1116 void TlmPacketizerComponentBase :: {
…}
1125 void TlmPacketizerComponentBase ::
1125 void TlmPacketizerComponentBase :: {
…}
1138 void TlmPacketizerComponentBase ::
1146 portNum < this->getNum_PktSend_OutputPorts(),
1149 this->m_PktSend_OutputPort[portNum].invoke(
1138 void TlmPacketizerComponentBase :: {
…}
1155 void TlmPacketizerComponentBase ::
1162 portNum < this->getNum_pingOut_OutputPorts(),
1165 this->m_pingOut_OutputPort[portNum].invoke(
1155 void TlmPacketizerComponentBase :: {
…}
1174 void TlmPacketizerComponentBase ::
1181 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
1182 this->m_cmdResponseOut_OutputPort[0].invoke(opCode, cmdSeq, response);
1174 void TlmPacketizerComponentBase :: {
…}
1191 void TlmPacketizerComponentBase ::
1192 SET_LEVEL_cmdHandlerBase(
1199 this->SET_LEVEL_preMsgHook(opCode,cmdSeq);
1203 ComponentIpcSerializableBuffer msg;
1216 _status = msg.serialize(port);
1222 _status = msg.serialize(opCode);
1228 _status = msg.serialize(cmdSeq);
1234 _status = msg.serialize(args);
1191 void TlmPacketizerComponentBase :: {
…}
1250 void TlmPacketizerComponentBase ::
1251 SEND_PKT_cmdHandlerBase(
1258 this->SEND_PKT_preMsgHook(opCode,cmdSeq);
1262 ComponentIpcSerializableBuffer msg;
1275 _status = msg.serialize(port);
1281 _status = msg.serialize(opCode);
1287 _status = msg.serialize(cmdSeq);
1293 _status = msg.serialize(args);
1250 void TlmPacketizerComponentBase :: {
…}
1317 void TlmPacketizerComponentBase ::
1318 SET_LEVEL_preMsgHook(
1317 void TlmPacketizerComponentBase :: {
…}
1328 void TlmPacketizerComponentBase ::
1329 SEND_PKT_preMsgHook(
1328 void TlmPacketizerComponentBase :: {
…}
1343 void TlmPacketizerComponentBase ::
1344 log_WARNING_LO_NoChan(U32 Id)
1348 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1349 this->m_timeGetOut_OutputPort[0].invoke(_logTime);
1354 _id = this->getIdBase() + EVENTID_NOCHAN;
1357 if (this->m_eventOut_OutputPort[0].isConnected()) {
1361#if FW_AMPCS_COMPATIBLE
1370#if FW_AMPCS_COMPATIBLE
1373 static_cast<U8>(
sizeof(U32))
1386 this->m_eventOut_OutputPort[0].invoke(
1395#if FW_ENABLE_TEXT_LOGGING
1396 if (this->m_textEventOut_OutputPort[0].isConnected()) {
1397#if FW_OBJECT_NAMES == 1
1398 const char* _formatString =
1399 "(%s) %s: Telemetry ID 0x%" PRIx32
" not packetized";
1401 const char* _formatString =
1402 "%s: Telemetry ID 0x%" PRIx32
" not packetized";
1421 this->m_textEventOut_OutputPort[0].invoke(
1343 void TlmPacketizerComponentBase :: {
…}
1431 void TlmPacketizerComponentBase ::
1432 log_ACTIVITY_HI_LevelSet(U32
id)
1436 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1437 this->m_timeGetOut_OutputPort[0].invoke(_logTime);
1442 _id = this->getIdBase() + EVENTID_LEVELSET;
1445 if (this->m_eventOut_OutputPort[0].isConnected()) {
1449#if FW_AMPCS_COMPATIBLE
1458#if FW_AMPCS_COMPATIBLE
1461 static_cast<U8>(
sizeof(U32))
1474 this->m_eventOut_OutputPort[0].invoke(
1483#if FW_ENABLE_TEXT_LOGGING
1484 if (this->m_textEventOut_OutputPort[0].isConnected()) {
1485#if FW_OBJECT_NAMES == 1
1486 const char* _formatString =
1487 "(%s) %s: Telemetry send level to %" PRIu32
"";
1489 const char* _formatString =
1490 "%s: Telemetry send level to %" PRIu32
"";
1509 this->m_textEventOut_OutputPort[0].invoke(
1431 void TlmPacketizerComponentBase :: {
…}
1519 void TlmPacketizerComponentBase ::
1520 log_WARNING_LO_MaxLevelExceed(
1527 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1528 this->m_timeGetOut_OutputPort[0].invoke(_logTime);
1533 _id = this->getIdBase() + EVENTID_MAXLEVELEXCEED;
1536 if (this->m_eventOut_OutputPort[0].isConnected()) {
1540#if FW_AMPCS_COMPATIBLE
1549#if FW_AMPCS_COMPATIBLE
1552 static_cast<U8>(
sizeof(U32))
1565#if FW_AMPCS_COMPATIBLE
1568 static_cast<U8>(
sizeof(U32))
1581 this->m_eventOut_OutputPort[0].invoke(
1590#if FW_ENABLE_TEXT_LOGGING
1591 if (this->m_textEventOut_OutputPort[0].isConnected()) {
1592#if FW_OBJECT_NAMES == 1
1593 const char* _formatString =
1594 "(%s) %s: Requested send level %" PRIu32
" higher than max packet level of %" PRIu32
"";
1596 const char* _formatString =
1597 "%s: Requested send level %" PRIu32
" higher than max packet level of %" PRIu32
"";
1617 this->m_textEventOut_OutputPort[0].invoke(
1519 void TlmPacketizerComponentBase :: {
…}
1627 void TlmPacketizerComponentBase ::
1628 log_ACTIVITY_LO_PacketSent(U32
id)
1632 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1633 this->m_timeGetOut_OutputPort[0].invoke(_logTime);
1638 _id = this->getIdBase() + EVENTID_PACKETSENT;
1641 if (this->m_eventOut_OutputPort[0].isConnected()) {
1645#if FW_AMPCS_COMPATIBLE
1654#if FW_AMPCS_COMPATIBLE
1657 static_cast<U8>(
sizeof(U32))
1670 this->m_eventOut_OutputPort[0].invoke(
1679#if FW_ENABLE_TEXT_LOGGING
1680 if (this->m_textEventOut_OutputPort[0].isConnected()) {
1681#if FW_OBJECT_NAMES == 1
1682 const char* _formatString =
1683 "(%s) %s: Sent packet ID %" PRIu32
"";
1685 const char* _formatString =
1686 "%s: Sent packet ID %" PRIu32
"";
1705 this->m_textEventOut_OutputPort[0].invoke(
1627 void TlmPacketizerComponentBase :: {
…}
1715 void TlmPacketizerComponentBase ::
1716 log_WARNING_LO_PacketNotFound(U32
id)
1720 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1721 this->m_timeGetOut_OutputPort[0].invoke(_logTime);
1726 _id = this->getIdBase() + EVENTID_PACKETNOTFOUND;
1729 if (this->m_eventOut_OutputPort[0].isConnected()) {
1733#if FW_AMPCS_COMPATIBLE
1742#if FW_AMPCS_COMPATIBLE
1745 static_cast<U8>(
sizeof(U32))
1758 this->m_eventOut_OutputPort[0].invoke(
1767#if FW_ENABLE_TEXT_LOGGING
1768 if (this->m_textEventOut_OutputPort[0].isConnected()) {
1769#if FW_OBJECT_NAMES == 1
1770 const char* _formatString =
1771 "(%s) %s: Could not find packet ID %" PRIu32
"";
1773 const char* _formatString =
1774 "%s: Could not find packet ID %" PRIu32
"";
1793 this->m_textEventOut_OutputPort[0].invoke(
1715 void TlmPacketizerComponentBase :: {
…}
1807 void TlmPacketizerComponentBase ::
1813 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1815 this->m_timeGetOut_OutputPort[0].isConnected() &&
1818 this->m_timeGetOut_OutputPort[0].invoke(_tlmTime);
1830 _id = this->getIdBase() + CHANNELID_SENDLEVEL;
1832 this->m_tlmOut_OutputPort[0].invoke(
1807 void TlmPacketizerComponentBase :: {
…}
1847 if (this->m_timeGetOut_OutputPort[0].isConnected()) {
1849 this->m_timeGetOut_OutputPort[0].invoke(_time);
1864 ComponentIpcSerializableBuffer msg;
1887 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
1889 if (msgType == TLMPACKETIZER_COMPONENT_EXIT) {
1890 return MSG_DISPATCH_EXIT;
1894 deserStatus = msg.deserialize(portNum);
1905 deserStatus = msg.deserialize(context);
1923 deserStatus = msg.deserialize(key);
1929 this->pingIn_handler(
1938 case CMD_SET_LEVEL: {
1941 deserStatus = msg.deserialize(opCode);
1949 deserStatus = msg.deserialize(cmdSeq);
1957 deserStatus = msg.deserialize(args);
1970 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
1971 this->cmdResponse_out(
1983#if FW_CMD_CHECK_RESIDUAL
1985 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
1994 this->SET_LEVEL_cmdHandler(
2003 case CMD_SEND_PKT: {
2006 deserStatus = msg.deserialize(opCode);
2014 deserStatus = msg.deserialize(cmdSeq);
2022 deserStatus = msg.deserialize(args);
2035 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2036 this->cmdResponse_out(
2048#if FW_CMD_CHECK_RESIDUAL
2050 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
2059 this->SEND_PKT_cmdHandler(
2068 return MSG_DISPATCH_ERROR;
2071 return MSG_DISPATCH_OK;
2078 void TlmPacketizerComponentBase ::
2088 TlmPacketizerComponentBase* compPtr =
static_cast<TlmPacketizerComponentBase*
>(callComp);
2090 const U32 idBase = callComp->
getIdBase();
2091 FW_ASSERT(opCode >= idBase, opCode, idBase);
2094 switch (opCode - idBase) {
2095 case OPCODE_SET_LEVEL: {
2096 compPtr->SET_LEVEL_cmdHandlerBase(
2104 case OPCODE_SEND_PKT: {
2105 compPtr->SEND_PKT_cmdHandlerBase(
2119 void TlmPacketizerComponentBase ::
2127 TlmPacketizerComponentBase* compPtr =
static_cast<TlmPacketizerComponentBase*
>(callComp);
2128 compPtr->Run_handlerBase(
2134 void TlmPacketizerComponentBase ::
2144 TlmPacketizerComponentBase* compPtr =
static_cast<TlmPacketizerComponentBase*
>(callComp);
2145 compPtr->TlmRecv_handlerBase(
2153 void TlmPacketizerComponentBase ::
2161 TlmPacketizerComponentBase* compPtr =
static_cast<TlmPacketizerComponentBase*
>(callComp);
2162 compPtr->pingIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
@ ACTIVE_COMPONENT_EXIT
message to exit active component task
Enum representing a command response.
@ FORMAT_ERROR
Command failed to deserialize.
@ ACTIVITY_HI
Important informational events.
@ WARNING_LO
A less serious but recoverable event.
@ ACTIVITY_LO
Less important informational events.
void init()
Object initializer.
NATIVE_UINT_TYPE getBuffLeft() const
returns how much deserialization buffer is left
void resetDeser()
reset deserialization to beginning
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
@ QUEUE_OK
message sent/received okay
@ QUEUE_BLOCKING
Queue receive blocks until a message arrives.
@ QUEUE_NONBLOCKING
Queue receive always returns even if there is no message.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.