F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ActiveTest.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title ActiveTest.hpp
3// \author tiffany
4// \brief hpp file for ActiveTest component implementation class
5// ======================================================================
6
7#ifndef ActiveTest_HPP
8#define ActiveTest_HPP
9
10#include "FppTest/component/active/ActiveTestComponentAc.hpp"
12
13
15 public ActiveTestComponentBase
16{
17
18 public:
19
20 // ----------------------------------------------------------------------
21 // Component construction and destruction
22 // ----------------------------------------------------------------------
23
26 const char* const compName
27 );
28
30 void init(
31 NATIVE_INT_TYPE queueDepth,
32 NATIVE_INT_TYPE msgSize,
33 NATIVE_INT_TYPE instance = 0
34 );
35
38
39 PRIVATE:
40
41 // ----------------------------------------------------------------------
42 // Handler implementations for user-defined typed input ports
43 // ----------------------------------------------------------------------
44
46 void arrayArgsAsync_handler(
47 NATIVE_INT_TYPE portNum,
48 const FormalParamArray& a,
49 FormalParamArray& aRef
50 );
51
53 void arrayArgsGuarded_handler(
54 NATIVE_INT_TYPE portNum,
55 const FormalParamArray& a,
56 FormalParamArray& aRef
57 );
58
60 void arrayArgsSync_handler(
61 NATIVE_INT_TYPE portNum,
62 const FormalParamArray& a,
63 FormalParamArray& aRef
64 );
65
67 FormalParamArray arrayReturnGuarded_handler(
68 NATIVE_INT_TYPE portNum,
69 const FormalParamArray& a,
70 FormalParamArray& aRef
71 );
72
74 FormalParamArray arrayReturnSync_handler(
75 NATIVE_INT_TYPE portNum,
76 const FormalParamArray& a,
77 FormalParamArray& aRef
78 );
79
81 void cmdOut_handler(
82 NATIVE_INT_TYPE portNum,
83 FwOpcodeType opCode,
84 U32 cmdSeq,
85 Fw::CmdArgBuffer& args
86 );
87
89 void enumArgsAsync_handler(
90 NATIVE_INT_TYPE portNum,
91 const FormalParamEnum& en,
92 FormalParamEnum& enRef
93 );
94
96 void enumArgsGuarded_handler(
97 NATIVE_INT_TYPE portNum,
98 const FormalParamEnum& en,
99 FormalParamEnum& enRef
100 );
101
103 void enumArgsSync_handler(
104 NATIVE_INT_TYPE portNum,
105 const FormalParamEnum& en,
106 FormalParamEnum& enRef
107 );
108
110 FormalParamEnum enumReturnGuarded_handler(
111 NATIVE_INT_TYPE portNum,
112 const FormalParamEnum& en,
113 FormalParamEnum& enRef
114 );
115
117 FormalParamEnum enumReturnSync_handler(
118 NATIVE_INT_TYPE portNum,
119 const FormalParamEnum& en,
120 FormalParamEnum& enRef
121 );
122
124 void noArgsAsync_handler(
125 NATIVE_INT_TYPE portNum
126 );
127
129 void noArgsGuarded_handler(
130 NATIVE_INT_TYPE portNum
131 );
132
134 bool noArgsReturnGuarded_handler(
135 NATIVE_INT_TYPE portNum
136 );
137
139 bool noArgsReturnSync_handler(
140 NATIVE_INT_TYPE portNum
141 );
142
144 void noArgsSync_handler(
145 NATIVE_INT_TYPE portNum
146 );
147
149 void primitiveArgsAsync_handler(
150 NATIVE_INT_TYPE portNum,
151 U32 u32,
152 U32& u32Ref,
153 F32 f32,
154 F32& f32Ref,
155 bool b,
156 bool& bRef
157 );
158
160 void primitiveArgsGuarded_handler(
161 NATIVE_INT_TYPE portNum,
162 U32 u32,
163 U32& u32Ref,
164 F32 f32,
165 F32& f32Ref,
166 bool b,
167 bool& bRef
168 );
169
171 void primitiveArgsSync_handler(
172 NATIVE_INT_TYPE portNum,
173 U32 u32,
174 U32& u32Ref,
175 F32 f32,
176 F32& f32Ref,
177 bool b,
178 bool& bRef
179 );
180
182 U32 primitiveReturnGuarded_handler(
183 NATIVE_INT_TYPE portNum,
184 U32 u32,
185 U32& u32Ref,
186 F32 f32,
187 F32& f32Ref,
188 bool b,
189 bool& bRef
190 );
191
193 U32 primitiveReturnSync_handler(
194 NATIVE_INT_TYPE portNum,
195 U32 u32,
196 U32& u32Ref,
197 F32 f32,
198 F32& f32Ref,
199 bool b,
200 bool& bRef
201 );
202
204 void stringArgsAsync_handler(
205 NATIVE_INT_TYPE portNum,
206 const StringArgsPortStrings::StringSize80& str80,
207 StringArgsPortStrings::StringSize80& str80Ref,
208 const StringArgsPortStrings::StringSize100& str100,
209 StringArgsPortStrings::StringSize100& str100Ref
210 );
211
213 void stringArgsGuarded_handler(
214 NATIVE_INT_TYPE portNum,
215 const StringArgsPortStrings::StringSize80& str80,
216 StringArgsPortStrings::StringSize80& str80Ref,
217 const StringArgsPortStrings::StringSize100& str100,
218 StringArgsPortStrings::StringSize100& str100Ref
219 );
220
222 void stringArgsSync_handler(
223 NATIVE_INT_TYPE portNum,
224 const StringArgsPortStrings::StringSize80& str80,
225 StringArgsPortStrings::StringSize80& str80Ref,
226 const StringArgsPortStrings::StringSize100& str100,
227 StringArgsPortStrings::StringSize100& str100Ref
228 );
229
231 void structArgsAsync_handler(
232 NATIVE_INT_TYPE portNum,
233 const FormalParamStruct& s,
234 FormalParamStruct& sRef
235 );
236
238 void structArgsGuarded_handler(
239 NATIVE_INT_TYPE portNum,
240 const FormalParamStruct& s,
241 FormalParamStruct& sRef
242 );
243
245 void structArgsSync_handler(
246 NATIVE_INT_TYPE portNum,
247 const FormalParamStruct& s,
248 FormalParamStruct& sRef
249 );
250
252 FormalParamStruct structReturnGuarded_handler(
253 NATIVE_INT_TYPE portNum,
254 const FormalParamStruct& s,
255 FormalParamStruct& sRef
256 );
257
259 FormalParamStruct structReturnSync_handler(
260 NATIVE_INT_TYPE portNum,
261 const FormalParamStruct& s,
262 FormalParamStruct& sRef
263 );
264
265 PRIVATE:
266
267 // ----------------------------------------------------------------------
268 // Handler implementations for user-defined serial input ports
269 // ----------------------------------------------------------------------
270
272 void serialAsync_handler(
273 NATIVE_INT_TYPE portNum,
275 );
276
278 void serialAsyncAssert_handler(
279 NATIVE_INT_TYPE portNum,
281 );
282
284 void serialAsyncBlockPriority_handler(
285 NATIVE_INT_TYPE portNum,
287 );
288
290 void serialAsyncDropPriority_handler(
291 NATIVE_INT_TYPE portNum,
293 );
294
296 void serialGuarded_handler(
297 NATIVE_INT_TYPE portNum,
299 );
300
302 void serialSync_handler(
303 NATIVE_INT_TYPE portNum,
305 );
306
307 PRIVATE:
308
309 // ----------------------------------------------------------------------
310 // Handler implementations for commands
311 // ----------------------------------------------------------------------
312
314 void CMD_NO_ARGS_cmdHandler(
315 FwOpcodeType opCode,
316 U32 cmdSeq
317 );
318
320 void CMD_PRIMITIVE_cmdHandler(
321 FwOpcodeType opCode,
322 U32 cmdSeq,
323 U32 u32_1,
324 U32 u32_2,
325 F32 f32_1,
326 F32 f32_2,
327 bool b1,
328 bool b2
329 );
330
332 void CMD_STRINGS_cmdHandler(
333 FwOpcodeType opCode,
334 U32 cmdSeq,
335 const Fw::CmdStringArg& str1,
336 const Fw::CmdStringArg& str2
337 );
338
340 void CMD_ENUM_cmdHandler(
341 FwOpcodeType opCode,
342 U32 cmdSeq,
343 FormalParamEnum en
344 );
345
347 void CMD_ARRAY_cmdHandler(
348 FwOpcodeType opCode,
349 U32 cmdSeq,
350 FormalParamArray arr
351 );
352
354 void CMD_STRUCT_cmdHandler(
355 FwOpcodeType opCode,
356 U32 cmdSeq,
357 FormalParamStruct str
358 );
359
361 void CMD_ASYNC_NO_ARGS_cmdHandler(
362 FwOpcodeType opCode,
363 U32 cmdSeq
364 );
365
367 void CMD_ASYNC_PRIMITIVE_cmdHandler(
368 FwOpcodeType opCode,
369 U32 cmdSeq,
370 U32 u32_1,
371 U32 u32_2,
372 F32 f32_1,
373 F32 f32_2,
374 bool b1,
375 bool b2
376 );
377
379 void CMD_ASYNC_STRINGS_cmdHandler(
380 FwOpcodeType opCode,
381 U32 cmdSeq,
382 const Fw::CmdStringArg& str1,
383 const Fw::CmdStringArg& str2
384 );
385
387 void CMD_ASYNC_ENUM_cmdHandler(
388 FwOpcodeType opCode,
389 U32 cmdSeq,
390 FormalParamEnum en
391 );
392
394 void CMD_ASYNC_ARRAY_cmdHandler(
395 FwOpcodeType opCode,
396 U32 cmdSeq,
397 FormalParamArray arr
398 );
399
401 void CMD_ASYNC_STRUCT_cmdHandler(
402 FwOpcodeType opCode,
403 U32 cmdSeq,
404 FormalParamStruct str
405 );
406
407 PRIVATE:
408
409 // ----------------------------------------------------------------------
410 // Handler implementations for user-defined internal interfaces
411 // ----------------------------------------------------------------------
412
414 void internalArray_internalInterfaceHandler(
415 const FormalParamArray& arr
416 );
417
419 void internalEnum_internalInterfaceHandler(
420 const FormalParamEnum& en
421 );
422
424 void internalNoArgs_internalInterfaceHandler();
425
427 void internalPrimitive_internalInterfaceHandler(
428 U32 u32_1,
429 U32 u32_2,
430 F32 f32_1,
431 F32 f32_2,
432 bool b1,
433 bool b2
434 );
435
437 void internalString_internalInterfaceHandler(
438 const Fw::InternalInterfaceString& str1,
439 const Fw::InternalInterfaceString& str2
440 );
441
443 void internalStruct_internalInterfaceHandler(
444 const FormalParamStruct& str
445 );
446
447 public:
448
451
452 // Command test values
458
459 // Internal interface test values
465
466};
467
468
469#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
float F32
32-bit floating point
Definition BasicTypes.h:45
U32 FwOpcodeType
Definition FpConfig.h:56
FppTest::Types::EnumParam enumInterface
FppTest::Types::CmdStringParams stringCmd
FppTest::Types::StructParam structInterface
ActiveTest(const char *const compName)
Construct ActiveTest object.
FppTest::Types::StructParam structCmd
FppTest::Types::PrimitiveParams primitiveInterface
FppTest::Types::ArrayParam arrayInterface
~ActiveTest()
Destroy ActiveTest object.
void init(NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE msgSize, NATIVE_INT_TYPE instance=0)
Initialize ActiveTest object.
FppTest::Types::ArrayParam arrayCmd
FppTest::Types::EnumParam enumCmd
FppTest::Types::InternalInterfaceStringParams stringInterface
Fw::SerializeStatus serializeStatus
Enables checking the serialization status of serial port invocations.
FppTest::Types::PrimitiveParams primitiveCmd
SerializeStatus
forward declaration for string