![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Cmd/CmdPacket.hpp>
Public Member Functions | |
| CmdPacket () | |
| virtual | ~CmdPacket () |
| SerializeStatus | serializeTo (SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const override |
| Serialize the contents of this object to a buffer. More... | |
| SerializeStatus | deserializeFrom (SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) override |
| Deserialize the contents of this object from a buffer. More... | |
| FwOpcodeType | getOpCode () const |
| CmdArgBuffer & | getArgBuffer () |
Public Member Functions inherited from Fw::ComPacket | |
| ComPacket () | |
| virtual | ~ComPacket () |
Public Member Functions inherited from Fw::Serializable | |
| Serializable & | operator= (const Serializable &src)=default |
| TODO: this operator should be deleted, this must be done after RawTime is modified though. More... | |
| DEPRECATED (SerializeStatus serialize(SerialBufferBase &buffer) const, "Use serializeTo(SerialBufferBase& buffer) instead") | |
| DEPRECATED (SerializeStatus deserialize(SerialBufferBase &buffer), "Use deserializeFrom(SerialBufferBase& buffer) instead") | |
Protected Attributes | |
| FwOpcodeType | m_opcode |
| CmdArgBuffer | m_argBuffer |
Protected Attributes inherited from Fw::ComPacket | |
| ComPacketType | m_type |
Additional Inherited Members | |
Public Types inherited from Fw::Serializable | |
| using | SizeType = FwSizeType |
Protected Member Functions inherited from Fw::ComPacket | |
| SerializeStatus | serializeBase (SerialBufferBase &buffer) const |
| SerializeStatus | deserializeBase (SerialBufferBase &buffer) |
Protected Member Functions inherited from Fw::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| virtual | ~Serializable () |
| Virtual destructor. More... | |
Definition at line 16 of file CmdPacket.hpp.
| Fw::CmdPacket::CmdPacket | ( | ) |
Definition at line 14 of file CmdPacket.cpp.
|
virtual |
Definition at line 18 of file CmdPacket.cpp.
|
overridevirtual |
Deserialize the contents of this object from a buffer.
This method reads serialized data from the provided buffer and reconstructs the object's data from it. The buffer should contain data in the format produced by serializeTo().
| buffer | Reference to the SerialBufferBase from which data will be deserialized |
| mode | Endianness mode for deserialization (default is Endianness::BIG) |
Implements Fw::Serializable.
Definition at line 27 of file CmdPacket.cpp.
| CmdArgBuffer & Fw::CmdPacket::getArgBuffer | ( | ) |
Definition at line 56 of file CmdPacket.cpp.
| FwOpcodeType Fw::CmdPacket::getOpCode | ( | ) | const |
Definition at line 52 of file CmdPacket.cpp.
|
overridevirtual |
Serialize the contents of this object to a buffer.
This method serializes the object's data into the provided buffer. The serialization process converts the object's data into a format that can be stored or transmitted, and then writes it to the buffer.
| buffer | Reference to the SerialBufferBase where data will be serialized |
| mode | Endianness mode for serialization (default is Endianness::BIG) |
Implements Fw::Serializable.
Definition at line 21 of file CmdPacket.cpp.
|
protected |
Definition at line 30 of file CmdPacket.hpp.
|
protected |
Definition at line 29 of file CmdPacket.hpp.