F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DeframingProtocol.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title DeframingProtocol.hpp
3// \author mstarch
4// \brief hpp file for DeframingProtocol class
5//
6// \copyright
7// Copyright 2009-2022, by the California Institute of Technology.
8// ALL RIGHTS RESERVED. United States Government Sponsorship
9// acknowledged.
10//
11// ======================================================================
12
14#include "Fw/Com/ComPacket.hpp"
16
17#ifndef SVC_DEFRAMING_PROTOCOL_HPP
18#define SVC_DEFRAMING_PROTOCOL_HPP
19
20namespace Svc {
21
22
34 public:
35 virtual ~DeframingProtocol(){};
46 };
50
53 void setup(DeframingProtocolInterface& interface
54 );
55
59 U32& needed
60 ) = 0;
61
62 PROTECTED:
64};
65};
66#endif // SVC_DEFRAMING_PROTOCOL_HPP
Abstract base class representing a deframing protocol.
virtual DeframingStatus deframe(Types::CircularBuffer &buffer, U32 &needed)=0
DeframingProtocolInterface * m_interface
DeframingStatus
Status of the deframing call.
void setup(DeframingProtocolInterface &interface)
interface supplied to the deframing protocol