F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
VerifyStatusPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title VerifyStatusPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for VerifyStatus port
5 // ======================================================================
6 
7 #ifndef Svc_VerifyStatusPortAc_HPP
8 #define Svc_VerifyStatusPortAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
14 #if !FW_DIRECT_PORT_CALLS
18 #endif
19 
20 namespace Svc {
21 
25  {
26 
27  public:
28 
29  // ----------------------------------------------------------------------
30  // Public constants for VerifyStatusPortBuffer
31  // ----------------------------------------------------------------------
32 
35  static constexpr FwSizeType CAPACITY =
37  sizeof(U32);
38 
39  public:
40 
41  // ----------------------------------------------------------------------
42  // Public member functions for VerifyStatusPortBuffer
43  // ----------------------------------------------------------------------
44 
48  return CAPACITY;
49  }
50 
53  U8* getBuffAddr() override {
54  return m_buff;
55  }
56 
59  const U8* getBuffAddr() const override {
60  return m_buff;
61  }
62 
63  private:
64 
65  // ----------------------------------------------------------------------
66  // Private member variables
67  // ----------------------------------------------------------------------
68 
69  U8 m_buff[CAPACITY];
70 
71  };
72 
75 
76  public:
77 
78  // ----------------------------------------------------------------------
79  // Public constructors for VerifyStatusPortSerializer
80  // ----------------------------------------------------------------------
81 
84 
85  public:
86 
87  // ----------------------------------------------------------------------
88  // Public member functions for VerifyStatusPortSerializer
89  // ----------------------------------------------------------------------
90 
93  Fw::SerialBufferBase& _buffer
94  );
95 
96  public:
97 
98  // ----------------------------------------------------------------------
99  // Public static functions for VerifyStatusPortSerializer
100  // ----------------------------------------------------------------------
101 
104  const Fw::StringBase& path,
105  U32 crc,
106  Fw::SerialBufferBase& _buffer
107  );
108 
109  private:
110 
111  // ----------------------------------------------------------------------
112  // Private member variables for VerifyStatusPortSerializer
113  // ----------------------------------------------------------------------
114 
115  char m___fprime_ac_path_buffer[Fw::StringBase::BUFFER_SIZE(240)];
116 
117  public:
118 
119  // ----------------------------------------------------------------------
120  // Public member variables for VerifyStatusPortSerializer
121  // ----------------------------------------------------------------------
122 
124  U32 m_crc;
125 
126  };
127 
128 #if !FW_DIRECT_PORT_CALLS
129 
132  public Fw::InputPortBase
133  {
134 
135  public:
136 
137  // ----------------------------------------------------------------------
138  // Public types for InputVerifyStatusPort
139  // ----------------------------------------------------------------------
140 
142  typedef void (*CompFuncPtr)(
143  Fw::PassiveComponentBase* callComp,
144  FwIndexType portNum,
145  const Fw::StringBase& path,
146  U32 crc
147  );
148 
149  public:
150 
151  // ----------------------------------------------------------------------
152  // Public constructors for InputVerifyStatusPort
153  // ----------------------------------------------------------------------
154 
157 
158  public:
159 
160  // ----------------------------------------------------------------------
161  // Public member functions for InputVerifyStatusPort
162  // ----------------------------------------------------------------------
163 
165  void init();
166 
168  void addCallComp(
169  Fw::PassiveComponentBase* callComp,
170  CompFuncPtr funcPtr
171  );
172 
174  void invoke(
175  const Fw::StringBase& path,
176  U32 crc
177  );
178 
179  private:
180 
181  // ----------------------------------------------------------------------
182  // Private member functions for InputVerifyStatusPort
183  // ----------------------------------------------------------------------
184 
185 #if FW_PORT_SERIALIZATION == 1
186 
189  Fw::SerializeStatus invokeSerial(
190  Fw::LinearBufferBase& _buffer
191  );
192 
193 #endif
194 
195  private:
196 
197  // ----------------------------------------------------------------------
198  // Private member variables for InputVerifyStatusPort
199  // ----------------------------------------------------------------------
200 
202  CompFuncPtr m_func;
203 
204  };
205 
208  public Fw::OutputPortBase
209  {
210 
211  public:
212 
213  // ----------------------------------------------------------------------
214  // Public constructors for OutputVerifyStatusPort
215  // ----------------------------------------------------------------------
216 
219 
220  public:
221 
222  // ----------------------------------------------------------------------
223  // Public member functions for OutputVerifyStatusPort
224  // ----------------------------------------------------------------------
225 
227  void init();
228 
230  void addCallPort(
231  InputVerifyStatusPort* callPort
232  );
233 
235  void invoke(
236  const Fw::StringBase& path,
237  U32 crc
238  ) const;
239 
240  private:
241 
242  // ----------------------------------------------------------------------
243  // Private member variables for OutputVerifyStatusPort
244  // ----------------------------------------------------------------------
245 
247  InputVerifyStatusPort* m_port;
248 
249  };
250 
251 #endif
252 
253 }
254 
255 #endif
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Serialization buffer for VerifyStatus port.
Fw::SerializeStatus deserializePortArgs(Fw::SerialBufferBase &_buffer)
Deserialze port arguments into members.
PlatformSizeType FwSizeType
Fw::Serializable::SizeType getCapacity() const override
static constexpr FwSizeType CAPACITY
Input VerifyStatus port.
void init()
Initialization function.
SerializeStatus
forward declaration for string
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Fw::StringBase &path, U32 crc)
The port callback function type.
Output VerifyStatus port.
FwSizeType SizeType
static Fw::SerializeStatus serializePortArgs(const Fw::StringBase &path, U32 crc, Fw::SerialBufferBase &_buffer)
Serialize port arguments into a buffer.
A string backed by an external buffer.
void invoke(const Fw::StringBase &path, U32 crc)
Invoke a port interface.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
Serializer for VerifyStatus port.
PlatformIndexType FwIndexType
void invoke(const Fw::StringBase &path, U32 crc) const
Invoke a port connection.
RateGroupDivider component implementation.
void init()
Initialization function.
static constexpr SizeType STATIC_SERIALIZED_SIZE(SizeType maxLength)
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
void addCallPort(InputVerifyStatusPort *callPort)
Register an input port.
const U8 * getBuffAddr() const override