7 #ifndef Svc_Ccsds_CcsdsSdlsFramerComponentAc_HPP 8 #define Svc_Ccsds_CcsdsSdlsFramerComponentAc_HPP 23 #if !FW_DIRECT_PORT_CALLS 26 #if !FW_DIRECT_PORT_CALLS 144 #if !FW_DIRECT_PORT_CALLS 161 #if !FW_DIRECT_PORT_CALLS 206 #if !FW_DIRECT_PORT_CALLS 232 #if FW_ENABLE_TEXT_LOGGING == 1 235 void set_logTextOut_OutputPort(
262 #if !FW_DIRECT_PORT_CALLS 314 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 325 Fw::InputSerializePort* port
331 Fw::InputSerializePort* port
337 Fw::InputSerializePort* port
340 #if FW_ENABLE_TEXT_LOGGING == 1 343 void set_logTextOut_OutputPort(
345 Fw::InputSerializePort* port
353 Fw::InputSerializePort* port
359 Fw::InputSerializePort* port
364 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 375 Fw::InputSerializePort* port
381 Fw::InputSerializePort* port
387 Fw::InputSerializePort* port
393 Fw::InputSerializePort* port
399 Fw::InputSerializePort* port
405 Fw::InputSerializePort* port
440 const char* compName =
"" 527 #if FW_ENABLE_TEXT_LOGGING == 1 532 static constexpr
FwIndexType getNum_logTextOut_OutputPorts() {
641 #if FW_ENABLE_TEXT_LOGGING == 1 646 bool isConnected_logTextOut_OutputPort(
728 #if FW_DIRECT_PORT_CALLS 789 #if FW_DIRECT_PORT_CALLS 877 U16 securityAssociationIndex,
993 static void m_p_cmdIn_in(
1008 static void m_p_bufferReturnIn_in(
1016 static void m_p_comStatusIn_in(
1023 static void m_p_dataIn_in(
1031 static void m_p_dataReturnIn_in(
1039 static void m_p_encryptIn_in(
1060 void cmdResponseOut_out(
1076 #if FW_ENABLE_TEXT_LOGGING 1079 void logTextOut_out(
1105 void timeCaller_out(
1134 #if !FW_DIRECT_PORT_CALLS 1147 #if !FW_DIRECT_PORT_CALLS 1172 #if !FW_DIRECT_PORT_CALLS 1189 #if FW_ENABLE_TEXT_LOGGING == 1 1207 #if !FW_DIRECT_PORT_CALLS 1248 Fw::Time m_EncryptionFailedThrottleTime;
1254 Fw::Time m_BufferAllocationFailedThrottleTime;
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
friend class CcsdsSdlsFramerTesterBase
Friend class tester to support autocoded test harness.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
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].
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].
static constexpr FwIndexType getNum_dataIn_InputPorts()
Throttle reset count for EncryptionFailed.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const
FwIdType FwPrmIdType
The type of a parameter identifier.
Link-time delegating Mutex implementation.
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 dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
CcsdsSdlsFramerComponentBase(const char *compName="")
Construct CcsdsSdlsFramerComponentBase object.
Opcode to save parameter SA_INDEX.
U16 paramGet_SA_INDEX(Fw::ParamValid &valid)
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)
Svc::Ccsds::InputCcsdsSdlsDataPort * get_encryptIn_InputPort(FwIndexType portNum)
void init()
Object initializer.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
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 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()
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
friend class CcsdsSdlsFramerTester
Friend class tester implementation to support white-box testing.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
virtual ~CcsdsSdlsFramerComponentBase()
Destroy CcsdsSdlsFramerComponentBase object.
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()
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 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()
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
virtual void parametersLoaded()
Called whenever parameters are loaded.
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].
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
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.
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
Throttle reset count for BufferAllocationFailed.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Enum representing parameter validity.
Opcode to set parameter SA_INDEX.
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].
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_logOut_OutputPorts()
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
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.