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 
47 
48  }
49 
50  private:
51 
52  // ----------------------------------------------------------------------
53  // Private member variables
54  // ----------------------------------------------------------------------
55 
56  U8 m_buff[CAPACITY];
57 
58  };
59 
62 
63  public:
64 
65  // ----------------------------------------------------------------------
66  // Public constructors for VerifyStatusPortSerializer
67  // ----------------------------------------------------------------------
68 
71 
72  public:
73 
74  // ----------------------------------------------------------------------
75  // Public member functions for VerifyStatusPortSerializer
76  // ----------------------------------------------------------------------
77 
80  Fw::SerialBufferBase& _buffer
81  );
82 
83  public:
84 
85  // ----------------------------------------------------------------------
86  // Public static functions for VerifyStatusPortSerializer
87  // ----------------------------------------------------------------------
88 
91  const Fw::StringBase& path,
92  U32 crc,
93  Fw::SerialBufferBase& _buffer
94  );
95 
96  private:
97 
98  // ----------------------------------------------------------------------
99  // Private member variables for VerifyStatusPortSerializer
100  // ----------------------------------------------------------------------
101 
102  char m___fprime_ac_path_buffer[Fw::StringBase::BUFFER_SIZE(240)];
103 
104  public:
105 
106  // ----------------------------------------------------------------------
107  // Public member variables for VerifyStatusPortSerializer
108  // ----------------------------------------------------------------------
109 
111  U32 m_crc;
112 
113  };
114 
115 #if !FW_DIRECT_PORT_CALLS
116 
119  public Fw::InputPortBase
120  {
121 
122  public:
123 
124  // ----------------------------------------------------------------------
125  // Public types for InputVerifyStatusPort
126  // ----------------------------------------------------------------------
127 
129  typedef void (*CompFuncPtr)(
130  Fw::PassiveComponentBase* callComp,
131  FwIndexType portNum,
132  const Fw::StringBase& path,
133  U32 crc
134  );
135 
136  public:
137 
138  // ----------------------------------------------------------------------
139  // Public constructors for InputVerifyStatusPort
140  // ----------------------------------------------------------------------
141 
144 
145  public:
146 
147  // ----------------------------------------------------------------------
148  // Public member functions for InputVerifyStatusPort
149  // ----------------------------------------------------------------------
150 
152  void init();
153 
155  void addCallComp(
156  Fw::PassiveComponentBase* callComp,
157  CompFuncPtr funcPtr
158  );
159 
161  void invoke(
162  const Fw::StringBase& path,
163  U32 crc
164  );
165 
166  private:
167 
168  // ----------------------------------------------------------------------
169  // Private member functions for InputVerifyStatusPort
170  // ----------------------------------------------------------------------
171 
172 #if FW_PORT_SERIALIZATION == 1
173 
176  Fw::SerializeStatus invokeSerial(
177  Fw::LinearBufferBase& _buffer
178  );
179 
180 #endif
181 
182  private:
183 
184  // ----------------------------------------------------------------------
185  // Private member variables for InputVerifyStatusPort
186  // ----------------------------------------------------------------------
187 
189  CompFuncPtr m_func;
190 
191  };
192 
195  public Fw::OutputPortBase
196  {
197 
198  public:
199 
200  // ----------------------------------------------------------------------
201  // Public constructors for OutputVerifyStatusPort
202  // ----------------------------------------------------------------------
203 
206 
207  public:
208 
209  // ----------------------------------------------------------------------
210  // Public member functions for OutputVerifyStatusPort
211  // ----------------------------------------------------------------------
212 
214  void init();
215 
217  void addCallPort(
218  InputVerifyStatusPort* callPort
219  );
220 
222  void invoke(
223  const Fw::StringBase& path,
224  U32 crc
225  ) const;
226 
227  private:
228 
229  // ----------------------------------------------------------------------
230  // Private member variables for OutputVerifyStatusPort
231  // ----------------------------------------------------------------------
232 
234  InputVerifyStatusPort* m_port;
235 
236  };
237 
238 #endif
239 
240 }
241 
242 #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
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.
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:54
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)
Implementation of malloc based allocator.
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
void addCallPort(InputVerifyStatusPort *callPort)
Register an input port.