40 if ((not frameBuffer.
isValid()) || (frameBuffer.
getSize() < frameSize)) {
55 static_cast<FwAssertArgType>(apid));
65 U16 packetSequenceControl =
static_cast<U16
>(
70 U16 packetDataLength =
71 static_cast<U16
>(data.
getSize() - 1);
80 status = frameSerializer.serializeFrom(header);
86 frameBuffer.
setSize(static_cast<Fw::Buffer::SizeType>(frameSize));
98 void SpacePacketFramer ::dataReturnIn_handler(
FwIndexType portNum,
Serialization/Deserialization operation was successful.
~SpacePacketFramer()
Destroy SpacePacketFramer object.
PlatformSizeType FwSizeType
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
void setSize(FwSizeType size)
ComCfg::Apid::T get_apid() const
Get member apid.
SpacePacketFramer(const char *const compName)
Construct SpacePacketFramer object.
SerializeStatus
forward declaration for string
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferDeallocate.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
Omit length from serialization.
U8 get_sequenceFlags() const
Get member sequenceFlags.
void log_WARNING_HI_NoBufferAvailable()
bool get_hasSecHdr() const
Get member hasSecHdr.
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
Auto-generated base for SpacePacketFramer component.
uint8_t U8
8-bit unsigned integer
FwSizeType getSize() const
U16 getApidSeqCount_out(FwIndexType portNum, const ComCfg::Apid &apid, U16 sequenceCount) const
Invoke output port getApidSeqCount.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
RateGroupDivider component implementation.
ExternalSerializeBufferWithMemberCopy getSerializer()
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.