F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FrameDetector.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FrameDetector.hpp
3 // \author mstarch
4 // \brief hpp interface specification for FrameDetector
5 // ======================================================================
6 #ifndef SVC_FPRIME_FRAME_DETECTOR_HPP
7 #define SVC_FPRIME_FRAME_DETECTOR_HPP
10 
11 namespace Svc {
12 
14  class FrameDetector {
15  public:
17  enum Status {
21  };
22 
24  virtual ~FrameDetector() = default;
25 
48  virtual Status detect(const Types::CircularBuffer& data, FwSizeType& size_out) const = 0;
49  };
50 
51 } // Svc
52 
53 #endif //SVC_FPRIME_FRAME_DETECTOR_HPP
virtual ~FrameDetector()=default
virtual destructor
PlatformSizeType FwSizeType
Status
status returned from the detection step
Frame detected. Extract frame and return with new data.
More data is needed to detect a frame. Keep current data and return with more.
virtual Status detect(const Types::CircularBuffer &data, FwSizeType &size_out) const =0
detect if a frame is available within the circular buffer
RateGroupDivider component implementation.
interface class used to codify what must be supported to allow frame detection
No frame detected. Discard data and return with new data.