17 "Svc.Ccsds.SdlsSaIndexSize must match the prepended SA index");
31 void CcsdsSdlsFramer ::bufferReturnIn_handler(
FwIndexType portNum,
48 if (saIndex == unsetSaIndex) {
61 void CcsdsSdlsFramer ::dataReturnIn_handler(
FwIndexType portNum,
68 void CcsdsSdlsFramer ::encryptIn_handler(
FwIndexType portNum,
76 this->sendComStatusOnDrop();
80 FW_ASSERT(data.
getSize() <= std::numeric_limits<Fw::Buffer::SizeType>::max() -
sizeof(U16),
81 static_cast<FwAssertArgType>(data.
getSize()));
86 if ((!frameBuffer.
isValid()) || (frameBuffer.
getSize() < frameSize)) {
93 this->sendComStatusOnDrop();
104 frameBuffer.
setSize(frameSize);
115 void CcsdsSdlsFramer ::sendComStatusOnDrop() {
Serialization/Deserialization operation was successful.
#define FW_PARAM_OK(paramValid)
CcsdsSdlsFramer(const char *const compName)
Construct CcsdsSdlsFramer object.
void setSize(FwSizeType size)
Auto-generated base for CcsdsSdlsFramer component.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
U16 paramGet_SA_INDEX(Fw::ParamValid &valid)
void encryptOut_out(FwIndexType portNum, U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port encryptOut.
void log_WARNING_HI_BufferAllocationFailed(FwSizeType allocationSize)
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SerializeStatus
forward declaration for string
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferDeallocate.
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.
Omit length from serialization.
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)
enum T e
The raw enum value.
FwSizeType getSize() const
U16 get_saIndex() const
Get member saIndex.
void set_saIndex(U16 saIndex)
Set member saIndex.
PlatformIndexType FwIndexType
FwSizeType SizeType
The size type for a buffer - for backwards compatibility.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Enum representing parameter validity.
Request completed successfully.
ExternalSerializeBufferWithMemberCopy getSerializer()
~CcsdsSdlsFramer()
Destroy CcsdsSdlsFramer object.