![]() |
F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
|
The type of a data packet. More...
#include <Fw/FilePacket/FilePacket.hpp>
Public Types | |
| enum | { HEADERSIZE } |
| header size More... | |
Public Member Functions | |
| void | initialize (const U32 sequenceIndex, const U32 byteOffset, const U16 dataSize, const U8 *const data) |
| Initialize a data packet. | |
| U32 | bufferSize () const |
| Compute the buffer size needed to hold this DataPacket. | |
| SerializeStatus | toBuffer (Buffer &buffer) const |
| Convert this DataPacket to a Buffer. | |
| const FilePacket::Header & | asHeader () const |
| Get this as a Header. | |
| U32 | getByteOffset () const |
| Get the byte offset. | |
| U32 | getDataSize () const |
| Get the data size. | |
| const U8 * | getData () const |
| Get the data. | |
Friends | |
| union | FilePacket |
The type of a data packet.
Definition at line 197 of file FilePacket.hpp.
| anonymous enum |
|
inline |
Get this as a Header.
Definition at line 237 of file FilePacket.hpp.
| U32 Fw::FilePacket::DataPacket::bufferSize | ( | ) | const |
Compute the buffer size needed to hold this DataPacket.
Definition at line 32 of file DataPacket.cpp.
|
inline |
Get the byte offset.
Definition at line 242 of file FilePacket.hpp.
|
inline |
Get the data.
Definition at line 252 of file FilePacket.hpp.
|
inline |
Get the data size.
Definition at line 247 of file FilePacket.hpp.
| void Fw::FilePacket::DataPacket::initialize | ( | const U32 | sequenceIndex, |
| const U32 | byteOffset, | ||
| const U16 | dataSize, | ||
| const U8 *const | data ) |
Initialize a data packet.
| sequenceIndex | The sequence index |
| byteOffset | The byte offset |
| dataSize | The data size |
| data | The file data |
Definition at line 18 of file DataPacket.cpp.
| SerializeStatus Fw::FilePacket::DataPacket::toBuffer | ( | Buffer & | buffer | ) | const |
Convert this DataPacket to a Buffer.
Definition at line 42 of file DataPacket.cpp.
|
friend |
Definition at line 199 of file FilePacket.hpp.