F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
LinuxTimerComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title LinuxTimerComponentAc.hpp
3 // \author Auto-generated
4 // \brief hpp file for LinuxTimer component base 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 LINUXTIMER_COMP_HPP_
14 #define LINUXTIMER_COMP_HPP_
15 
16 #include <FpConfig.hpp>
20 #include <Svc/Cycle/TimerVal.hpp>
22 
23 namespace Svc {
24 
30  {
31 
32  // ----------------------------------------------------------------------
33  // Friend classes
34  // ----------------------------------------------------------------------
35 
39 
40  public:
41 
42  // ----------------------------------------------------------------------
43  // Connect typed input ports to typed output ports
44  // ----------------------------------------------------------------------
45 
49  NATIVE_INT_TYPE portNum,
50  Svc::InputCyclePort *port
51  );
52 
53 #if FW_PORT_SERIALIZATION
54 
55  public:
56 
57  // ----------------------------------------------------------------------
58  // Connect serialization input ports to typed output ports
59  // ----------------------------------------------------------------------
60 
64  NATIVE_INT_TYPE portNum,
65  Fw::InputSerializePort *port
66  );
67 
68 #endif
69 
71 
72  // ----------------------------------------------------------------------
73  // Component construction, initialization, and destruction
74  // ----------------------------------------------------------------------
75 
76 #if FW_OBJECT_NAMES == 1
80  const char* compName
81  );
82 #else
86 #endif
87 
90  void init(
91  NATIVE_INT_TYPE instance = 0
92  );
93 
96  virtual ~LinuxTimerComponentBase(void);
97 
99 
100  // ----------------------------------------------------------------------
101  // Invocation functions for typed output ports
102  // ----------------------------------------------------------------------
103 
106  void CycleOut_out(
107  NATIVE_INT_TYPE portNum,
109  );
110 
112 
113  // ----------------------------------------------------------------------
114  // Getters for numbers of output ports
115  // ----------------------------------------------------------------------
116 
121  NATIVE_INT_TYPE getNum_CycleOut_OutputPorts(void);
122 
123 
124  enum {
126  };
127 
129 
130  // ----------------------------------------------------------------------
131  // Connection status queries for output ports
132  // ----------------------------------------------------------------------
133 
138  bool isConnected_CycleOut_OutputPort(
139  NATIVE_INT_TYPE portNum
140  );
141 
143 
144  // ----------------------------------------------------------------------
145  // Event logging functions
146  // ----------------------------------------------------------------------
147 
148  PRIVATE:
149 
150  // ----------------------------------------------------------------------
151  // Typed output ports
152  // ----------------------------------------------------------------------
153 
156  Svc::OutputCyclePort m_CycleOut_OutputPort[NUM_CYCLEOUT_OUTPUT_PORTS];
157 
158 
159 
160  };
161 
162 } // end namespace Svc
163 #endif
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition: BasicTypes.hpp:118
Svc::LinuxTimerComponentBase::~LinuxTimerComponentBase
virtual ~LinuxTimerComponentBase(void)
Definition: LinuxTimerComponentAc.cpp:108
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition: BasicTypes.hpp:114
TimerVal.hpp
InputSerializePort.hpp
Svc::InputCyclePort
Definition: CyclePortAc.hpp:28
Fw::PassiveComponentBase
Definition: PassiveComponentBase.hpp:10
Svc::TimerVal
Serializable class for carrying timer values.
Definition: TimerVal.hpp:22
Fw::ObjBase::init
void init(void)
Object initializer.
Definition: ObjBase.cpp:26
ActiveComponentBase.hpp
Svc::LinuxTimerComponentBase::NUM_CYCLEOUT_OUTPUT_PORTS
@ NUM_CYCLEOUT_OUTPUT_PORTS
Definition: LinuxTimerComponentAc.hpp:125
Svc::LinuxTimerComponentBase::set_CycleOut_OutputPort
void set_CycleOut_OutputPort(NATIVE_INT_TYPE portNum, Svc::InputCyclePort *port)
Definition: LinuxTimerComponentAc.cpp:29
Svc::LinuxTimerComponentBase::cycleStart
PROTECTED Svc::TimerVal & cycleStart
Definition: LinuxTimerComponentAc.hpp:109
Svc::LinuxTimerComponentBase::LinuxTimerComponentBaseFriend
friend class LinuxTimerComponentBaseFriend
Definition: LinuxTimerComponentAc.hpp:38
Svc::OutputCyclePort
Definition: CyclePortAc.hpp:49
CyclePortAc.hpp
FpConfig.hpp
ISF configuration file.
Svc::LinuxTimerComponentBase
Auto-generated base for LinuxTimer component.
Definition: LinuxTimerComponentAc.hpp:30
Svc
Definition: ActiveLoggerComponentAc.cpp:22
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
OutputSerializePort.hpp