F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PingReceiverComponentImpl.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PingReceiverImpl.hpp
3 // \author tim
4 // \brief hpp file for PingReceiver component implementation class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef PingReceiver_HPP
14 #define PingReceiver_HPP
15 
16 #include "Ref/PingReceiver/PingReceiverComponentAc.hpp"
17 
18 namespace Ref {
19 
20 class PingReceiverComponentImpl final : public PingReceiverComponentBase {
21  public:
22  // ----------------------------------------------------------------------
23  // Construction, initialization, and destruction
24  // ----------------------------------------------------------------------
25 
28  PingReceiverComponentImpl(const char* const compName
29  );
30 
34 
35  private:
36  // ----------------------------------------------------------------------
37  // Handler implementations for user-defined typed input ports
38  // ----------------------------------------------------------------------
39 
42  void PingIn_handler(const FwIndexType portNum,
43  U32 key
44  );
45 
46  void PR_StopPings_cmdHandler(FwOpcodeType opCode,
47  U32 cmdSeq
48  );
49 
50  bool m_inhibitPings;
51  U32 m_pingsRecvd;
52 };
53 
54 } // end namespace Ref
55 
56 #endif
FwIdType FwOpcodeType
The type of a command opcode.
PlatformIndexType FwIndexType
PingReceiverComponentImpl(const char *const compName)