F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ComStub.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ComStub.hpp
3 // \author mstarch
4 // \brief hpp file for ComStub component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_ComStub_HPP
8 #define Svc_ComStub_HPP
9 
12 
13 namespace Svc {
14 
15 class ComStub final : public ComStubComponentBase {
16  friend class ComStubTester;
17 
18  public:
20  // ----------------------------------------------------------------------
21  // Construction, initialization, and destruction
22  // ----------------------------------------------------------------------
23 
26  ComStub(const char* const compName
27  );
28 
31  ~ComStub() override;
32 
33  private:
34  // ----------------------------------------------------------------------
35  // Handler implementations for user-defined typed input ports
36  // ----------------------------------------------------------------------
37 
42  void dataIn_handler(const FwIndexType portNum,
43  Fw::Buffer& sendBuffer,
44  const ComCfg::FrameContext& context) override;
45 
48  void drvConnected_handler(const FwIndexType portNum) override;
49 
54  void drvReceiveIn_handler(const FwIndexType portNum, Fw::Buffer& recvBuffer,
56  const Drv::ByteStreamStatus& recvStatus) override;
57 
61  void dataReturnIn_handler(FwIndexType portNum,
62  Fw::Buffer& fwBuffer,
63  const ComCfg::FrameContext& context) override;
64 
68  void drvSendReturnIn_handler(FwIndexType portNum,
69  Fw::Buffer& fwBuffer,
70  const Drv::ByteStreamStatus& recvStatus) override;
71 
72  bool m_reinitialize;
73  ComCfg::FrameContext m_storedContext;
74  FwIndexType m_retry_count;
75 };
76 
77 } // end namespace Svc
78 
79 #endif
ComStub(const char *const compName)
Definition: ComStub.cpp:18
Auto-generated base for ComStub component.
Status returned by the send call.
friend class ComStubTester
Allow UT Tester to access private members.
Definition: ComStub.hpp:16
const FwIndexType RETRY_LIMIT
Definition: ComStub.hpp:19
~ComStub() override
Definition: ComStub.cpp:20
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.