ConOpSys V2970  P004.07
ANVILEX control operating system
Function_Block_Sinus_Cosinus.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Function_Block_Sinus_Cosinus.h
3 //! @author ANVILEX GmbH
4 //! @version V1.0
5 //! @date 04.05.2015
6 //! @brief Sinus and cosinus class header file.
7 //! @attention
8 //!
9 //! COPYRIGHT(C) 2015 ANVILEX GmbH
10 //!
11 //! Redistribution and use in source and binary forms, with or without
12 //! modification, are permitted provided that the following conditions are met:
13 //!
14 //! 1. Redistributions of source code must retain the above copyright notice,
15 //! this list of conditions and the following disclaimer.
16 //!
17 //! 2. Redistributions in binary form must reproduce the above copyright notice,
18 //! this list of conditions and the following disclaimer in the documentation
19 //! and/or other materials provided with the distribution.
20 //!
21 //! 3. Neither the name of ANVILEX nor the names of its contributors may be
22 //! used to endorse or promote products derived from this software without
23 //! specific prior written permission.
24 //!
25 //! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 //! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 //! IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 //! ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29 //! LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 //! CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 //! SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 //! INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 //! CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 //! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 //! POSSIBILITY OF SUCH DAMAGE.
36 //------------------------------------------------------------------------------
37 //
38 // TFunction_Block_Sinus_Cosinus_T1
39 // TFunction_Block_Sinus_Cosinus_T2
40 // TFunction_Block_Sinus_Cosinus_T3
41 // TFunction_Block_Sinus_Cosinus_T4
42 //
43 //------------------------------------------------------------------------------
44 
45 //------------------------------------------------------------------------------
46 // Protecting header files from mutual, recursive inclusion.
47 //------------------------------------------------------------------------------
48 
49 #pragma once
50 
51 //------------------------------------------------------------------------------
52 // Include standard libraries header files
53 //------------------------------------------------------------------------------
54 
55 //------------------------------------------------------------------------------
56 // Include thrid party header files
57 //------------------------------------------------------------------------------
58 
59 //------------------------------------------------------------------------------
60 // Include ConOpSys header files
61 //------------------------------------------------------------------------------
62 
63 #include "Function_Block_Base.h"
64 
65 //------------------------------------------------------------------------------
66 // Include ConOpSys application header files
67 //------------------------------------------------------------------------------
68 
69 //------------------------------------------------------------------------------
70 // Macros
71 //------------------------------------------------------------------------------
72 
73 //------------------------------------------------------------------------------
74 //! @brief Class declaration description
75 //------------------------------------------------------------------------------
76 
78 {
79 
80  //----------------------------------------------------------------------------
81  // Public defines, methods and variables
82  //----------------------------------------------------------------------------
83 
84  public:
85 
86  //!-------------------------------------------------------------------------
87  //! @brief Class constructor method.
88  //! @note None
89  //! \par Override
90  //! Not allowed
91  //! @attention Don't call this method directly.
92  //--------------------------------------------------------------------------
93 
95 
96  //!-------------------------------------------------------------------------
97  //! @brief Class destructor method.
98  //! @note None
99  //! \par Override
100  //! Not allowed
101  //! @attention Don't call this method directly.
102  //--------------------------------------------------------------------------
103 
105 
106  //!-------------------------------------------------------------------------
107  //! @brief Function block initialisation method.
108  //! @note None
109  //! \par Override
110  //! Not allowed
111  //! @attention Don't call this method directly.
112  //--------------------------------------------------------------------------
113 
114  virtual VOID Init();
115 
116  //!-------------------------------------------------------------------------
117  //! @brief Function block execution method.
118  //! @note None
119  //! \par Override
120  //! Not allowed
121  //! @attention None
122  //--------------------------------------------------------------------------
123 
124  virtual VOID Execute();
125 
126  //--------------------------------------------------------------------------
127  // Function block parameter connectors
128  //--------------------------------------------------------------------------
129 
130  //--------------------------------------------------------------------------
131  // Function block input connectors
132  //--------------------------------------------------------------------------
133 
134  TBlock_Input_Connector object_f32_Theta; //!< Theta input signal
135 
136  //--------------------------------------------------------------------------
137  // Function block output connectors
138  //--------------------------------------------------------------------------
139 
140  TBlock_Output_Connector object_f32_Sinus; //!< Sinus output signal
141  TBlock_Output_Connector object_f32_Cosinus; //!< Cosinus output signal
142 
143  //----------------------------------------------------------------------------
144  // Protected methods and variables
145  //----------------------------------------------------------------------------
146 
147  protected:
148 
149  //----------------------------------------------------------------------------
150  // Private methods and variables
151  //----------------------------------------------------------------------------
152 
153  private:
154 
155 };
156 
157 //------------------------------------------------------------------------------
158 //! @brief Class declaration description
159 //------------------------------------------------------------------------------
160 
162 {
163 
164  //----------------------------------------------------------------------------
165  // Public defines, methods and variables
166  //----------------------------------------------------------------------------
167 
168  public:
169 
170  //!-------------------------------------------------------------------------
171  //! @brief Class constructor method.
172  //! @note None
173  //! \par Override
174  //! Not allowed
175  //! @attention Don't call this method directly.
176  //--------------------------------------------------------------------------
177 
179 
180  //!-------------------------------------------------------------------------
181  //! @brief Class destructor method.
182  //! @note None
183  //! \par Override
184  //! Not allowed
185  //! @attention Don't call this method directly.
186  //--------------------------------------------------------------------------
187 
189 
190  //!-------------------------------------------------------------------------
191  //! @brief Function block initialisation method.
192  //! @note None
193  //! \par Override
194  //! Not allowed
195  //! @attention Don't call this method directly.
196  //--------------------------------------------------------------------------
197 
198  virtual VOID Init();
199 
200  //!-------------------------------------------------------------------------
201  //! @brief Function block execution method.
202  //! @note None
203  //! \par Override
204  //! Not allowed
205  //! @attention None
206  //--------------------------------------------------------------------------
207 
208  virtual VOID Execute();
209 
210  //--------------------------------------------------------------------------
211  // Function block parameter connectors
212  //--------------------------------------------------------------------------
213 
214  //--------------------------------------------------------------------------
215  // Function block input connectors
216  //--------------------------------------------------------------------------
217 
218  TBlock_Input_Connector object_f32_Theta; //!< Theta input signal
219  TBlock_Input_Connector object_f32_Offset; //!< Theta offset input signal
220 
221  //--------------------------------------------------------------------------
222  // Function block output connectors
223  //--------------------------------------------------------------------------
224 
225  TBlock_Output_Connector object_f32_Sinus; //!< Sinus output signal
226  TBlock_Output_Connector object_f32_Cosinus; //!< Cosinus output signal
227 
228  //----------------------------------------------------------------------------
229  // Protected methods and variables
230  //----------------------------------------------------------------------------
231 
232  protected:
233 
234  //----------------------------------------------------------------------------
235  // Private methods and variables
236  //----------------------------------------------------------------------------
237 
238  private:
239 
240 };
241 
242 //------------------------------------------------------------------------------
243 
245 {
246 
247  //----------------------------------------------------------------------------
248  // Public defines, methods and variables
249  //----------------------------------------------------------------------------
250 
251  public:
252 
253  //!-------------------------------------------------------------------------
254  //! @brief Class constructor method.
255  //! @note None
256  //! \par Override
257  //! Not allowed
258  //! @attention Don't call this method directly.
259  //--------------------------------------------------------------------------
260 
262 
263  //!-------------------------------------------------------------------------
264  //! @brief Class destructor method.
265  //! @note None
266  //! \par Override
267  //! Not allowed
268  //! @attention Don't call this method directly.
269  //--------------------------------------------------------------------------
270 
272 
273  //!-------------------------------------------------------------------------
274  //! @brief Function block initialisation method.
275  //! @note None
276  //! \par Override
277  //! Not allowed
278  //! @attention Don't call this method directly.
279  //--------------------------------------------------------------------------
280 
281  virtual VOID Init();
282 
283  //!-------------------------------------------------------------------------
284  //! @brief Function block execution method.
285  //! @note None
286  //! \par Override
287  //! Not allowed
288  //! @attention None
289  //--------------------------------------------------------------------------
290 
291  virtual VOID Execute();
292 
293  //--------------------------------------------------------------------------
294  // Function block parameter connectors
295  //--------------------------------------------------------------------------
296 
297  //--------------------------------------------------------------------------
298  // Function block input connectors
299  //--------------------------------------------------------------------------
300 
301  TBlock_Input_Connector object_f32_Theta; //!< Theta input signal
302 
303  //--------------------------------------------------------------------------
304  // Function block output connectors
305  //--------------------------------------------------------------------------
306 
307  TBlock_Output_Connector object_f32_Sinus_P; //!< Sinus output signal
308  TBlock_Output_Connector object_f32_Cosinus_P; //!< Cosinus output signal
309  TBlock_Output_Connector object_f32_Sinus_N; //!< Sinus output signal
310  TBlock_Output_Connector object_f32_Cosinus_N; //!< Cosinus output signal
311 
312  //----------------------------------------------------------------------------
313  // Protected methods and variables
314  //----------------------------------------------------------------------------
315 
316  protected:
317 
318  //----------------------------------------------------------------------------
319  // Private methods and variables
320  //----------------------------------------------------------------------------
321 
322  private:
323 
324 };
325 
326 //------------------------------------------------------------------------------
327 
329 {
330 
331  //----------------------------------------------------------------------------
332  // Public defines, methods and variables
333  //----------------------------------------------------------------------------
334 
335  public:
336 
337  //!-------------------------------------------------------------------------
338  //! @brief Class constructor method.
339  //! @note None
340  //! \par Override
341  //! Not allowed
342  //! @attention Don't call this method directly.
343  //--------------------------------------------------------------------------
344 
346 
347  //!-------------------------------------------------------------------------
348  //! @brief Class destructor method.
349  //! @note None
350  //! \par Override
351  //! Not allowed
352  //! @attention Don't call this method directly.
353  //--------------------------------------------------------------------------
354 
356 
357  //!-------------------------------------------------------------------------
358  //! @brief Function block initialisation method.
359  //! @note None
360  //! \par Override
361  //! Not allowed
362  //! @attention Don't call this method directly.
363  //--------------------------------------------------------------------------
364 
365  virtual VOID Init();
366 
367  //!-------------------------------------------------------------------------
368  //! @brief Function block execution method.
369  //! @note None
370  //! \par Override
371  //! Not allowed
372  //! @attention None
373  //--------------------------------------------------------------------------
374 
375  virtual VOID Execute();
376 
377  //--------------------------------------------------------------------------
378  // Function block parameter connectors
379  //--------------------------------------------------------------------------
380 
381  //--------------------------------------------------------------------------
382  // Function block input connectors
383  //--------------------------------------------------------------------------
384 
385  TBlock_Input_Connector object_f32_Theta; //!< Theta input signal
386  TBlock_Input_Connector object_f32_Offset; //!< Theta offset input signal
387 
388  //--------------------------------------------------------------------------
389  // Function block output connectors
390  //--------------------------------------------------------------------------
391 
392  TBlock_Output_Connector object_f32_Sinus_P; //!< Sinus output signal
393  TBlock_Output_Connector object_f32_Cosinus_P; //!< Cosinus output signal
394  TBlock_Output_Connector object_f32_Sinus_N; //!< Sinus output signal
395  TBlock_Output_Connector object_f32_Cosinus_N; //!< Cosinus output signal
396 
397  //----------------------------------------------------------------------------
398  // Protected methods and variables
399  //----------------------------------------------------------------------------
400 
401  protected:
402 
403  //----------------------------------------------------------------------------
404  // Private methods and variables
405  //----------------------------------------------------------------------------
406 
407  private:
408 
409 };
410 
411 //------------------------------------------------------------------------------
412 // Export references to the objects
413 //------------------------------------------------------------------------------
414 
415 //------------------------------------------------------------------------------
416 // Export references to the functions
417 //------------------------------------------------------------------------------
418 
419 //------------------------------------------------------------------------------
420 // End Of File
421 //------------------------------------------------------------------------------
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
Function block base class header file.
Function block input connector class.
Definition: Block_Input_Connector.h:83
Function block output connector class.
Definition: Block_Output_Connector.h:59
Function block base class for device.
Definition: Function_Block_Base.h:96
Class declaration description.
Definition: Function_Block_Sinus_Cosinus.h:78
TBlock_Input_Connector object_f32_Theta
Theta input signal.
Definition: Function_Block_Sinus_Cosinus.h:134
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Sinus_Cosinus.cpp:102
TFunction_Block_Sinus_Cosinus_T1()
Class constructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:68
TBlock_Output_Connector object_f32_Cosinus
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:141
virtual ~TFunction_Block_Sinus_Cosinus_T1()
Class destructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:94
TBlock_Output_Connector object_f32_Sinus
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:140
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Sinus_Cosinus.cpp:110
Class declaration description.
Definition: Function_Block_Sinus_Cosinus.h:162
TBlock_Output_Connector object_f32_Sinus
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:225
TBlock_Input_Connector object_f32_Offset
Theta offset input signal.
Definition: Function_Block_Sinus_Cosinus.h:219
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Sinus_Cosinus.cpp:160
virtual ~TFunction_Block_Sinus_Cosinus_T2()
Class destructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:152
TBlock_Output_Connector object_f32_Cosinus
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:226
TBlock_Input_Connector object_f32_Theta
Theta input signal.
Definition: Function_Block_Sinus_Cosinus.h:218
TFunction_Block_Sinus_Cosinus_T2()
Class constructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:123
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Sinus_Cosinus.cpp:168
Definition: Function_Block_Sinus_Cosinus.h:245
TBlock_Input_Connector object_f32_Theta
Theta input signal.
Definition: Function_Block_Sinus_Cosinus.h:301
TBlock_Output_Connector object_f32_Cosinus_P
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:308
virtual ~TFunction_Block_Sinus_Cosinus_T3()
Class destructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:261
TFunction_Block_Sinus_Cosinus_T3()
Class constructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:229
TBlock_Output_Connector object_f32_Sinus_N
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:309
TBlock_Output_Connector object_f32_Cosinus_N
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:310
TBlock_Output_Connector object_f32_Sinus_P
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:307
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Sinus_Cosinus.cpp:269
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Sinus_Cosinus.cpp:277
Definition: Function_Block_Sinus_Cosinus.h:329
TFunction_Block_Sinus_Cosinus_T4()
Class constructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:296
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Sinus_Cosinus.cpp:339
TBlock_Output_Connector object_f32_Cosinus_N
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:395
TBlock_Input_Connector object_f32_Offset
Theta offset input signal.
Definition: Function_Block_Sinus_Cosinus.h:386
TBlock_Output_Connector object_f32_Sinus_P
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:392
TBlock_Output_Connector object_f32_Sinus_N
Sinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:394
TBlock_Output_Connector object_f32_Cosinus_P
Cosinus output signal.
Definition: Function_Block_Sinus_Cosinus.h:393
TBlock_Input_Connector object_f32_Theta
Theta input signal.
Definition: Function_Block_Sinus_Cosinus.h:385
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Sinus_Cosinus.cpp:347
virtual ~TFunction_Block_Sinus_Cosinus_T4()
Class destructor method.
Definition: Function_Block_Sinus_Cosinus.cpp:331