37 FprimeProtocol::FrameHeader header;
38 FprimeProtocol::FrameTrailer trailer;
46 const FprimeProtocol::FrameHeader defaultValue;
47 if (header.get_startWord() != defaultValue.get_startWord()) {
55 if (data.
getSize() < expectedFrameSize) {
64 status = deserializer.deserialize(packetDescriptor);
69 contextCopy.
set_apid(static_cast<ComCfg::APID::T>(packetDescriptor));
76 status = trailer.deserialize(deserializer);
84 for (
FwSizeType i = 0; i < fieldToHashSize; i++) {
87 hash.
final(computedCrc);
105 void FprimeDeframer ::dataReturnIn_handler(
FwIndexType portNum,
void update(const void *const data, const FwSizeType len)
Serialization/Deserialization operation was successful.
FwIdType FwPacketDescriptorType
The type of a com packet descriptor.
PlatformSizeType FwSizeType
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
void log_WARNING_HI_InvalidBufferReceived() const
void setSize(FwSizeType size)
~FprimeDeframer()
Destroy FprimeDeframer object.
void log_WARNING_HI_InvalidLengthReceived() const
SerializeStatus
forward declaration for string
void final(HashBuffer &buffer)
ExternalSerializeBufferWithMemberCopy getDeserializer()
The size of the serial representation.
void log_WARNING_HI_InvalidStartWord() const
Auto-generated base for FprimeDeframer component.
A generic interface for creating and comparing hash values.
FwSizeType getSize() const
SerializeStatus deserialize(U8 &val)
PlatformIndexType FwIndexType
void log_WARNING_HI_InvalidChecksum() const
U32 asBigEndianU32() const
Convert bytes 0 through 3 of the hash data to a big-Endian U32 value.
A container class for holding a hash buffer.
Type used to pass context info between components during framing/deframing.
void set_apid(ComCfg::APID::T apid)
Set member apid.
RateGroupDivider component implementation.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
Anything equal or higher value is invalid and should not be used.
FprimeDeframer(const char *const compName)
Construct FprimeDeframer object.