F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TlmGetPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TlmGetPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for TlmGet port
5 // ======================================================================
6 
7 #ifndef Fw_TlmGetPortAc_HPP
8 #define Fw_TlmGetPortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
14 #include "Fw/FPrimeBasicTypes.hpp"
17 #include "Fw/Time/Time.hpp"
18 #include "Fw/Tlm/TlmBuffer.hpp"
20 #include "Fw/Types/String.hpp"
22 
23 namespace Fw {
24 
28  public Fw::InputPortBase
29  {
30 
31  public:
32 
33  // ----------------------------------------------------------------------
34  // Constants
35  // ----------------------------------------------------------------------
36 
37  enum {
40  sizeof(FwChanIdType) +
43  };
44 
45  public:
46 
47  // ----------------------------------------------------------------------
48  // Types
49  // ----------------------------------------------------------------------
50 
53  Fw::PassiveComponentBase* callComp,
54  FwIndexType portNum,
55  FwChanIdType id,
56  Fw::Time& timeTag,
57  Fw::TlmBuffer& val
58  );
59 
60  public:
61 
62  // ----------------------------------------------------------------------
63  // Input Port Member functions
64  // ----------------------------------------------------------------------
65 
68 
70  void init();
71 
73  void addCallComp(
74  Fw::PassiveComponentBase* callComp,
75  CompFuncPtr funcPtr
76  );
77 
80  FwChanIdType id,
81  Fw::Time& timeTag,
82  Fw::TlmBuffer& val
83  );
86 
87  private:
88 
89 #if FW_PORT_SERIALIZATION == 1
90 
92  Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
93 
94 #endif
95 
96  private:
97 
98  // ----------------------------------------------------------------------
99  // Member variables
100  // ----------------------------------------------------------------------
101 
103  CompFuncPtr m_func;
104 
105  };
106 
110  public Fw::OutputPortBase
111  {
112 
113  public:
114 
115  // ----------------------------------------------------------------------
116  // Output Port Member functions
117  // ----------------------------------------------------------------------
118 
121 
123  void init();
124 
126  void addCallPort(
127  InputTlmGetPort* callPort
128  );
129 
132  FwChanIdType id,
133  Fw::Time& timeTag,
134  Fw::TlmBuffer& val
135  ) const;
138 
139  private:
140 
141  // ----------------------------------------------------------------------
142  // Member variables
143  // ----------------------------------------------------------------------
144 
146  InputTlmGetPort* m_port;
147 
148  };
149 
150 }
151 
152 #endif
Definition: Time.hpp:9
void init()
Initialization function.
U32 FwChanIdType
The type of a telemetry channel identifier.
void addCallPort(InputTlmGetPort *callPort)
Register an input port.
Fw::TlmValid(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
The port callback function type.
SerializeStatus
forward declaration for string
Fw::TlmValid invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
void init()
Initialization function.
PlatformIndexType FwIndexType
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
InputTlmGetPort()
Constructor.
The size of the serial representations of the port arguments.
OutputTlmGetPort()
Constructor.
Fw::TlmValid invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Invoke a port interface.