37 FprimeProtocol::FrameHeader header;
38 FprimeProtocol::FrameTrailer trailer;
46 const FprimeProtocol::FrameHeader defaultValue;
47 if (header.getstartWord() != defaultValue.getstartWord()) {
55 if (data.
getSize() < expectedFrameSize) {
64 status = deserializer.deserialize(packetDescriptor);
69 contextCopy.
setapid(static_cast<ComCfg::APID::T>(packetDescriptor));
76 status = trailer.deserialize(deserializer);
84 for (
FwSizeType i = 0; i < fieldToHashSize; i++) {
87 hash.
final(computedCrc);
void update(const void *const data, const FwSizeType len)
Serialization/Deserialization operation was successful.
void setapid(ComCfg::APID::T apid)
Set member apid.
FwIdType FwPacketDescriptorType
The type of a com packet descriptor.
The size of the serial representation.
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(SizeType size)
~FprimeDeframer()
Destroy FprimeDeframer object.
void log_WARNING_HI_InvalidLengthReceived() 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.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
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.
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.