 |
F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
16 #include <Fw/Types/Assert.hpp>
22 const U32 sequenceIndex,
33 return this->header.bufferSize() +
sizeof(this->checksumValue);
43 return this->toSerialBuffer(serialBuffer);
49 this->checksumValue = checksum.
getValue();
81 status = this->header.toSerialBuffer(serialBuffer);
85 status = serialBuffer.
serialize(this->checksumValue);
A variable-length serializable buffer.
SerializeStatus
forward declaration for string
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
U32 bufferSize() const
Compute the buffer size needed to hold this EndPacket.
Header header
The packet header.
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
Class representing a CFDP checksum.
U32 getValue() const
Get the checksum value.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.