 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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
66 const char *
const value
107 U32 bufferSize(
void)
const;
190 const U32 sequenceIndex,
208 U32 fixedLengthSize(
void)
const;
241 const U32 sequenceIndex,
272 const U32 sequenceIndex
372 StartPacket startPacket;
376 DataPacket dataPacket;
384 CancelPacket cancelPacket;
U32 bufferSize(void) const
Compute the buffer size needed to hold this DataPacket.
U32 bufferSize(void) const
Compute the buffer size needed to hold this EndPacket.
U32 fileSize
The file size.
Header header
The packet header.
A variable-length serializable buffer.
Header header
The packet header.
const Header & asHeader(void) const
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
const EndPacket & asEndPacket(void) const
void initialize(const char *const value)
Initialize a PathName.
The type of a cancel packet.
uint8_t U8
8-bit unsigned integer
The type of a start packet.
const StartPacket & asStartPacket(void) const
The type of a data packet.
void fromDataPacket(const DataPacket &dataPacket)
The type of an end packet.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
Header header
The packet header.
U32 bufferSize(void) const
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.
U32 bufferSize(void) const
Compute the buffer size needed to hold this StartPacket.
Class representing a CFDP checksum.
U32 byteOffset
The byte offset of the packet data into the destination file.
const DataPacket & asDataPacket(void) const
const CancelPacket & asCancelPacket(void) const
const char * value
Pointer to the path value.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
PathName destinationPath
The destination path.
U32 bufferSize(void) const
Compute the buffer size needed to hold this PathName.
void fromEndPacket(const EndPacket &endPacket)
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
void initialize(const U32 sequenceIndex)
Initialize a cancel packet.
Declares ISF basic types.
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.
U32 bufferSize(void) const
Compute the buffer size needed to hold this CancelPacket.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this DataPacket to a Buffer.
U16 dataSize
The size of the file data in the packet.
void fromCancelPacket(const CancelPacket &cancelPacket)