![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Generic deframing component using DeframingProtocol implementation for actual deframing. More...
#include <Svc/Deframer/Deframer.hpp>
Generic deframing component using DeframingProtocol implementation for actual deframing.
Deframing component used to take byte streams and expand them into Com/File buffers. This is done using a deframing protocol specified in a DeframingProtocol instance. The instance must be supplied using the setup
method.
Using this component, projects can implement and supply a fresh DeframingProtocol implementation without changing the reference topology.
Implementation uses a circular buffer to store incoming data, which is drained one framed packet at a time into buffers dispatched to the rest of the system.
Definition at line 38 of file Deframer.hpp.
Svc::Deframer::Deframer | ( | const char *const | compName | ) |
Construct Deframer instance.
compName | The component name |
Definition at line 39 of file Deframer.cpp.
Svc::Deframer::~Deframer | ( | ) |
Destroy Deframer instance.
Definition at line 48 of file Deframer.cpp.
void Svc::Deframer::setup | ( | DeframingProtocol & | protocol | ) |
Set up the instance.
protocol | Deframing protocol instance |
Definition at line 50 of file Deframer.cpp.