F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FprimeRouter.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FprimeRouter.hpp
3 // \author thomas-bc
4 // \brief hpp file for FprimeRouter component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_FprimeRouter_HPP
8 #define Svc_FprimeRouter_HPP
9 
11 
12 namespace Svc {
13 
15  public:
16  // ----------------------------------------------------------------------
17  // Component construction and destruction
18  // ----------------------------------------------------------------------
19 
21  FprimeRouter(const char* const compName
22  );
23 
25  ~FprimeRouter();
26 
27  PRIVATE:
28  // ----------------------------------------------------------------------
29  // Handler implementations for user-defined typed input ports
30  // ----------------------------------------------------------------------
31 
34  void dataIn_handler(FwIndexType portNum,
35  Fw::Buffer& packetBuffer,
36  Fw::Buffer& contextBuffer
37  ) override;
38 
39  // ! Handler for input port cmdResponseIn
40  // ! This is a no-op because FprimeRouter does not need to handle command responses
41  // ! but the port must be connected
42  void cmdResponseIn_handler(FwIndexType portNum,
43  FwOpcodeType opcode,
44  U32 cmdSeq,
45  const Fw::CmdResponse& response
46  ) override;
47 };
48 } // namespace Svc
49 
50 #endif
Enum representing a command response.
PlatformIndexType FwIndexType
Definition: FpConfig.h:25
FprimeRouter(const char *const compName)
Construct FprimeRouter object.
U32 FwOpcodeType
Definition: FpConfig.h:91
~FprimeRouter()
Destroy FprimeRouter object.
Auto-generated base for FprimeRouter component.