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
PassiveTest.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title PassiveTest.hpp
3// \author tiffany
4// \brief hpp file for PassiveTest component implementation class
5// ======================================================================
6
7#ifndef PassiveTest_HPP
8#define PassiveTest_HPP
9
10#include "FppTest/component/passive/PassiveTestComponentAc.hpp"
12
13
15 public PassiveTestComponentBase
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 instance = 0
32 );
33
36
37 PRIVATE:
38
39 // ----------------------------------------------------------------------
40 // Handler implementations for user-defined typed input ports
41 // ----------------------------------------------------------------------
42
44 void arrayArgsGuarded_handler(
45 NATIVE_INT_TYPE portNum,
46 const FormalParamArray& a,
47 FormalParamArray& aRef
48 );
49
51 void arrayArgsSync_handler(
52 NATIVE_INT_TYPE portNum,
53 const FormalParamArray& a,
54 FormalParamArray& aRef
55 );
56
58 FormalParamArray arrayReturnGuarded_handler(
59 NATIVE_INT_TYPE portNum,
60 const FormalParamArray& a,
61 FormalParamArray& aRef
62 );
63
65 FormalParamArray arrayReturnSync_handler(
66 NATIVE_INT_TYPE portNum,
67 const FormalParamArray& a,
68 FormalParamArray& aRef
69 );
70
72 void cmdOut_handler(
73 NATIVE_INT_TYPE portNum,
74 FwOpcodeType opCode,
75 U32 cmdSeq,
76 Fw::CmdArgBuffer& args
77 );
78
80 void enumArgsGuarded_handler(
81 NATIVE_INT_TYPE portNum,
82 const FormalParamEnum& en,
83 FormalParamEnum& enRef
84 );
85
87 void enumArgsSync_handler(
88 NATIVE_INT_TYPE portNum,
89 const FormalParamEnum& en,
90 FormalParamEnum& enRef
91 );
92
94 FormalParamEnum enumReturnGuarded_handler(
95 NATIVE_INT_TYPE portNum,
96 const FormalParamEnum& en,
97 FormalParamEnum& enRef
98 );
99
101 FormalParamEnum enumReturnSync_handler(
102 NATIVE_INT_TYPE portNum,
103 const FormalParamEnum& en,
104 FormalParamEnum& enRef
105 );
106
108 void noArgsGuarded_handler(
109 NATIVE_INT_TYPE portNum
110 );
111
113 bool noArgsReturnGuarded_handler(
114 NATIVE_INT_TYPE portNum
115 );
116
118 bool noArgsReturnSync_handler(
119 NATIVE_INT_TYPE portNum
120 );
121
123 void noArgsSync_handler(
124 NATIVE_INT_TYPE portNum
125 );
126
128 void primitiveArgsGuarded_handler(
129 NATIVE_INT_TYPE portNum,
130 U32 u32,
131 U32& u32Ref,
132 F32 f32,
133 F32& f32Ref,
134 bool b,
135 bool& bRef
136 );
137
139 void primitiveArgsSync_handler(
140 NATIVE_INT_TYPE portNum,
141 U32 u32,
142 U32& u32Ref,
143 F32 f32,
144 F32& f32Ref,
145 bool b,
146 bool& bRef
147 );
148
150 U32 primitiveReturnGuarded_handler(
151 NATIVE_INT_TYPE portNum,
152 U32 u32,
153 U32& u32Ref,
154 F32 f32,
155 F32& f32Ref,
156 bool b,
157 bool& bRef
158 );
159
161 U32 primitiveReturnSync_handler(
162 NATIVE_INT_TYPE portNum,
163 U32 u32,
164 U32& u32Ref,
165 F32 f32,
166 F32& f32Ref,
167 bool b,
168 bool& bRef
169 );
170
172 void stringArgsGuarded_handler(
173 NATIVE_INT_TYPE portNum,
174 const StringArgsPortStrings::StringSize80& str80,
175 StringArgsPortStrings::StringSize80& str80Ref,
176 const StringArgsPortStrings::StringSize100& str100,
177 StringArgsPortStrings::StringSize100& str100Ref
178 );
179
181 void stringArgsSync_handler(
182 NATIVE_INT_TYPE portNum,
183 const StringArgsPortStrings::StringSize80& str80,
184 StringArgsPortStrings::StringSize80& str80Ref,
185 const StringArgsPortStrings::StringSize100& str100,
186 StringArgsPortStrings::StringSize100& str100Ref
187 );
188
190 void structArgsGuarded_handler(
191 NATIVE_INT_TYPE portNum,
192 const FormalParamStruct& s,
193 FormalParamStruct& sRef
194 );
195
197 void structArgsSync_handler(
198 NATIVE_INT_TYPE portNum,
199 const FormalParamStruct& s,
200 FormalParamStruct& sRef
201 );
202
204 FormalParamStruct structReturnGuarded_handler(
205 NATIVE_INT_TYPE portNum,
206 const FormalParamStruct& s,
207 FormalParamStruct& sRef
208 );
209
211 FormalParamStruct structReturnSync_handler(
212 NATIVE_INT_TYPE portNum,
213 const FormalParamStruct& s,
214 FormalParamStruct& sRef
215 );
216
217 PRIVATE:
218
219 // ----------------------------------------------------------------------
220 // Handler implementations for user-defined serial input ports
221 // ----------------------------------------------------------------------
222
224 void serialGuarded_handler(
225 NATIVE_INT_TYPE portNum,
227 );
228
230 void serialSync_handler(
231 NATIVE_INT_TYPE portNum,
233 );
234
235 PRIVATE:
236
237 // ----------------------------------------------------------------------
238 // Handler implementations for commands
239 // ----------------------------------------------------------------------
240
242 void CMD_NO_ARGS_cmdHandler(
243 FwOpcodeType opCode,
244 U32 cmdSeq
245 );
246
248 void CMD_PRIMITIVE_cmdHandler(
249 FwOpcodeType opCode,
250 U32 cmdSeq,
251 U32 u32_1,
252 U32 u32_2,
253 F32 f32_1,
254 F32 f32_2,
255 bool b1,
256 bool b2
257 );
258
260 void CMD_STRINGS_cmdHandler(
261 FwOpcodeType opCode,
262 U32 cmdSeq,
263 const Fw::CmdStringArg& str1,
264 const Fw::CmdStringArg& str2
265 );
266
268 void CMD_ENUM_cmdHandler(
269 FwOpcodeType opCode,
270 U32 cmdSeq,
271 FormalParamEnum en
272 );
273
275 void CMD_ARRAY_cmdHandler(
276 FwOpcodeType opCode,
277 U32 cmdSeq,
278 FormalParamArray arr
279 );
280
282 void CMD_STRUCT_cmdHandler(
283 FwOpcodeType opCode,
284 U32 cmdSeq,
285 FormalParamStruct str
286 );
287
288 public:
289
292
293 // Command test values
299
300};
301
302
303#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
void init(NATIVE_INT_TYPE instance=0)
Initialize PassiveTest object.
FppTest::Types::EnumParam enumCmd
FppTest::Types::PrimitiveParams primitiveCmd
~PassiveTest()
Destroy PassiveTest object.
PassiveTest(const char *const compName)
Construct PassiveTest object.
FppTest::Types::CmdStringParams stringCmd
FppTest::Types::StructParam structCmd
Fw::SerializeStatus serializeStatus
Enables checking the serialization status of serial port invocations.
FppTest::Types::ArrayParam arrayCmd
SerializeStatus
forward declaration for string