F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CmdSplitter.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CmdSplitter.hpp
3 // \author watney
4 // \brief hpp file for CmdSplitter component implementation class
5 // ======================================================================
6 
7 #ifndef CmdSplitter_HPP
8 #define CmdSplitter_HPP
9 
12 
13 namespace Svc {
14 
15 class CmdSplitter final : public CmdSplitterComponentBase {
16  public:
17  // ----------------------------------------------------------------------
18  // Construction, initialization, and destruction
19  // ----------------------------------------------------------------------
20 
23  CmdSplitter(const char* const compName
24  );
25 
28  ~CmdSplitter();
29 
32  void configure(const FwOpcodeType remoteBaseOpcode );
33 
34  private:
35  // ----------------------------------------------------------------------
36  // Handler implementations for user-defined typed input ports
37  // ----------------------------------------------------------------------
38 
41  void CmdBuff_handler(const FwIndexType portNum,
42  Fw::ComBuffer& data,
43  U32 context
44  );
45 
48  void seqCmdStatus_handler(const FwIndexType portNum,
49  FwOpcodeType opCode,
50  U32 cmdSeq,
51  const Fw::CmdResponse& response
52  );
53 
54  FwOpcodeType m_remoteBase; // Opcodes greater than or equal than this value will route remotely
55 };
56 
57 } // end namespace Svc
58 
59 #endif
FwIdType FwOpcodeType
The type of a command opcode.
CmdSplitter(const char *const compName)
Definition: CmdSplitter.cpp:19
Enum representing a command response.
Auto-generated base for CmdSplitter component.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
void configure(const FwOpcodeType remoteBaseOpcode)
Definition: CmdSplitter.cpp:23