9 #if FW_ENABLE_TEXT_LOGGING 28 #if !FW_DIRECT_PORT_CALLS 35 this->m_bufferReturnIn_InputPort[port].
init();
40 this->m_bufferReturnIn_InputPort[port].
setPortNum(port);
42 #if FW_OBJECT_NAMES == 1 46 this->m_objName.toChar(),
49 this->m_bufferReturnIn_InputPort[port].setObjName(portName.
toChar());
54 #if !FW_DIRECT_PORT_CALLS 61 this->m_dataIn_InputPort[port].
init();
66 this->m_dataIn_InputPort[port].
setPortNum(port);
68 #if FW_OBJECT_NAMES == 1 72 this->m_objName.toChar(),
75 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
80 #if !FW_DIRECT_PORT_CALLS 87 this->m_dataReturnIn_InputPort[port].
init();
92 this->m_dataReturnIn_InputPort[port].
setPortNum(port);
94 #if FW_OBJECT_NAMES == 1 98 this->m_objName.toChar(),
101 this->m_dataReturnIn_InputPort[port].setObjName(portName.
toChar());
106 #if !FW_DIRECT_PORT_CALLS 113 this->m_decryptIn_InputPort[port].
init();
118 this->m_decryptIn_InputPort[port].
setPortNum(port);
120 #if FW_OBJECT_NAMES == 1 124 this->m_objName.toChar(),
127 this->m_decryptIn_InputPort[port].setObjName(portName.
toChar());
132 #if !FW_DIRECT_PORT_CALLS 139 this->m_logOut_OutputPort[port].
init();
141 #if FW_OBJECT_NAMES == 1 145 this->m_objName.toChar(),
148 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
153 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 157 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
160 this->m_logTextOut_OutputPort[port].
init();
162 #if FW_OBJECT_NAMES == 1 166 this->m_objName.toChar(),
169 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
174 #if !FW_DIRECT_PORT_CALLS 181 this->m_timeCaller_OutputPort[port].
init();
183 #if FW_OBJECT_NAMES == 1 187 this->m_objName.toChar(),
190 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
195 #if !FW_DIRECT_PORT_CALLS 202 this->m_dataOut_OutputPort[port].
init();
204 #if FW_OBJECT_NAMES == 1 208 this->m_objName.toChar(),
211 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
216 #if !FW_DIRECT_PORT_CALLS 223 this->m_dataReturnOut_OutputPort[port].
init();
225 #if FW_OBJECT_NAMES == 1 229 this->m_objName.toChar(),
232 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
237 #if !FW_DIRECT_PORT_CALLS 244 this->m_decryptOut_OutputPort[port].
init();
246 #if FW_OBJECT_NAMES == 1 250 this->m_objName.toChar(),
253 this->m_decryptOut_OutputPort[port].setObjName(portName.
toChar());
258 #if !FW_DIRECT_PORT_CALLS 265 this->m_decryptReturnOut_OutputPort[port].
init();
267 #if FW_OBJECT_NAMES == 1 271 this->m_objName.toChar(),
274 this->m_decryptReturnOut_OutputPort[port].setObjName(portName.
toChar());
279 #if !FW_DIRECT_PORT_CALLS 286 this->m_errorNotify_OutputPort[port].
init();
288 #if FW_OBJECT_NAMES == 1 292 this->m_objName.toChar(),
295 this->m_errorNotify_OutputPort[port].setObjName(portName.
toChar());
301 #if !FW_DIRECT_PORT_CALLS 312 static_cast<FwAssertArgType>(portNum)
315 return &this->m_bufferReturnIn_InputPort[portNum];
323 static_cast<FwAssertArgType>(portNum)
326 return &this->m_dataIn_InputPort[portNum];
334 static_cast<FwAssertArgType>(portNum)
337 return &this->m_dataReturnIn_InputPort[portNum];
345 static_cast<FwAssertArgType>(portNum)
348 return &this->m_decryptIn_InputPort[portNum];
353 #if !FW_DIRECT_PORT_CALLS 367 static_cast<FwAssertArgType>(portNum)
370 this->m_logOut_OutputPort[portNum].
addCallPort(port);
373 #if FW_ENABLE_TEXT_LOGGING == 1 375 void CcsdsSdlsDeframerComponentBase ::
376 set_logTextOut_OutputPort(
382 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
383 static_cast<FwAssertArgType>(portNum)
386 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
399 static_cast<FwAssertArgType>(portNum)
402 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
407 #if !FW_DIRECT_PORT_CALLS 421 static_cast<FwAssertArgType>(portNum)
424 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
435 static_cast<FwAssertArgType>(portNum)
438 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
449 static_cast<FwAssertArgType>(portNum)
452 this->m_decryptOut_OutputPort[portNum].
addCallPort(port);
463 static_cast<FwAssertArgType>(portNum)
466 this->m_decryptReturnOut_OutputPort[portNum].
addCallPort(port);
477 static_cast<FwAssertArgType>(portNum)
480 this->m_errorNotify_OutputPort[portNum].
addCallPort(port);
485 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 494 Fw::InputSerializePort* port
499 static_cast<FwAssertArgType>(portNum)
502 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
505 #if FW_ENABLE_TEXT_LOGGING == 1 507 void CcsdsSdlsDeframerComponentBase ::
508 set_logTextOut_OutputPort(
510 Fw::InputSerializePort* port
514 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
515 static_cast<FwAssertArgType>(portNum)
518 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
526 Fw::InputSerializePort* port
531 static_cast<FwAssertArgType>(portNum)
534 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
539 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 548 Fw::InputSerializePort* port
553 static_cast<FwAssertArgType>(portNum)
556 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
562 Fw::InputSerializePort* port
567 static_cast<FwAssertArgType>(portNum)
570 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
576 Fw::InputSerializePort* port
581 static_cast<FwAssertArgType>(portNum)
584 this->m_decryptOut_OutputPort[portNum].registerSerialPort(port);
590 Fw::InputSerializePort* port
595 static_cast<FwAssertArgType>(portNum)
598 this->m_decryptReturnOut_OutputPort[portNum].registerSerialPort(port);
604 Fw::InputSerializePort* port
609 static_cast<FwAssertArgType>(portNum)
612 this->m_errorNotify_OutputPort[portNum].registerSerialPort(port);
623 Fw::PassiveComponentBase(compName)
634 #if !FW_DIRECT_PORT_CALLS 645 static_cast<FwAssertArgType>(portNum)
648 return this->m_logOut_OutputPort[portNum].
isConnected();
651 #if FW_ENABLE_TEXT_LOGGING == 1 653 bool CcsdsSdlsDeframerComponentBase ::
654 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
const 657 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
658 static_cast<FwAssertArgType>(portNum)
661 return this->m_logTextOut_OutputPort[portNum].isConnected();
671 static_cast<FwAssertArgType>(portNum)
674 return this->m_timeCaller_OutputPort[portNum].
isConnected();
679 #if !FW_DIRECT_PORT_CALLS 690 static_cast<FwAssertArgType>(portNum)
693 return this->m_dataOut_OutputPort[portNum].
isConnected();
701 static_cast<FwAssertArgType>(portNum)
704 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
712 static_cast<FwAssertArgType>(portNum)
715 return this->m_decryptOut_OutputPort[portNum].
isConnected();
723 static_cast<FwAssertArgType>(portNum)
726 return this->m_decryptReturnOut_OutputPort[portNum].
isConnected();
734 static_cast<FwAssertArgType>(portNum)
737 return this->m_errorNotify_OutputPort[portNum].
isConnected();
758 static_cast<FwAssertArgType>(portNum)
779 static_cast<FwAssertArgType>(portNum)
806 static_cast<FwAssertArgType>(portNum)
828 static_cast<FwAssertArgType>(portNum)
840 #if !FW_DIRECT_PORT_CALLS 855 static_cast<FwAssertArgType>(portNum)
859 this->m_dataOut_OutputPort[portNum].isConnected(),
860 static_cast<FwAssertArgType>(portNum)
862 this->m_dataOut_OutputPort[portNum].
invoke(
877 static_cast<FwAssertArgType>(portNum)
881 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
882 static_cast<FwAssertArgType>(portNum)
884 this->m_dataReturnOut_OutputPort[portNum].
invoke(
893 U16 securityAssociationIndex,
900 static_cast<FwAssertArgType>(portNum)
904 this->m_decryptOut_OutputPort[portNum].isConnected(),
905 static_cast<FwAssertArgType>(portNum)
907 this->m_decryptOut_OutputPort[portNum].
invoke(
908 securityAssociationIndex,
923 static_cast<FwAssertArgType>(portNum)
927 this->m_decryptReturnOut_OutputPort[portNum].isConnected(),
928 static_cast<FwAssertArgType>(portNum)
930 this->m_decryptReturnOut_OutputPort[portNum].
invoke(
944 static_cast<FwAssertArgType>(portNum)
948 this->m_errorNotify_OutputPort[portNum].isConnected(),
949 static_cast<FwAssertArgType>(portNum)
951 this->m_errorNotify_OutputPort[portNum].
invoke(
968 this->timeCaller_out(0, _logTime);
977 #if FW_AMPCS_COMPATIBLE 983 static_cast<FwAssertArgType>(_status)
997 #if FW_ENABLE_TEXT_LOGGING 998 if (this->isConnected_logTextOut_OutputPort(0)) {
999 #if FW_OBJECT_NAMES == 1 1000 const char* _formatString =
1001 "(%s) %s: Failed to deframe security association index: insufficient length";
1003 const char* _formatString =
1004 "%s: Failed to deframe security association index: insufficient length";
1008 (void) _logString.
format(
1011 this->m_objName.toChar(),
1013 "InsufficientLength " 1016 this->logTextOut_out(
1033 this->timeCaller_out(0, _logTime);
1043 #if FW_AMPCS_COMPATIBLE 1048 static_cast<FwAssertArgType>(_status)
1052 #if FW_AMPCS_COMPATIBLE 1059 static_cast<FwAssertArgType>(_status)
1065 static_cast<FwAssertArgType>(_status)
1078 #if FW_ENABLE_TEXT_LOGGING 1079 if (this->isConnected_logTextOut_OutputPort(0)) {
1080 #if FW_OBJECT_NAMES == 1 1081 const char* _formatString =
1082 "(%s) %s: Failed to decrypt frame: %s";
1084 const char* _formatString =
1085 "%s: Failed to decrypt frame: %s";
1089 status.toString(statusStr);
1092 (void) _logString.
format(
1095 this->m_objName.toChar(),
1097 "DecryptionFailed ",
1101 this->logTextOut_out(
1121 this->timeCaller_out(0, _time);
1139 this->m_guardedPortMutex.
lock();
1145 this->m_guardedPortMutex.
unLock();
1152 void CcsdsSdlsDeframerComponentBase ::
1153 m_p_bufferReturnIn_in(
1169 void CcsdsSdlsDeframerComponentBase ::
1179 compPtr->dataIn_handlerBase(
1186 void CcsdsSdlsDeframerComponentBase ::
1187 m_p_dataReturnIn_in(
1196 compPtr->dataReturnIn_handlerBase(
1203 void CcsdsSdlsDeframerComponentBase ::
1214 compPtr->decryptIn_handlerBase(
1222 #if !FW_DIRECT_PORT_CALLS 1228 void CcsdsSdlsDeframerComponentBase ::
1239 static_cast<FwAssertArgType>(portNum)
1243 this->m_logOut_OutputPort[portNum].isConnected(),
1244 static_cast<FwAssertArgType>(portNum)
1246 this->m_logOut_OutputPort[portNum].
invoke(
1254 #if FW_ENABLE_TEXT_LOGGING 1256 void CcsdsSdlsDeframerComponentBase ::
1266 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
1267 static_cast<FwAssertArgType>(portNum)
1271 this->m_logTextOut_OutputPort[portNum].isConnected(),
1272 static_cast<FwAssertArgType>(portNum)
1274 this->m_logTextOut_OutputPort[portNum].invoke(
1284 void CcsdsSdlsDeframerComponentBase ::
1292 static_cast<FwAssertArgType>(portNum)
1296 this->m_timeCaller_OutputPort[portNum].isConnected(),
1297 static_cast<FwAssertArgType>(portNum)
1299 this->m_timeCaller_OutputPort[portNum].
invoke(
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
static constexpr FwIndexType getNum_decryptReturnOut_OutputPorts()
bool isConnected_errorNotify_OutputPort(FwIndexType portNum) const
bool isConnected_decryptOut_OutputPort(FwIndexType portNum) const
FwIdType getIdBase() const
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
virtual void bufferReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port bufferReturnIn.
virtual void lock()
Lock the guarded mutex.
void invoke(U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
virtual void decryptIn_handler(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port decryptIn.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void set_decryptOut_OutputPort(FwIndexType portNum, Svc::Ccsds::InputCcsdsSdlsEncryptionPort *port)
Connect port to decryptOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_logOut_OutputPorts()
static constexpr FwIndexType getNum_errorNotify_OutputPorts()
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
void addCallPort(InputCcsdsSdlsEncryptionPort *callPort)
Register an input port.
No time base has been established (Required)
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
void decryptIn_handlerBase(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port decryptIn.
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void decryptReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port decryptReturnOut.
void set_decryptReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to decryptReturnOut[portNum].
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
Auto-generated base for CcsdsSdlsDeframer component.
void init()
Object initializer.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SerializeStatus
forward declaration for string
void decryptOut_out(FwIndexType portNum, U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port decryptOut.
void addCallPort(InputErrorNotifyPort *callPort)
Register an input port.
FwIdType FwEventIdType
The type of an event identifier.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
void invoke(const Svc::Ccsds::FrameError &errorCode) const
Invoke a port connection.
static constexpr FwIndexType getNum_decryptIn_InputPorts()
Svc::InputComDataWithContextPort * get_bufferReturnIn_InputPort(FwIndexType portNum)
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.
void invoke(Fw::Time &time) const
Invoke a port connection.
static constexpr FwIndexType getNum_dataIn_InputPorts()
void unLock()
unlock the mutex and assert success
virtual ~CcsdsSdlsDeframerComponentBase()
Destroy CcsdsSdlsDeframerComponentBase object.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
void errorNotify_out(FwIndexType portNum, const Svc::Ccsds::FrameError &errorCode) const
Invoke output port errorNotify.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void log_WARNING_HI_InsufficientLength() const
A serious but recoverable event.
void init()
Initialization function.
const char * toChar() const
Convert to a C-style char*.
Enum representing event severity.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void lock()
lock the mutex and assert success
void init()
Initialization function.
void set_errorNotify_OutputPort(FwIndexType portNum, Svc::Ccsds::InputErrorNotifyPort *port)
Connect port to errorNotify[portNum].
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
static constexpr FwIndexType getNum_decryptOut_OutputPorts()
PlatformIndexType FwIndexType
void addCallPort(InputLogPort *callPort)
Register an input port.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
Type used to pass context info between components during framing/deframing.
static constexpr FwIndexType getNum_bufferReturnIn_InputPorts()
RateGroupDivider component implementation.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
CcsdsSdlsDeframerComponentBase(const char *compName="")
Construct CcsdsSdlsDeframerComponentBase object.
void bufferReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port bufferReturnIn.
The size of the serial representation.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
virtual void unLock()
Unlock the guarded mutex.
Implementation of malloc based allocator.
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
void log_WARNING_HI_DecryptionFailed(const Svc::Ccsds::SdlsStatus &status) const
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
bool isConnected_decryptReturnOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataOut_OutputPorts()
Svc::Ccsds::InputCcsdsSdlsDataPort * get_decryptIn_InputPort(FwIndexType portNum)
Event raised when the frame is not long enough for the security association index of 16bits...
Event raised when the decryption helper fails.
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()