F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DpDemo.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title DpDemo.hpp
3 // \author jawest
4 // \brief hpp file for DpDemo component implementation class
5 // ======================================================================
6 
7 #ifndef Ref_DpDemo_HPP
8 #define Ref_DpDemo_HPP
9 
10 #include "Ref/DpDemo/DpDemoComponentAc.hpp"
11 
12 namespace Ref {
13 
14 class DpDemo final : public DpDemoComponentBase {
15  public:
16  // ----------------------------------------------------------------------
17  // Component construction and destruction
18  // ----------------------------------------------------------------------
19 
21  DpDemo(const char* const compName
22  );
23 
25  ~DpDemo();
26 
27  private:
28  // ----------------------------------------------------------------------
29  // Handler implementations for commands
30  // ----------------------------------------------------------------------
31 
35  void run_handler(FwIndexType portNum,
36  U32 context
37  ) override;
38 
42  void SelectColor_cmdHandler(FwOpcodeType opCode,
43  U32 cmdSeq,
44  Ref::DpDemo_ColorEnum color) override;
45 
49  void Dp_cmdHandler(FwOpcodeType opCode,
50  U32 cmdSeq,
51  DpDemo_DpReqType reqType,
52  U32 priority) override;
53 
54  private:
55  // ----------------------------------------------------------------------
56  // Handler implementations for data products
57  // ----------------------------------------------------------------------
58 
60  void dpRecv_DpDemoContainer_handler(DpContainer& container,
61  Fw::Success::T status
62  ) override;
63 
64  // DP cleanup helper
65  void cleanupAndSendDp();
66 
67  // Member variables
68  DpDemo_ColorEnum selectedColor;
69  U32 numRecords;
70  U32 dpPriority;
71  DpContainer dpContainer;
72  bool dpInProgress;
73 };
74 
75 } // namespace Ref
76 
77 #endif
FwIdType FwOpcodeType
The type of a command opcode.
~DpDemo()
Destroy DpDemo object.
Definition: DpDemo.cpp:21
T
The raw enum type.
PlatformIndexType FwIndexType
DpDemo(const char *const compName)
Construct DpDemo object.
Definition: DpDemo.cpp:15