F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TcDeframer.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TcDeframer.hpp
3 // \author thomas-bc
4 // \brief hpp file for TcDeframer component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_TcDeframer_HPP
8 #define Svc_Ccsds_TcDeframer_HPP
9 
11 
12 namespace Svc {
13 namespace Ccsds {
15  friend class TcDeframerTester;
16 
17  public:
18  // ----------------------------------------------------------------------
19  // Component construction and destruction
20  // ----------------------------------------------------------------------
21 
23  TcDeframer(const char* const compName
24  );
25 
27  ~TcDeframer();
28 
39  void configure(U16 vcId, U16 spacecraftId, bool acceptAllVcid);
40 
41  private:
42  // ----------------------------------------------------------------------
43  // Handler implementations for user-defined typed input ports
44  // ----------------------------------------------------------------------
45 
49  void dataIn_handler(FwIndexType portNum,
50  Fw::Buffer& data,
51  const ComCfg::FrameContext& context) override;
52 
56  void dataReturnIn_handler(FwIndexType portNum,
57  Fw::Buffer& data,
58  const ComCfg::FrameContext& context) override;
59 
60  private:
61  U16 m_vcId;
62  U16 m_spacecraftId;
63  bool m_acceptAllVcid = true;
64 };
65 } // namespace Ccsds
66 } // namespace Svc
67 
68 #endif
TcDeframer(const char *const compName)
Construct TcDeframer object.
Definition: TcDeframer.cpp:21
friend class TcDeframerTester
Definition: TcDeframer.hpp:15
void configure(U16 vcId, U16 spacecraftId, bool acceptAllVcid)
Configure the TcDeframer to deframe only a specific VCID and spacecraft ID.
Definition: TcDeframer.cpp:26
~TcDeframer()
Destroy TcDeframer object.
Definition: TcDeframer.cpp:24
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Auto-generated base for TcDeframer component.