9 #if FW_ENABLE_TEXT_LOGGING 21 STARTRECORDINGIN_COMLOGGERSTART,
22 STOPRECORDINGIN_COMLOGGERSTOP,
27 INT_IF_SCHEDININTERNAL,
41 class ComponentIpcSerializableBuffer :
51 MAX_DATA_SIZE =
sizeof(BuffUnion),
53 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
56 ComponentIpcSerializableBuffer() :
Fw::LinearBufferBase(m_buff, sizeof(m_buff)) {
62 U8 m_buff[SERIALIZATION_SIZE];
105 if ((this->m_dataBuffer.getSize() + sizeDelta) <= this->m_dataBuffer.getCapacity()) {
107 status = this->m_dataBuffer.serializeFrom(
id);
109 status = this->m_dataBuffer.serializeSize(size);
113 this->m_dataSize += sizeDelta;
134 #if !FW_DIRECT_PORT_CALLS 141 this->m_cmdIn_InputPort[port].
init();
146 this->m_cmdIn_InputPort[port].
setPortNum(port);
148 #if FW_OBJECT_NAMES == 1 152 this->m_objName.toChar(),
155 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
160 #if !FW_DIRECT_PORT_CALLS 167 this->m_comIn_InputPort[port].
init();
172 this->m_comIn_InputPort[port].
setPortNum(port);
174 #if FW_OBJECT_NAMES == 1 178 this->m_objName.toChar(),
181 this->m_comIn_InputPort[port].setObjName(portName.
toChar());
186 #if !FW_DIRECT_PORT_CALLS 193 this->m_pingIn_InputPort[port].
init();
198 this->m_pingIn_InputPort[port].
setPortNum(port);
200 #if FW_OBJECT_NAMES == 1 204 this->m_objName.toChar(),
207 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
212 #if !FW_DIRECT_PORT_CALLS 219 this->m_schedIn_InputPort[port].
init();
224 this->m_schedIn_InputPort[port].
setPortNum(port);
226 #if FW_OBJECT_NAMES == 1 230 this->m_objName.toChar(),
233 this->m_schedIn_InputPort[port].setObjName(portName.
toChar());
238 #if !FW_DIRECT_PORT_CALLS 245 this->m_startRecordingIn_InputPort[port].
init();
246 this->m_startRecordingIn_InputPort[port].
addCallComp(
248 m_p_startRecordingIn_in
250 this->m_startRecordingIn_InputPort[port].
setPortNum(port);
252 #if FW_OBJECT_NAMES == 1 256 this->m_objName.toChar(),
259 this->m_startRecordingIn_InputPort[port].setObjName(portName.
toChar());
264 #if !FW_DIRECT_PORT_CALLS 271 this->m_stopRecordingIn_InputPort[port].
init();
272 this->m_stopRecordingIn_InputPort[port].
addCallComp(
274 m_p_stopRecordingIn_in
276 this->m_stopRecordingIn_InputPort[port].
setPortNum(port);
278 #if FW_OBJECT_NAMES == 1 282 this->m_objName.toChar(),
285 this->m_stopRecordingIn_InputPort[port].setObjName(portName.
toChar());
290 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 294 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
297 this->m_LogText_OutputPort[port].
init();
299 #if FW_OBJECT_NAMES == 1 303 this->m_objName.toChar(),
306 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
311 #if !FW_DIRECT_PORT_CALLS 318 this->m_cmdRegOut_OutputPort[port].
init();
320 #if FW_OBJECT_NAMES == 1 324 this->m_objName.toChar(),
327 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
332 #if !FW_DIRECT_PORT_CALLS 339 this->m_cmdResponseOut_OutputPort[port].
init();
341 #if FW_OBJECT_NAMES == 1 345 this->m_objName.toChar(),
348 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
353 #if !FW_DIRECT_PORT_CALLS 360 this->m_logOut_OutputPort[port].
init();
362 #if FW_OBJECT_NAMES == 1 366 this->m_objName.toChar(),
369 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
374 #if !FW_DIRECT_PORT_CALLS 381 this->m_productGetOut_OutputPort[port].
init();
383 #if FW_OBJECT_NAMES == 1 387 this->m_objName.toChar(),
390 this->m_productGetOut_OutputPort[port].setObjName(portName.
toChar());
395 #if !FW_DIRECT_PORT_CALLS 402 this->m_productSendOut_OutputPort[port].
init();
404 #if FW_OBJECT_NAMES == 1 408 this->m_objName.toChar(),
411 this->m_productSendOut_OutputPort[port].setObjName(portName.
toChar());
416 #if !FW_DIRECT_PORT_CALLS 423 this->m_timeCaller_OutputPort[port].
init();
425 #if FW_OBJECT_NAMES == 1 429 this->m_objName.toChar(),
432 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
437 #if !FW_DIRECT_PORT_CALLS 444 this->m_tlmOut_OutputPort[port].
init();
446 #if FW_OBJECT_NAMES == 1 450 this->m_objName.toChar(),
453 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
458 #if !FW_DIRECT_PORT_CALLS 465 this->m_pingOut_OutputPort[port].
init();
467 #if FW_OBJECT_NAMES == 1 471 this->m_objName.toChar(),
474 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
482 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
486 static_cast<FwAssertArgType>(qStat)
490 #if !FW_DIRECT_PORT_CALLS 501 static_cast<FwAssertArgType>(portNum)
504 return &this->m_cmdIn_InputPort[portNum];
509 #if !FW_DIRECT_PORT_CALLS 520 static_cast<FwAssertArgType>(portNum)
523 return &this->m_comIn_InputPort[portNum];
531 static_cast<FwAssertArgType>(portNum)
534 return &this->m_pingIn_InputPort[portNum];
542 static_cast<FwAssertArgType>(portNum)
545 return &this->m_schedIn_InputPort[portNum];
553 static_cast<FwAssertArgType>(portNum)
556 return &this->m_startRecordingIn_InputPort[portNum];
564 static_cast<FwAssertArgType>(portNum)
567 return &this->m_stopRecordingIn_InputPort[portNum];
572 #if !FW_DIRECT_PORT_CALLS 578 #if FW_ENABLE_TEXT_LOGGING == 1 580 void ComLoggerDpComponentBase ::
581 set_LogText_OutputPort(
587 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
588 static_cast<FwAssertArgType>(portNum)
591 this->m_LogText_OutputPort[portNum].addCallPort(port);
604 static_cast<FwAssertArgType>(portNum)
607 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
618 static_cast<FwAssertArgType>(portNum)
621 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
632 static_cast<FwAssertArgType>(portNum)
635 this->m_logOut_OutputPort[portNum].
addCallPort(port);
646 static_cast<FwAssertArgType>(portNum)
649 this->m_productGetOut_OutputPort[portNum].
addCallPort(port);
660 static_cast<FwAssertArgType>(portNum)
663 this->m_productSendOut_OutputPort[portNum].
addCallPort(port);
674 static_cast<FwAssertArgType>(portNum)
677 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
688 static_cast<FwAssertArgType>(portNum)
691 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
696 #if !FW_DIRECT_PORT_CALLS 710 static_cast<FwAssertArgType>(portNum)
713 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
718 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 724 #if FW_ENABLE_TEXT_LOGGING == 1 726 void ComLoggerDpComponentBase ::
727 set_LogText_OutputPort(
729 Fw::InputSerializePort* port
733 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
734 static_cast<FwAssertArgType>(portNum)
737 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
745 Fw::InputSerializePort* port
750 static_cast<FwAssertArgType>(portNum)
753 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
759 Fw::InputSerializePort* port
764 static_cast<FwAssertArgType>(portNum)
767 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
773 Fw::InputSerializePort* port
778 static_cast<FwAssertArgType>(portNum)
781 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
787 Fw::InputSerializePort* port
792 static_cast<FwAssertArgType>(portNum)
795 this->m_productSendOut_OutputPort[portNum].registerSerialPort(port);
801 Fw::InputSerializePort* port
806 static_cast<FwAssertArgType>(portNum)
809 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
815 Fw::InputSerializePort* port
820 static_cast<FwAssertArgType>(portNum)
823 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
828 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 837 Fw::InputSerializePort* port
842 static_cast<FwAssertArgType>(portNum)
845 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
888 this->m_DpBufferErrorThrottle = 0;
897 #if !FW_DIRECT_PORT_CALLS 903 #if FW_ENABLE_TEXT_LOGGING == 1 905 bool ComLoggerDpComponentBase ::
906 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 909 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
910 static_cast<FwAssertArgType>(portNum)
913 return this->m_LogText_OutputPort[portNum].isConnected();
923 static_cast<FwAssertArgType>(portNum)
926 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
934 static_cast<FwAssertArgType>(portNum)
937 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
945 static_cast<FwAssertArgType>(portNum)
948 return this->m_logOut_OutputPort[portNum].
isConnected();
956 static_cast<FwAssertArgType>(portNum)
959 return this->m_productGetOut_OutputPort[portNum].
isConnected();
967 static_cast<FwAssertArgType>(portNum)
970 return this->m_productSendOut_OutputPort[portNum].
isConnected();
978 static_cast<FwAssertArgType>(portNum)
981 return this->m_timeCaller_OutputPort[portNum].
isConnected();
989 static_cast<FwAssertArgType>(portNum)
992 return this->m_tlmOut_OutputPort[portNum].
isConnected();
997 #if !FW_DIRECT_PORT_CALLS 1008 static_cast<FwAssertArgType>(portNum)
1011 return this->m_pingOut_OutputPort[portNum].
isConnected();
1032 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
1035 switch (opCode - idBase) {
1093 static_cast<FwAssertArgType>(portNum)
1102 ComponentIpcSerializableBuffer msg;
1106 _status = msg.serializeFrom(
1107 static_cast<FwEnumStoreType>(COMIN_COM)
1111 static_cast<FwAssertArgType>(_status)
1115 _status = msg.serializeFrom(portNum);
1118 static_cast<FwAssertArgType>(_status)
1122 _status = msg.serializeFrom(data);
1125 static_cast<FwAssertArgType>(_status)
1129 _status = msg.serializeFrom(context);
1132 static_cast<FwAssertArgType>(_status)
1139 if (qStatus == Os::Queue::Status::FULL) {
1146 static_cast<FwAssertArgType>(qStatus)
1159 static_cast<FwAssertArgType>(portNum)
1167 ComponentIpcSerializableBuffer msg;
1171 _status = msg.serializeFrom(
1172 static_cast<FwEnumStoreType>(PINGIN_PING)
1176 static_cast<FwAssertArgType>(_status)
1180 _status = msg.serializeFrom(portNum);
1183 static_cast<FwAssertArgType>(_status)
1187 _status = msg.serializeFrom(key);
1190 static_cast<FwAssertArgType>(_status)
1199 static_cast<FwAssertArgType>(qStatus)
1212 static_cast<FwAssertArgType>(portNum)
1232 static_cast<FwAssertArgType>(portNum)
1238 packetsPerContainer,
1241 ComponentIpcSerializableBuffer msg;
1245 _status = msg.serializeFrom(
1246 static_cast<FwEnumStoreType>(STARTRECORDINGIN_COMLOGGERSTART)
1250 static_cast<FwAssertArgType>(_status)
1254 _status = msg.serializeFrom(portNum);
1257 static_cast<FwAssertArgType>(_status)
1261 _status = msg.serializeFrom(packetsPerContainer);
1264 static_cast<FwAssertArgType>(_status)
1268 _status = msg.serializeFrom(priority);
1271 static_cast<FwAssertArgType>(_status)
1280 static_cast<FwAssertArgType>(qStatus)
1290 static_cast<FwAssertArgType>(portNum)
1295 ComponentIpcSerializableBuffer msg;
1299 _status = msg.serializeFrom(
1300 static_cast<FwEnumStoreType>(STOPRECORDINGIN_COMLOGGERSTOP)
1304 static_cast<FwAssertArgType>(_status)
1308 _status = msg.serializeFrom(portNum);
1311 static_cast<FwAssertArgType>(_status)
1320 static_cast<FwAssertArgType>(qStatus)
1367 #if !FW_DIRECT_PORT_CALLS 1381 static_cast<FwAssertArgType>(portNum)
1385 this->m_pingOut_OutputPort[portNum].isConnected(),
1386 static_cast<FwAssertArgType>(portNum)
1388 this->m_pingOut_OutputPort[portNum].
invoke(
1410 ComponentIpcSerializableBuffer msg;
1414 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_SCHEDININTERNAL));
1417 static_cast<FwAssertArgType>(_status)
1421 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1424 static_cast<FwAssertArgType>(_status)
1431 if (qStatus == Os::Queue::Status::FULL) {
1438 static_cast<FwAssertArgType>(qStatus)
1454 this->cmdResponseOut_out(0, opCode, cmdSeq, response);
1475 ComponentIpcSerializableBuffer msg;
1479 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_STARTCOMDP));
1482 static_cast<FwAssertArgType>(_status)
1488 _status = msg.serializeFrom(port);
1491 static_cast<FwAssertArgType>(_status)
1494 _status = msg.serializeFrom(opCode);
1497 static_cast<FwAssertArgType>(_status)
1500 _status = msg.serializeFrom(cmdSeq);
1503 static_cast<FwAssertArgType>(_status)
1506 _status = msg.serializeFrom(args);
1509 static_cast<FwAssertArgType>(_status)
1518 static_cast<FwAssertArgType>(qStatus)
1534 ComponentIpcSerializableBuffer msg;
1538 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_UPDATEPRIORITY));
1541 static_cast<FwAssertArgType>(_status)
1547 _status = msg.serializeFrom(port);
1550 static_cast<FwAssertArgType>(_status)
1553 _status = msg.serializeFrom(opCode);
1556 static_cast<FwAssertArgType>(_status)
1559 _status = msg.serializeFrom(cmdSeq);
1562 static_cast<FwAssertArgType>(_status)
1565 _status = msg.serializeFrom(args);
1568 static_cast<FwAssertArgType>(_status)
1577 static_cast<FwAssertArgType>(qStatus)
1593 ComponentIpcSerializableBuffer msg;
1597 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_STOPCOMDP));
1600 static_cast<FwAssertArgType>(_status)
1606 _status = msg.serializeFrom(port);
1609 static_cast<FwAssertArgType>(_status)
1612 _status = msg.serializeFrom(opCode);
1615 static_cast<FwAssertArgType>(_status)
1618 _status = msg.serializeFrom(cmdSeq);
1621 static_cast<FwAssertArgType>(_status)
1624 _status = msg.serializeFrom(args);
1627 static_cast<FwAssertArgType>(_status)
1636 static_cast<FwAssertArgType>(qStatus)
1652 ComponentIpcSerializableBuffer msg;
1656 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CLEAR_COUNTERS));
1659 static_cast<FwAssertArgType>(_status)
1665 _status = msg.serializeFrom(port);
1668 static_cast<FwAssertArgType>(_status)
1671 _status = msg.serializeFrom(opCode);
1674 static_cast<FwAssertArgType>(_status)
1677 _status = msg.serializeFrom(cmdSeq);
1680 static_cast<FwAssertArgType>(_status)
1683 _status = msg.serializeFrom(args);
1686 static_cast<FwAssertArgType>(_status)
1695 static_cast<FwAssertArgType>(qStatus)
1763 this->m_DpBufferErrorThrottle++;
1769 this->timeCaller_out(0, _logTime);
1779 #if FW_AMPCS_COMPATIBLE 1784 static_cast<FwAssertArgType>(_status)
1788 #if FW_AMPCS_COMPATIBLE 1791 static_cast<U8>(
sizeof(U32))
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: Error getting ComDp buffer of size %" PRIu32
"";
1820 const char* _formatString =
1821 "%s: Error getting ComDp buffer of size %" PRIu32
"";
1825 (void) _logString.
format(
1828 this->m_objName.toChar(),
1851 this->timeCaller_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: Started Com DP logging: %" PRIu64
" packets per container";
1902 const char* _formatString =
1903 "%s: Started Com DP logging: %" PRIu64
" packets per container";
1907 (void) _logString.
format(
1910 this->m_objName.toChar(),
1933 this->timeCaller_out(0, _logTime);
1943 #if FW_AMPCS_COMPATIBLE 1948 static_cast<FwAssertArgType>(_status)
1952 #if FW_AMPCS_COMPATIBLE 1959 static_cast<FwAssertArgType>(_status)
1965 static_cast<FwAssertArgType>(_status)
1978 #if FW_ENABLE_TEXT_LOGGING 1979 if (this->isConnected_LogText_OutputPort(0)) {
1980 #if FW_OBJECT_NAMES == 1 1981 const char* _formatString =
1982 "(%s) %s: Stopped Com DP logging: partial container %s";
1984 const char* _formatString =
1985 "%s: Stopped Com DP logging: partial container %s";
1989 partialContainer.toString(partialContainerStr);
1992 (void) _logString.
format(
1995 this->m_objName.toChar(),
1998 partialContainerStr.
toChar()
2018 this->timeCaller_out(0, _logTime);
2028 #if FW_AMPCS_COMPATIBLE 2033 static_cast<FwAssertArgType>(_status)
2037 #if FW_AMPCS_COMPATIBLE 2044 static_cast<FwAssertArgType>(_status)
2050 static_cast<FwAssertArgType>(_status)
2063 #if FW_ENABLE_TEXT_LOGGING 2064 if (this->isConnected_LogText_OutputPort(0)) {
2065 #if FW_OBJECT_NAMES == 1 2066 const char* _formatString =
2067 "(%s) %s: Updated Com DP priority to %" PRIu32
"";
2069 const char* _formatString =
2070 "%s: Updated Com DP priority to %" PRIu32
"";
2074 (void) _logString.
format(
2077 this->m_objName.toChar(),
2100 this->timeCaller_out(0, _logTime);
2109 #if FW_AMPCS_COMPATIBLE 2115 static_cast<FwAssertArgType>(_status)
2129 #if FW_ENABLE_TEXT_LOGGING 2130 if (this->isConnected_LogText_OutputPort(0)) {
2131 #if FW_OBJECT_NAMES == 1 2132 const char* _formatString =
2133 "(%s) %s: Cleared NumBuffersLogged counter and DpBufferError throttle";
2135 const char* _formatString =
2136 "%s: Cleared NumBuffersLogged counter and DpBufferError throttle";
2140 (void) _logString.
format(
2143 this->m_objName.toChar(),
2165 this->timeCaller_out(0, _logTime);
2175 #if FW_AMPCS_COMPATIBLE 2180 static_cast<FwAssertArgType>(_status)
2184 #if FW_AMPCS_COMPATIBLE 2191 static_cast<FwAssertArgType>(_status)
2197 static_cast<FwAssertArgType>(_status)
2210 #if FW_ENABLE_TEXT_LOGGING 2211 if (this->isConnected_LogText_OutputPort(0)) {
2212 #if FW_OBJECT_NAMES == 1 2213 const char* _formatString =
2214 "(%s) %s: Failed to start Com DP recording: packetsPerContainer %" PRIu64
" is invalid (must be > 0)";
2216 const char* _formatString =
2217 "%s: Failed to start Com DP recording: packetsPerContainer %" PRIu64
" is invalid (must be > 0)";
2221 (void) _logString.
format(
2224 this->m_objName.toChar(),
2226 "StartRecordingFailed ",
2249 this->m_DpBufferErrorThrottle = 0;
2268 this->timeCaller_out(0, _tlmTime);
2298 static_cast<FwAssertArgType>(_stat)
2320 static_cast<FwAssertArgType>(_stat)
2342 static_cast<FwAssertArgType>(_stat)
2364 static_cast<FwAssertArgType>(_stat)
2397 static_cast<FwAssertArgType>(buffer.
getSize()));
2398 buffer.
setSize(static_cast<U32>(packetSize));
2402 this->productSendOut_out(0, container.
getId(), buffer);
2414 this->timeCaller_out(0, _time);
2429 ComponentIpcSerializableBuffer _msg;
2439 static_cast<FwAssertArgType>(_msgStatus)
2449 static_cast<FwAssertArgType>(_deserStatus)
2452 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
2454 if (_msgType == COMLOGGERDP_COMPONENT_EXIT) {
2459 _deserStatus = _msg.deserializeTo(portNum);
2462 static_cast<FwAssertArgType>(_deserStatus)
2470 _deserStatus = _msg.deserializeTo(data);
2473 static_cast<FwAssertArgType>(_deserStatus)
2478 _deserStatus = _msg.deserializeTo(context);
2481 static_cast<FwAssertArgType>(_deserStatus)
2497 _deserStatus = _msg.deserializeTo(key);
2500 static_cast<FwAssertArgType>(_deserStatus)
2512 case STARTRECORDINGIN_COMLOGGERSTART: {
2515 _deserStatus = _msg.deserializeTo(packetsPerContainer);
2518 static_cast<FwAssertArgType>(_deserStatus)
2523 _deserStatus = _msg.deserializeTo(priority);
2526 static_cast<FwAssertArgType>(_deserStatus)
2531 packetsPerContainer,
2539 case STOPRECORDINGIN_COMLOGGERSTOP: {
2547 case CMD_STARTCOMDP: {
2550 _deserStatus = _msg.deserializeTo(_opCode);
2553 static_cast<FwAssertArgType>(_deserStatus)
2558 _deserStatus = _msg.deserializeTo(_cmdSeq);
2561 static_cast<FwAssertArgType>(_deserStatus)
2566 _deserStatus = _msg.deserializeTo(args);
2569 static_cast<FwAssertArgType>(_deserStatus)
2607 #if FW_CMD_CHECK_RESIDUAL 2620 packetsPerContainer,
2628 case CMD_UPDATEPRIORITY: {
2631 _deserStatus = _msg.deserializeTo(_opCode);
2634 static_cast<FwAssertArgType>(_deserStatus)
2639 _deserStatus = _msg.deserializeTo(_cmdSeq);
2642 static_cast<FwAssertArgType>(_deserStatus)
2647 _deserStatus = _msg.deserializeTo(args);
2650 static_cast<FwAssertArgType>(_deserStatus)
2673 #if FW_CMD_CHECK_RESIDUAL 2693 case CMD_STOPCOMDP: {
2696 _deserStatus = _msg.deserializeTo(_opCode);
2699 static_cast<FwAssertArgType>(_deserStatus)
2704 _deserStatus = _msg.deserializeTo(_cmdSeq);
2707 static_cast<FwAssertArgType>(_deserStatus)
2712 _deserStatus = _msg.deserializeTo(args);
2715 static_cast<FwAssertArgType>(_deserStatus)
2723 #if FW_CMD_CHECK_RESIDUAL 2740 case CMD_CLEAR_COUNTERS: {
2743 _deserStatus = _msg.deserializeTo(_opCode);
2746 static_cast<FwAssertArgType>(_deserStatus)
2751 _deserStatus = _msg.deserializeTo(_cmdSeq);
2754 static_cast<FwAssertArgType>(_deserStatus)
2759 _deserStatus = _msg.deserializeTo(args);
2762 static_cast<FwAssertArgType>(_deserStatus)
2770 #if FW_CMD_CHECK_RESIDUAL 2787 case INT_IF_SCHEDININTERNAL: {
2791 _msg.getDeserializeSizeLeft() == 0,
2812 void ComLoggerDpComponentBase ::
2823 compPtr->cmdIn_handlerBase(
2835 void ComLoggerDpComponentBase ::
2845 compPtr->comIn_handlerBase(
2852 void ComLoggerDpComponentBase ::
2861 compPtr->pingIn_handlerBase(
2867 void ComLoggerDpComponentBase ::
2876 compPtr->schedIn_handlerBase(
2882 void ComLoggerDpComponentBase ::
2883 m_p_startRecordingIn_in(
2892 compPtr->startRecordingIn_handlerBase(
2894 packetsPerContainer,
2899 void ComLoggerDpComponentBase ::
2900 m_p_stopRecordingIn_in(
2907 compPtr->stopRecordingIn_handlerBase(portNum);
2910 #if !FW_DIRECT_PORT_CALLS 2916 #if FW_ENABLE_TEXT_LOGGING 2918 void ComLoggerDpComponentBase ::
2928 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
2929 static_cast<FwAssertArgType>(portNum)
2933 this->m_LogText_OutputPort[portNum].isConnected(),
2934 static_cast<FwAssertArgType>(portNum)
2936 this->m_LogText_OutputPort[portNum].invoke(
2946 void ComLoggerDpComponentBase ::
2954 static_cast<FwAssertArgType>(portNum)
2958 this->m_cmdRegOut_OutputPort[portNum].isConnected(),
2959 static_cast<FwAssertArgType>(portNum)
2961 this->m_cmdRegOut_OutputPort[portNum].
invoke(
2966 void ComLoggerDpComponentBase ::
2976 static_cast<FwAssertArgType>(portNum)
2980 this->m_cmdResponseOut_OutputPort[portNum].isConnected(),
2981 static_cast<FwAssertArgType>(portNum)
2983 this->m_cmdResponseOut_OutputPort[portNum].
invoke(
2990 void ComLoggerDpComponentBase ::
3001 static_cast<FwAssertArgType>(portNum)
3005 this->m_logOut_OutputPort[portNum].isConnected(),
3006 static_cast<FwAssertArgType>(portNum)
3008 this->m_logOut_OutputPort[portNum].
invoke(
3026 static_cast<FwAssertArgType>(portNum)
3030 this->m_productGetOut_OutputPort[portNum].isConnected(),
3031 static_cast<FwAssertArgType>(portNum)
3033 return this->m_productGetOut_OutputPort[portNum].
invoke(
3040 void ComLoggerDpComponentBase ::
3049 static_cast<FwAssertArgType>(portNum)
3053 this->m_productSendOut_OutputPort[portNum].isConnected(),
3054 static_cast<FwAssertArgType>(portNum)
3056 this->m_productSendOut_OutputPort[portNum].
invoke(
3062 void ComLoggerDpComponentBase ::
3070 static_cast<FwAssertArgType>(portNum)
3074 this->m_timeCaller_OutputPort[portNum].isConnected(),
3075 static_cast<FwAssertArgType>(portNum)
3077 this->m_timeCaller_OutputPort[portNum].
invoke(
3082 void ComLoggerDpComponentBase ::
3092 static_cast<FwAssertArgType>(portNum)
3096 this->m_tlmOut_OutputPort[portNum].isConnected(),
3097 static_cast<FwAssertArgType>(portNum)
3099 this->m_tlmOut_OutputPort[portNum].
invoke(
3114 ContainerId::T containerId,
3117 DpContainer& container
3121 const FwDpIdType globalId = baseId + containerId;
3124 const Fw::Success::T status = this->productGetOut_out(0, globalId, size, buffer);
3128 container = DpContainer(globalId, buffer, baseId);
3129 container.setPriority(priority);
Updated data product priority.
Serialization/Deserialization operation was successful.
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void addCallPort(InputTimePort *callPort)
Register an input port.
static constexpr FwIndexType getNum_logOut_OutputPorts()
Channel ID for NumBuffersDropped.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwSizeType CAPACITY
static constexpr FwIndexType getNum_productGetOut_OutputPorts()
void setTimeTag(Fw::Time timeTag)
Set the time tag.
FwIdType FwOpcodeType
The type of a command opcode.
Starts recording ComBuffers at the specified priority.
virtual ~ComLoggerDpComponentBase()
Destroy ComLoggerDpComponentBase object.
void init()
Initialization function.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
FwIdType getIdBase() const
PlatformSizeType FwSizeType
Svc::InputComLoggerStartPort * get_startRecordingIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
U32 FwDpPriorityType
The type of a data product priority.
void dpSend(DpContainer &container, Fw::Time timeTag=Fw::ZERO_TIME)
Send a data product.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
void addCallPort(InputDpSendPort *callPort)
Register an input port.
void setSize(FwSizeType size)
void set_productSendOut_OutputPort(FwIndexType portNum, Fw::InputDpSendPort *port)
Connect port to productSendOut[portNum].
Status
status returned from the queue send function
virtual void schedInInternal_overflowHook()=0
Overflow hook for async input port schedInInternal.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
static constexpr FwIndexType getNum_schedIn_InputPorts()
BYTE pingInPortSize[Svc::PingPortBuffer::CAPACITY]
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
The size of the serial representation.
void log_ACTIVITY_LO_CountersCleared() const
virtual void StartComDp_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, FwSizeType packetsPerContainer, FwDpPriorityType priority)=0
Started recording Com buffers.
No room left in the buffer to serialize data.
void StartComDp_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void invoke(U32 key) const
Invoke a port connection.
void tlmWrite_NumBuffersDropped(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void startRecordingIn_handlerBase(FwIndexType portNum, FwSizeType packetsPerContainer, FwDpPriorityType priority)
Handler base-class function for input port startRecordingIn.
static constexpr FwIndexType getNum_productSendOut_OutputPorts()
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void init()
Initialization function.
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
Enum representing a command response.
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.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
void set_productGetOut_OutputPort(FwIndexType portNum, Fw::InputDpGetPort *port)
Connect port to productGetOut[portNum].
void StopComDp_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
static constexpr FwIndexType getNum_comIn_InputPorts()
Os::Queue m_queue
queue object for active component
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
message to exit active component task
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
SerializeStatus
forward declaration for string
void log_WARNING_HI_DpBufferError(U32 size)
Log event DpBufferError.
Message will block until space is available.
static constexpr FwSizeType CAPACITY
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
virtual void StopComDp_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command StopComDp.
FwIdType FwEventIdType
The type of an event identifier.
Svc::InputComLoggerStopPort * get_stopRecordingIn_InputPort(FwIndexType portNum)
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
A data product container.
static constexpr FwSizeType CAPACITY
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void init()
Initialization function.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
virtual void UpdatePriority_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, FwDpPriorityType priority)=0
Throttle reset count for DpBufferError.
Less important informational events.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
static constexpr FwSizeType CAPACITY
virtual void comIn_preMsgHook(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Pre-message hook for async input port comIn.
A less serious but recoverable event.
static constexpr FwIndexType getNum_pingIn_InputPorts()
Omit length from serialization.
ActiveComponentBase(const char *name)
Constructor.
void init()
Initialization function.
void log_ACTIVITY_LO_PriorityUpdated(FwDpPriorityType priority) const
void invoke(Fw::Time &time) const
Invoke a port connection.
Channel ID for NumBuffersLogged.
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
void invalidateBuffer()
Invalidate the packet buffer.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
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
Stopped recording Com buffers.
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
Fw::SerializeStatus serializeRecord_ComBufferRecord(const U8 *array, FwSizeType size)
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
A serious but recoverable event.
FwSizeType FwSizeStoreType
Errors dispatching messages.
void schedInInternal_internalInterfaceInvoke()
Internal interface base-class function for schedInInternal.
static constexpr FwIndexType getNum_stopRecordingIn_InputPorts()
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
static constexpr FwSizeType getPacketSizeForDataSize(FwSizeType dataSize)
Get the packet size for a given data size.
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.
FwSizeType getPacketSize() const
Get the packet size corresponding to the data size.
Fw::Buffer getBuffer() const
virtual void UpdatePriority_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command UpdatePriority.
virtual void StartComDp_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command StartComDp.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void stopRecordingIn_handlerBase(FwIndexType portNum)
Handler base-class function for input port stopRecordingIn.
virtual void schedInInternal_internalInterfaceHandler()=0
Internal interface handler for schedInInternal.
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
uint8_t U8
8-bit unsigned integer
virtual void StopComDp_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
Updates the priority of the active container (if any) and of all future containers.
FwSizeType getSize() const
Command failed to deserialize.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
Important informational events.
FwIdType FwDpIdType
The type of a data product identifier.
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Clears NumBuffersLogged and NumBuffersDropped counters and DpBufferError event throttle.
A message was sent requesting an exit of the loop.
void log_WARNING_LO_StartRecordingFailed(FwSizeType packetsPerContainer) const
Fw::Success invoke(FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer) const
virtual void startRecordingIn_handler(FwIndexType portNum, FwSizeType packetsPerContainer, FwDpPriorityType priority)=0
Handler for input port startRecordingIn.
PlatformIndexType FwIndexType
virtual void CLEAR_COUNTERS_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CLEAR_COUNTERS.
Failed to start recording due to invalid configuration.
void addCallPort(InputDpGetPort *callPort)
Register an input port.
void addCallPort(InputLogPort *callPort)
Register an input port.
virtual void stopRecordingIn_handler(FwIndexType portNum)=0
Handler for input port stopRecordingIn.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
void init()
Initialization function.
void incNumMsgDropped()
increment the number of messages dropped
virtual void stopRecordingIn_preMsgHook(FwIndexType portNum)
Pre-message hook for async input port stopRecordingIn.
RateGroupDivider component implementation.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
message sent/received okay
bool isConnected_productGetOut_OutputPort(FwIndexType portNum) const
Channel ID for LoggingEnabled.
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
Whether a partial container was sent when recording stopped.
void tlmWrite_NumQueueDrops(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void UpdatePriority_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Message will return with status when space is unavailable.
void log_ACTIVITY_HI_ComDpStarted(FwSizeType packetsPerContainer) const
Implementation of malloc based allocator.
static constexpr FwIndexType getNum_startRecordingIn_InputPorts()
ComLoggerDpComponentBase(const char *compName="")
Construct ComLoggerDpComponentBase object.
void log_ACTIVITY_HI_ComDpStopped(const Svc::ComLoggerDp_PartialContainerStatus &partialContainer) const
void log_WARNING_HI_DpBufferError_ThrottleClear()
Reset throttle value for DpBufferError.
void init()
Initialization function.
void tlmWrite_NumBuffersLogged(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
DpContainer()
Constructor with default initialization.
void invoke(FwDpIdType id, const Fw::Buffer &buffer) const
Invoke a port connection.
virtual void CLEAR_COUNTERS_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
bool isConnected_productSendOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
virtual void startRecordingIn_preMsgHook(FwIndexType portNum, FwSizeType packetsPerContainer, FwDpPriorityType priority)
Pre-message hook for async input port startRecordingIn.
void tlmWrite_LoggingEnabled(bool arg, Fw::Time _tlmTime=Fw::Time()) const
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
void regCommands()
Register commands with the Command Dispatcher.
Channel ID for NumQueueDrops.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
void CLEAR_COUNTERS_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
BYTE cmdPortSize[Fw::CmdPortBuffer::CAPACITY]
static constexpr FwIndexType getNum_timeCaller_OutputPorts()