F´ Flight Software - C/C++ Documentation  NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
FramingProtocol.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FramingProtocol.cpp
3 // \author mstarch
4 // \brief cpp file for FramingProtocol class
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 #include "FramingProtocol.hpp"
16 
17 namespace Svc {
18 
19 FramingProtocol::FramingProtocol() : m_interface(nullptr) {}
20 
22  FW_ASSERT(m_interface == nullptr);
23  m_interface = &interface;
24 }
25 };
Svc::FramingProtocol::m_interface
FramingProtocolInterface * m_interface
Definition: FramingProtocol.hpp:49
FramingProtocolInterface.hpp
FramingProtocolInterface
interface supplied to the framing protocol
Definition: FramingProtocolInterface.hpp:26
Svc::FramingProtocol::FramingProtocol
FramingProtocol()
constructor
Definition: FramingProtocol.cpp:19
Svc::FramingProtocol::setup
void setup(FramingProtocolInterface &interface)
setup function called to supply the interface used for allocation and sending
Definition: FramingProtocol.cpp:21
FW_ASSERT
#define FW_ASSERT(...)
Definition: Assert.hpp:8
Svc
Definition: ActiveRateGroupImplCfg.hpp:18
FramingProtocol.hpp