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) {
69 status = deserializer.deserializeTo(packetDescriptor);
73 contextCopy.
set_apid(static_cast<ComCfg::Apid::T>(packetDescriptor));
81 status = trailer.deserializeFrom(deserializer);
89 for (
FwSizeType i = 0; i < fieldToHashSize; i++) {
92 hash.
final(computedCrc);
110 void FprimeDeframer ::dataReturnIn_handler(
FwIndexType portNum,
void update(const void *const data, const FwSizeType len)
Serialization/Deserialization operation was successful.
U16 FwPacketDescriptorType
The width of packet descriptors when they are serialized by the framework.
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 set_apid(ComCfg::Apid::T apid)
Set member apid.
void log_WARNING_HI_InvalidLengthReceived() const
void log_WARNING_LO_PayloadTooShort() const
SerializeStatus
forward declaration for string
void final(HashBuffer &buffer)
ExternalSerializeBufferWithMemberCopy getDeserializer()
void log_WARNING_HI_InvalidStartWord() const
Auto-generated base for FprimeDeframer component.
A generic interface for creating and comparing hash values.
FwSizeType getSize() const
Anything equal or higher value is invalid and should not be used.
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.
The size of the serial representation.
RateGroupDivider component implementation.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
FprimeDeframer(const char *const compName)
Construct FprimeDeframer object.