F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
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 #ifndef SVC_DEFRAMING_PROTOCOL_INTERFACE_HPP
14 #define SVC_DEFRAMING_PROTOCOL_INTERFACE_HPP
15 
16 #include <Fw/Buffer/Buffer.hpp>
17 #include <Fw/Time/Time.hpp>
18 
19 namespace Svc {
20 
29  public:
36  virtual Fw::Buffer allocate(const U32 size) = 0;
37 
42  virtual void route(Fw::Buffer& data) = 0;
43 };
44 
45 } // namespace Svc
46 #endif // SVC_DEFRAMING_PROTOCOL_INTERFACE_HPP
virtual void route(Fw::Buffer &data)=0
send deframed data into the system
interface supplied to the deframing protocol
virtual Fw::Buffer allocate(const U32 size)=0
called to allocate memory, typically delegating to an allocate port call
RateGroupDivider component implementation.