![]() |
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>
Public Member Functions | |
Deframer (const char *const compName) | |
Construct Deframer instance. | |
void | init (const NATIVE_INT_TYPE instance=0) |
Initialize Deframer instance. | |
~Deframer () | |
Destroy Deframer instance. | |
void | setup (DeframingProtocol &protocol) |
Set up the instance. | |
![]() | |
void | init (NATIVE_INT_TYPE instance=0) |
Initialize DeframerComponentBase object. | |
Fw::InputCmdResponsePort * | get_cmdResponseIn_InputPort (NATIVE_INT_TYPE portNum) |
Drv::InputByteStreamRecvPort * | get_framedIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputSchedPort * | get_schedIn_InputPort (NATIVE_INT_TYPE portNum) |
void | set_bufferAllocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferGetPort *port) |
Connect port to bufferAllocate[portNum]. | |
void | set_bufferDeallocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port) |
Connect port to bufferDeallocate[portNum]. | |
void | set_bufferOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port) |
Connect port to bufferOut[portNum]. | |
void | set_comOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputComPort *port) |
Connect port to comOut[portNum]. | |
void | set_framedDeallocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port) |
Connect port to framedDeallocate[portNum]. | |
void | set_framedPoll_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamPollPort *port) |
Connect port to framedPoll[portNum]. | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. | |
U32 | getIdBase () const |
![]() | |
virtual | ~DeframingProtocolInterface () |
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 37 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 52 of file Deframer.cpp.
void Svc::Deframer::init | ( | const NATIVE_INT_TYPE | instance = 0 | ) |
Initialize Deframer instance.
instance | The instance number |
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 54 of file Deframer.cpp.