![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
abstract class representing a framing protocol More...
#include <Svc/FramingProtocol/FramingProtocol.hpp>
Public Member Functions | |
| FramingProtocol () | |
| constructor More... | |
| virtual | ~FramingProtocol () |
| void | setup (FramingProtocolInterface &interface) |
| setup function called to supply the interface used for allocation and sending More... | |
| virtual void | frame (const U8 *const data, const U32 size, Fw::ComPacket::ComPacketType packet_type)=0 |
| frame a given set of bytes More... | |
Protected Attributes | |
| FramingProtocolInterface * | m_interface |
abstract class representing a framing protocol
This class defines the methods used to create a framed packet from Com and Fw::Buffers. The framing protocol frame method is called with data and it in turn is expected to call the send method of m_interface once a packet is constructed.
There is no requirement that this be one-to-one and thus packetization, aggregation may all be performed. A call to m_interface.allocate can allocate memory such that framing tokens may be added.
Definition at line 31 of file FramingProtocol.hpp.
| Svc::FramingProtocol::FramingProtocol | ( | ) |
constructor
Definition at line 19 of file FramingProtocol.cpp.
|
inlinevirtual |
Definition at line 36 of file FramingProtocol.hpp.
|
pure virtual |
frame a given set of bytes
| data | pointer to a set of bytes to be framed |
| size | size of data pointed to by data |
| packet_type | type of data supplied for File downlink packets |
Implemented in Svc::FprimeFraming.
| void Svc::FramingProtocol::setup | ( | FramingProtocolInterface & | interface | ) |
setup function called to supply the interface used for allocation and sending
| interface | interface implementation, normally FramerComponentImpl |
Definition at line 21 of file FramingProtocol.cpp.
|
protected |
Definition at line 49 of file FramingProtocol.hpp.