|  | F´ Flight Software - C/C++ Documentation
    NASA-v1.6.0
    A framework for building embedded system applications to NASA flight quality standards. | 
 
 
 
Go to the documentation of this file.
   15 #include "Fw/Types/BasicTypes.hpp" 
   27 m_protocol(nullptr) {}
 
   30     FramerComponentBase::init(instance);
 
   37     m_protocol = &protocol;
 
   38     protocol.
setup(*
this);
 
   53     bufferDeallocate_out(0, fwBuffer);
 
   56 void FramerComponentImpl ::send(
Fw::Buffer& outgoing) {
 
   57     Drv::SendStatus sendStatus = framedOut_out(0, outgoing);
 
   58     if (sendStatus.e != Drv::SendStatus::SEND_OK) {
 
   67     return framedAllocate_out(0, size);
 
  
 
void setup(FramingProtocol &protocol)
Setup this component with a supplied framing protocol.
U8 * getBuffAddr()
gets buffer address for data filling
virtual void frame(const U8 *const data, const U32 size, Fw::ComPacket::ComPacketType packet_type)=0
frame a given set of bytes
void setup(FramingProtocolInterface &interface)
setup function called to supply the interface used for allocation and sending
void init(const NATIVE_INT_TYPE instance=0)
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
static void logMsg(const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)
abstract class representing a framing protocol
FramerComponentImpl(const char *const compName)
Fw::Buffer allocate(const U32 size)
Allocation callback used to request memory for the framer.
interface supplied to the framing protocol