10 #if FW_ENABLE_TEXT_LOGGING 29 #if !FW_DIRECT_PORT_CALLS 36 this->m_cmdIn_InputPort[port].
init();
41 this->m_cmdIn_InputPort[port].
setPortNum(port);
43 #if FW_OBJECT_NAMES == 1 47 this->m_objName.toChar(),
50 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
55 #if !FW_DIRECT_PORT_CALLS 62 this->m_bufferReturnIn_InputPort[port].
init();
67 this->m_bufferReturnIn_InputPort[port].
setPortNum(port);
69 #if FW_OBJECT_NAMES == 1 73 this->m_objName.toChar(),
76 this->m_bufferReturnIn_InputPort[port].setObjName(portName.
toChar());
81 #if !FW_DIRECT_PORT_CALLS 88 this->m_comStatusIn_InputPort[port].
init();
93 this->m_comStatusIn_InputPort[port].
setPortNum(port);
95 #if FW_OBJECT_NAMES == 1 99 this->m_objName.toChar(),
102 this->m_comStatusIn_InputPort[port].setObjName(portName.
toChar());
107 #if !FW_DIRECT_PORT_CALLS 114 this->m_dataIn_InputPort[port].
init();
119 this->m_dataIn_InputPort[port].
setPortNum(port);
121 #if FW_OBJECT_NAMES == 1 125 this->m_objName.toChar(),
128 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
133 #if !FW_DIRECT_PORT_CALLS 140 this->m_dataReturnIn_InputPort[port].
init();
145 this->m_dataReturnIn_InputPort[port].
setPortNum(port);
147 #if FW_OBJECT_NAMES == 1 151 this->m_objName.toChar(),
154 this->m_dataReturnIn_InputPort[port].setObjName(portName.
toChar());
159 #if !FW_DIRECT_PORT_CALLS 166 this->m_encryptIn_InputPort[port].
init();
171 this->m_encryptIn_InputPort[port].
setPortNum(port);
173 #if FW_OBJECT_NAMES == 1 177 this->m_objName.toChar(),
180 this->m_encryptIn_InputPort[port].setObjName(portName.
toChar());
185 #if !FW_DIRECT_PORT_CALLS 192 this->m_cmdRegOut_OutputPort[port].
init();
194 #if FW_OBJECT_NAMES == 1 198 this->m_objName.toChar(),
201 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
206 #if !FW_DIRECT_PORT_CALLS 213 this->m_cmdResponseOut_OutputPort[port].
init();
215 #if FW_OBJECT_NAMES == 1 219 this->m_objName.toChar(),
222 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
227 #if !FW_DIRECT_PORT_CALLS 234 this->m_logOut_OutputPort[port].
init();
236 #if FW_OBJECT_NAMES == 1 240 this->m_objName.toChar(),
243 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
248 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 252 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
255 this->m_logTextOut_OutputPort[port].
init();
257 #if FW_OBJECT_NAMES == 1 261 this->m_objName.toChar(),
264 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
269 #if !FW_DIRECT_PORT_CALLS 276 this->m_prmGetOut_OutputPort[port].
init();
278 #if FW_OBJECT_NAMES == 1 282 this->m_objName.toChar(),
285 this->m_prmGetOut_OutputPort[port].setObjName(portName.
toChar());
290 #if !FW_DIRECT_PORT_CALLS 297 this->m_prmSetOut_OutputPort[port].
init();
299 #if FW_OBJECT_NAMES == 1 303 this->m_objName.toChar(),
306 this->m_prmSetOut_OutputPort[port].setObjName(portName.
toChar());
311 #if !FW_DIRECT_PORT_CALLS 318 this->m_timeCaller_OutputPort[port].
init();
320 #if FW_OBJECT_NAMES == 1 324 this->m_objName.toChar(),
327 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
332 #if !FW_DIRECT_PORT_CALLS 339 this->m_bufferAllocate_OutputPort[port].
init();
341 #if FW_OBJECT_NAMES == 1 345 this->m_objName.toChar(),
348 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
353 #if !FW_DIRECT_PORT_CALLS 360 this->m_bufferDeallocate_OutputPort[port].
init();
362 #if FW_OBJECT_NAMES == 1 366 this->m_objName.toChar(),
369 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
374 #if !FW_DIRECT_PORT_CALLS 381 this->m_comStatusOut_OutputPort[port].
init();
383 #if FW_OBJECT_NAMES == 1 387 this->m_objName.toChar(),
390 this->m_comStatusOut_OutputPort[port].setObjName(portName.
toChar());
395 #if !FW_DIRECT_PORT_CALLS 402 this->m_dataOut_OutputPort[port].
init();
404 #if FW_OBJECT_NAMES == 1 408 this->m_objName.toChar(),
411 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
416 #if !FW_DIRECT_PORT_CALLS 423 this->m_dataReturnOut_OutputPort[port].
init();
425 #if FW_OBJECT_NAMES == 1 429 this->m_objName.toChar(),
432 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
437 #if !FW_DIRECT_PORT_CALLS 444 this->m_encryptOut_OutputPort[port].
init();
446 #if FW_OBJECT_NAMES == 1 450 this->m_objName.toChar(),
453 this->m_encryptOut_OutputPort[port].setObjName(portName.
toChar());
458 #if !FW_DIRECT_PORT_CALLS 465 this->m_encryptReturnOut_OutputPort[port].
init();
467 #if FW_OBJECT_NAMES == 1 471 this->m_objName.toChar(),
474 this->m_encryptReturnOut_OutputPort[port].setObjName(portName.
toChar());
480 #if !FW_DIRECT_PORT_CALLS 491 static_cast<FwAssertArgType>(portNum)
494 return &this->m_cmdIn_InputPort[portNum];
499 #if !FW_DIRECT_PORT_CALLS 510 static_cast<FwAssertArgType>(portNum)
513 return &this->m_bufferReturnIn_InputPort[portNum];
521 static_cast<FwAssertArgType>(portNum)
524 return &this->m_comStatusIn_InputPort[portNum];
532 static_cast<FwAssertArgType>(portNum)
535 return &this->m_dataIn_InputPort[portNum];
543 static_cast<FwAssertArgType>(portNum)
546 return &this->m_dataReturnIn_InputPort[portNum];
554 static_cast<FwAssertArgType>(portNum)
557 return &this->m_encryptIn_InputPort[portNum];
562 #if !FW_DIRECT_PORT_CALLS 576 static_cast<FwAssertArgType>(portNum)
579 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
590 static_cast<FwAssertArgType>(portNum)
593 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
604 static_cast<FwAssertArgType>(portNum)
607 this->m_logOut_OutputPort[portNum].
addCallPort(port);
610 #if FW_ENABLE_TEXT_LOGGING == 1 612 void CcsdsSdlsFramerComponentBase ::
613 set_logTextOut_OutputPort(
619 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
620 static_cast<FwAssertArgType>(portNum)
623 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
636 static_cast<FwAssertArgType>(portNum)
639 this->m_prmGetOut_OutputPort[portNum].
addCallPort(port);
650 static_cast<FwAssertArgType>(portNum)
653 this->m_prmSetOut_OutputPort[portNum].
addCallPort(port);
664 static_cast<FwAssertArgType>(portNum)
667 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
672 #if !FW_DIRECT_PORT_CALLS 686 static_cast<FwAssertArgType>(portNum)
689 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
700 static_cast<FwAssertArgType>(portNum)
703 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
714 static_cast<FwAssertArgType>(portNum)
717 this->m_comStatusOut_OutputPort[portNum].
addCallPort(port);
728 static_cast<FwAssertArgType>(portNum)
731 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
742 static_cast<FwAssertArgType>(portNum)
745 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
756 static_cast<FwAssertArgType>(portNum)
759 this->m_encryptOut_OutputPort[portNum].
addCallPort(port);
770 static_cast<FwAssertArgType>(portNum)
773 this->m_encryptReturnOut_OutputPort[portNum].
addCallPort(port);
778 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 787 Fw::InputSerializePort* port
792 static_cast<FwAssertArgType>(portNum)
795 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
801 Fw::InputSerializePort* port
806 static_cast<FwAssertArgType>(portNum)
809 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
815 Fw::InputSerializePort* port
820 static_cast<FwAssertArgType>(portNum)
823 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
826 #if FW_ENABLE_TEXT_LOGGING == 1 828 void CcsdsSdlsFramerComponentBase ::
829 set_logTextOut_OutputPort(
831 Fw::InputSerializePort* port
835 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
836 static_cast<FwAssertArgType>(portNum)
839 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
847 Fw::InputSerializePort* port
852 static_cast<FwAssertArgType>(portNum)
855 this->m_prmSetOut_OutputPort[portNum].registerSerialPort(port);
861 Fw::InputSerializePort* port
866 static_cast<FwAssertArgType>(portNum)
869 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
874 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 883 Fw::InputSerializePort* port
888 static_cast<FwAssertArgType>(portNum)
891 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
897 Fw::InputSerializePort* port
902 static_cast<FwAssertArgType>(portNum)
905 this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
911 Fw::InputSerializePort* port
916 static_cast<FwAssertArgType>(portNum)
919 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
925 Fw::InputSerializePort* port
930 static_cast<FwAssertArgType>(portNum)
933 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
939 Fw::InputSerializePort* port
944 static_cast<FwAssertArgType>(portNum)
947 this->m_encryptOut_OutputPort[portNum].registerSerialPort(port);
953 Fw::InputSerializePort* port
958 static_cast<FwAssertArgType>(portNum)
961 this->m_encryptReturnOut_OutputPort[portNum].registerSerialPort(port);
1003 this->m_param_SA_INDEX_valid = this->prmGetOut_out(
1009 this->m_paramLock.
lock();
1022 this->m_SA_INDEX = 1;
1025 this->m_paramLock.
unlock();
1026 this->
parameterLoaded(PARAMID_SA_INDEX, this->m_param_SA_INDEX_valid);
1038 Fw::PassiveComponentBase(compName)
1040 this->m_EncryptionFailedThrottle = 0;
1041 this->m_BufferAllocationFailedThrottle = 0;
1043 this->m_EncryptionFailedThrottleTime =
Fw::Time();
1044 this->m_BufferAllocationFailedThrottleTime =
Fw::Time();
1053 #if !FW_DIRECT_PORT_CALLS 1064 static_cast<FwAssertArgType>(portNum)
1067 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
1075 static_cast<FwAssertArgType>(portNum)
1078 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
1086 static_cast<FwAssertArgType>(portNum)
1089 return this->m_logOut_OutputPort[portNum].
isConnected();
1092 #if FW_ENABLE_TEXT_LOGGING == 1 1094 bool CcsdsSdlsFramerComponentBase ::
1095 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
const 1098 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
1099 static_cast<FwAssertArgType>(portNum)
1102 return this->m_logTextOut_OutputPort[portNum].isConnected();
1112 static_cast<FwAssertArgType>(portNum)
1115 return this->m_prmGetOut_OutputPort[portNum].
isConnected();
1123 static_cast<FwAssertArgType>(portNum)
1126 return this->m_prmSetOut_OutputPort[portNum].
isConnected();
1134 static_cast<FwAssertArgType>(portNum)
1137 return this->m_timeCaller_OutputPort[portNum].
isConnected();
1142 #if !FW_DIRECT_PORT_CALLS 1153 static_cast<FwAssertArgType>(portNum)
1156 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
1164 static_cast<FwAssertArgType>(portNum)
1167 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
1175 static_cast<FwAssertArgType>(portNum)
1178 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
1186 static_cast<FwAssertArgType>(portNum)
1189 return this->m_dataOut_OutputPort[portNum].
isConnected();
1197 static_cast<FwAssertArgType>(portNum)
1200 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
1208 static_cast<FwAssertArgType>(portNum)
1211 return this->m_encryptOut_OutputPort[portNum].
isConnected();
1219 static_cast<FwAssertArgType>(portNum)
1222 return this->m_encryptReturnOut_OutputPort[portNum].
isConnected();
1243 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
1246 switch (opCode - idBase) {
1288 static_cast<FwAssertArgType>(portNum)
1308 static_cast<FwAssertArgType>(portNum)
1328 static_cast<FwAssertArgType>(portNum)
1349 static_cast<FwAssertArgType>(portNum)
1371 static_cast<FwAssertArgType>(portNum)
1383 #if !FW_DIRECT_PORT_CALLS 1397 static_cast<FwAssertArgType>(portNum)
1401 this->m_bufferAllocate_OutputPort[portNum].isConnected(),
1402 static_cast<FwAssertArgType>(portNum)
1404 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
1417 static_cast<FwAssertArgType>(portNum)
1421 this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
1422 static_cast<FwAssertArgType>(portNum)
1424 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
1437 static_cast<FwAssertArgType>(portNum)
1441 this->m_comStatusOut_OutputPort[portNum].isConnected(),
1442 static_cast<FwAssertArgType>(portNum)
1444 this->m_comStatusOut_OutputPort[portNum].
invoke(
1458 static_cast<FwAssertArgType>(portNum)
1462 this->m_dataOut_OutputPort[portNum].isConnected(),
1463 static_cast<FwAssertArgType>(portNum)
1465 this->m_dataOut_OutputPort[portNum].
invoke(
1480 static_cast<FwAssertArgType>(portNum)
1484 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
1485 static_cast<FwAssertArgType>(portNum)
1487 this->m_dataReturnOut_OutputPort[portNum].
invoke(
1496 U16 securityAssociationIndex,
1503 static_cast<FwAssertArgType>(portNum)
1507 this->m_encryptOut_OutputPort[portNum].isConnected(),
1508 static_cast<FwAssertArgType>(portNum)
1510 this->m_encryptOut_OutputPort[portNum].
invoke(
1511 securityAssociationIndex,
1526 static_cast<FwAssertArgType>(portNum)
1530 this->m_encryptReturnOut_OutputPort[portNum].isConnected(),
1531 static_cast<FwAssertArgType>(portNum)
1533 this->m_encryptReturnOut_OutputPort[portNum].
invoke(
1553 this->cmdResponseOut_out(0, opCode, cmdSeq, response);
1566 this->timeCaller_out(0, _logTime);
1579 this->m_EncryptionFailedThrottle = 0;
1587 if (this->m_EncryptionFailedThrottle == 0) {
1589 this->m_EncryptionFailedThrottleTime = _logTime;
1593 this->m_EncryptionFailedThrottle++;
1601 #if FW_AMPCS_COMPATIBLE 1606 static_cast<FwAssertArgType>(_status)
1610 #if FW_AMPCS_COMPATIBLE 1617 static_cast<FwAssertArgType>(_status)
1623 static_cast<FwAssertArgType>(_status)
1636 #if FW_ENABLE_TEXT_LOGGING 1637 if (this->isConnected_logTextOut_OutputPort(0)) {
1638 #if FW_OBJECT_NAMES == 1 1639 const char* _formatString =
1640 "(%s) %s: Failed to encrypt frame: %s";
1642 const char* _formatString =
1643 "%s: Failed to encrypt frame: %s";
1647 status.toString(statusStr);
1650 (void) _logString.
format(
1653 this->m_objName.toChar(),
1655 "EncryptionFailed ",
1659 this->logTextOut_out(
1676 this->timeCaller_out(0, _logTime);
1689 this->m_BufferAllocationFailedThrottle = 0;
1697 if (this->m_BufferAllocationFailedThrottle == 0) {
1699 this->m_BufferAllocationFailedThrottleTime = _logTime;
1703 this->m_BufferAllocationFailedThrottle++;
1711 #if FW_AMPCS_COMPATIBLE 1716 static_cast<FwAssertArgType>(_status)
1720 #if FW_AMPCS_COMPATIBLE 1727 static_cast<FwAssertArgType>(_status)
1733 static_cast<FwAssertArgType>(_status)
1746 #if FW_ENABLE_TEXT_LOGGING 1747 if (this->isConnected_logTextOut_OutputPort(0)) {
1748 #if FW_OBJECT_NAMES == 1 1749 const char* _formatString =
1750 "(%s) %s: Failed to allocate frame buffer of size %" PRIu64
"";
1752 const char* _formatString =
1753 "%s: Failed to allocate frame buffer of size %" PRIu64
"";
1757 (void) _logString.
format(
1760 this->m_objName.toChar(),
1762 "BufferAllocationFailed ",
1766 this->logTextOut_out(
1788 this->m_EncryptionFailedThrottle = 0;
1791 this->m_EncryptionFailedThrottleTime =
Fw::Time(0, 0);
1802 this->m_BufferAllocationFailedThrottle = 0;
1805 this->m_BufferAllocationFailedThrottleTime =
Fw::Time(0, 0);
1844 this->m_paramLock.
lock();
1845 valid = this->m_param_SA_INDEX_valid;
1847 _local = this->m_SA_INDEX;
1849 this->m_paramLock.
unlock();
1862 this->timeCaller_out(0, _time);
1874 void CcsdsSdlsFramerComponentBase ::
1897 void CcsdsSdlsFramerComponentBase ::
1898 m_p_bufferReturnIn_in(
1907 compPtr->bufferReturnIn_handlerBase(
1914 void CcsdsSdlsFramerComponentBase ::
1923 compPtr->comStatusIn_handlerBase(
1929 void CcsdsSdlsFramerComponentBase ::
1939 compPtr->dataIn_handlerBase(
1946 void CcsdsSdlsFramerComponentBase ::
1947 m_p_dataReturnIn_in(
1956 compPtr->dataReturnIn_handlerBase(
1963 void CcsdsSdlsFramerComponentBase ::
1974 compPtr->encryptIn_handlerBase(
1982 #if !FW_DIRECT_PORT_CALLS 1988 void CcsdsSdlsFramerComponentBase ::
1996 static_cast<FwAssertArgType>(portNum)
2000 this->m_cmdRegOut_OutputPort[portNum].isConnected(),
2001 static_cast<FwAssertArgType>(portNum)
2003 this->m_cmdRegOut_OutputPort[portNum].
invoke(
2008 void CcsdsSdlsFramerComponentBase ::
2018 static_cast<FwAssertArgType>(portNum)
2022 this->m_cmdResponseOut_OutputPort[portNum].isConnected(),
2023 static_cast<FwAssertArgType>(portNum)
2025 this->m_cmdResponseOut_OutputPort[portNum].
invoke(
2032 void CcsdsSdlsFramerComponentBase ::
2043 static_cast<FwAssertArgType>(portNum)
2047 this->m_logOut_OutputPort[portNum].isConnected(),
2048 static_cast<FwAssertArgType>(portNum)
2050 this->m_logOut_OutputPort[portNum].
invoke(
2058 #if FW_ENABLE_TEXT_LOGGING 2060 void CcsdsSdlsFramerComponentBase ::
2070 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
2071 static_cast<FwAssertArgType>(portNum)
2075 this->m_logTextOut_OutputPort[portNum].isConnected(),
2076 static_cast<FwAssertArgType>(portNum)
2078 this->m_logTextOut_OutputPort[portNum].invoke(
2097 static_cast<FwAssertArgType>(portNum)
2101 this->m_prmGetOut_OutputPort[portNum].isConnected(),
2102 static_cast<FwAssertArgType>(portNum)
2104 return this->m_prmGetOut_OutputPort[portNum].
invoke(
2110 void CcsdsSdlsFramerComponentBase ::
2119 static_cast<FwAssertArgType>(portNum)
2123 this->m_prmSetOut_OutputPort[portNum].isConnected(),
2124 static_cast<FwAssertArgType>(portNum)
2126 this->m_prmSetOut_OutputPort[portNum].
invoke(
2132 void CcsdsSdlsFramerComponentBase ::
2140 static_cast<FwAssertArgType>(portNum)
2144 this->m_timeCaller_OutputPort[portNum].isConnected(),
2145 static_cast<FwAssertArgType>(portNum)
2147 this->m_timeCaller_OutputPort[portNum].
invoke(
2168 this->m_paramLock.
lock();
2169 this->m_SA_INDEX = _localVal;
2171 this->m_paramLock.
unlock();
2183 paramSave_SA_INDEX()
2192 this->m_paramLock.
lock();
2196 this->m_paramLock.
unlock();
2201 this->prmSetOut_out(
Serialization/Deserialization operation was successful.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void addCallPort(InputTimePort *callPort)
Register an input port.
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
FwIdType FwOpcodeType
The type of a command opcode.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
#define FW_PARAM_OK(paramValid)
FwIdType getIdBase() const
PlatformSizeType FwSizeType
bool isConnected_encryptOut_OutputPort(FwIndexType portNum) const
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void bufferReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port bufferReturnIn.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
void invoke(U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
static constexpr FwIndexType getNum_dataIn_InputPorts()
Throttle reset count for EncryptionFailed.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
FwIdType FwPrmIdType
The type of a parameter identifier.
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
bool isConnected_encryptReturnOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_bufferDeallocate_OutputPorts()
Auto-generated base for CcsdsSdlsFramer component.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
static constexpr FwIndexType getNum_bufferReturnIn_InputPorts()
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
static constexpr FwIndexType getNum_encryptIn_InputPorts()
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
virtual void parameterUpdated(FwPrmIdType id)
Called whenever a parameter is updated.
static constexpr FwIndexType getNum_encryptOut_OutputPorts()
Svc::InputComDataWithContextPort * get_bufferReturnIn_InputPort(FwIndexType portNum)
Enum representing a command response.
void addCallPort(InputCcsdsSdlsEncryptionPort *callPort)
Register an input port.
No time base has been established (Required)
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
CcsdsSdlsFramerComponentBase(const char *compName="")
Construct CcsdsSdlsFramerComponentBase object.
Opcode to save parameter SA_INDEX.
U16 paramGet_SA_INDEX(Fw::ParamValid &valid)
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
Event raised when the allocated frame buffer is too small for the security association index and encr...
void encryptOut_out(FwIndexType portNum, U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port encryptOut.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
void log_WARNING_HI_BufferAllocationFailed(FwSizeType allocationSize)
void init()
Initialization function.
Svc::Ccsds::InputCcsdsSdlsDataPort * get_encryptIn_InputPort(FwIndexType portNum)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
void init()
Object initializer.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SerializeStatus
forward declaration for string
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
Event raised when the encryption helper fails.
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
FwIdType FwEventIdType
The type of an event identifier.
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferDeallocate.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void init()
Initialization function.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Data was the wrong format (e.g. wrong packet type)
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port connection.
Fw::ParamValid invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void init()
Initialization function.
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
void invoke(Fw::Time &time) const
Invoke a port connection.
virtual ~CcsdsSdlsFramerComponentBase()
Destroy CcsdsSdlsFramerComponentBase object.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
void invoke(Fw::Success &condition) const
Invoke a port connection.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
Security association index used when the incoming frame context does not specify one.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
A serious but recoverable event.
void encryptReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port encryptReturnOut.
void log_WARNING_HI_EncryptionFailed(const Svc::Ccsds::SdlsStatus &status)
void init()
Initialization function.
const char * toChar() const
Convert to a C-style char*.
void encryptIn_handlerBase(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port encryptIn.
Enum representing event severity.
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
Command successfully executed.
static constexpr FwIndexType getNum_bufferAllocate_OutputPorts()
void loadParameters()
Load the parameters from a parameter source.
void log_WARNING_HI_BufferAllocationFailed_ThrottleClear()
Reset throttle value for BufferAllocationFailed.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
Fw::Buffer invoke(FwSizeType size) const
virtual void parametersLoaded()
Called whenever parameters are loaded.
void lock()
lock the mutex and assert success
void init()
Initialization function.
void set_encryptReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to encryptReturnOut[portNum].
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
Command had execution error.
void init()
Initialization function.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
void set_encryptOut_OutputPort(FwIndexType portNum, Svc::Ccsds::InputCcsdsSdlsEncryptionPort *port)
Connect port to encryptOut[portNum].
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_EncryptionFailed_ThrottleClear()
Reset throttle value for EncryptionFailed.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_encryptReturnOut_OutputPorts()
PlatformIndexType FwIndexType
virtual void bufferReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port bufferReturnIn.
locks a mutex within the current scope
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
void addCallPort(InputLogPort *callPort)
Register an input port.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
Throttle reset count for BufferAllocationFailed.
void init()
Initialization function.
Type used to pass context info between components during framing/deframing.
void unlock()
alias for unLock to meet BasicLockable requirements
void init()
Initialization function.
Command failed validation.
RateGroupDivider component implementation.
Enum representing parameter validity.
void invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
Invoke a port connection.
Opcode to set parameter SA_INDEX.
The size of the serial representation.
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum) const
void regCommands()
Register commands with the Command Dispatcher.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
Implementation of malloc based allocator.
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
void init()
Initialization function.
void init()
Initialization function.
void init()
Initialization function.
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_logOut_OutputPorts()
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
virtual void encryptIn_handler(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port encryptIn.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
virtual void parameterLoaded(FwPrmIdType id, Fw::ParamValid valid)
Called for each parameter when parameters are loaded.