F´ Flight Software - C/C++ Documentation  NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeframingProtocolInterface.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title DeframingProtocolInterface.hpp
3 // \author mstarch
4 // \brief hpp file for deframing protocol interface
5 //
6 // \copyright
7 // Copyright 2009-2021, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 
14 #ifndef DEFRAMING_PROTOCOLINTERFACE_HPP
15 #define DEFRAMING_PROTOCOLINTERFACE_HPP
16 
17 #include <Fw/Buffer/Buffer.hpp>
18 #include <Fw/Time/Time.hpp>
27  public:
33  virtual Fw::Buffer allocate(const U32 size) = 0;
34 
39  virtual void route(Fw::Buffer& data) = 0;
40 
41 };
42 
43 #endif // DEFRAMING_PROTOCOLINTERFACE_HPP
Buffer.hpp
DeframingProtocolInterface
interface supplied to the deframing protocol
Definition: DeframingProtocolInterface.hpp:26
Fw::Buffer
Definition: Buffer.hpp:43
DeframingProtocolInterface::route
virtual void route(Fw::Buffer &data)=0
send deframed data into the system
DeframingProtocolInterface::allocate
virtual Fw::Buffer allocate(const U32 size)=0
called to allocate memory, typically delegating to an allocate port call
Time.hpp