 |
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.
13 #ifndef Fw_FilePacket_HPP
14 #define Fw_FilePacket_HPP
18 #include <Fw/Types/BasicTypes.hpp>
20 #include <Fw/Types/Serializable.hpp>
66 const char *
const value
107 U32 bufferSize()
const;
190 const U32 sequenceIndex,
208 U32 fixedLengthSize()
const;
241 const U32 sequenceIndex,
272 const U32 sequenceIndex
372 StartPacket startPacket;
376 DataPacket dataPacket;
384 CancelPacket cancelPacket;
U32 bufferSize() const
Compute the buffer size needed to hold this PathName.
const CancelPacket & asCancelPacket() const
U32 bufferSize() const
Compute the buffer size needed to hold this CancelPacket.
U32 fileSize
The file size.
Header header
The packet header.
A variable-length serializable buffer.
Header header
The packet header.
void initialize(const U32 sequenceIndex, const U32 byteOffset, const U16 dataSize, const U8 *const data)
Initialize a data packet.
SerializeStatus
forward declaration for string
SerializeStatus toBuffer(Buffer &buffer) const
void initialize(const char *const value)
Initialize a PathName.
The type of a cancel packet.
const EndPacket & asEndPacket() const
The type of a start packet.
The type of a data packet.
void fromDataPacket(const DataPacket &dataPacket)
The type of an end packet.
const DataPacket & asDataPacket() const
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.
U32 bufferSize() const
Compute the buffer size needed to hold this DataPacket.
Header header
The packet header.
U32 bufferSize() const
Compute the buffer size needed to hold this StartPacket.
PathName sourcePath
The source path.
void fromStartPacket(const StartPacket &startPacket)
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
Header header
The packet header.
Class representing a CFDP checksum.
U32 byteOffset
The byte offset of the packet data into the destination file.
const char * value
Pointer to the path value.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
PathName destinationPath
The destination path.
void fromEndPacket(const EndPacket &endPacket)
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
const Header & asHeader() const
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
void initialize(const U32 sequenceIndex)
Initialize a cancel packet.
const U8 * data
Pointer to the file data.
SerializeStatus fromBuffer(const Buffer &buffer)
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this DataPacket to a Buffer.
const StartPacket & asStartPacket() const
U16 dataSize
The size of the file data in the packet.
void fromCancelPacket(const CancelPacket &cancelPacket)