ConOpSys V2970  P004.07
ANVILEX control operating system
Function_Block_Abs_F32_2C.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Function_Block_Abs_F32_2C.h
3 //! @author ANVILEX GmbH
4 //! @version V1.0
5 //! @date 20.02.2016
6 //! @brief Absolut value function block class header file.
7 //! @attention No special attention requered.
8 //! @copyright Copyright(C) 2016-2022-$year $ ANVILEX LLC. All rights reserved.
9 //! @license
10 //! Redistribution and use in source and binary forms, with or without
11 //! modification, are permitted provided that the following conditions are met:
12 //!
13 //! 1. Redistributions of source code must retain the above copyright notice,
14 //! this list of conditions and the following disclaimer.
15 //!
16 //! 2. Redistributions in binary form must reproduce the above copyright notice,
17 //! this list of conditions and the following disclaimer in the documentation
18 //! and/or other materials provided with the distribution.
19 //!
20 //! 3. Neither the name of ANVILEX nor the names of its contributors may be
21 //! used to endorse or promote products derived from this software without
22 //! specific prior written permission.
23 //!
24 //! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 //! AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 //! IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 //! ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
28 //! LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 //! CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 //! SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 //! INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 //! CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 //! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 //! POSSIBILITY OF SUCH DAMAGE.
35 //------------------------------------------------------------------------------
36 
37 //! @defgroup Doxygen_Function_Block_Abs ABS F32 2C
38 //! A F32 addition function block
39 
40 //------------------------------------------------------------------------------
41 //! @page Doxygen_Function_Block_Abs_F32_2C ABS F32 2C
42 //!
43 //! ABS F32 2C - Function block description first line text.
44 //!
45 //! ABS F32 2C - Function block description second line text.
46 //------------------------------------------------------------------------------
47 
48 //------------------------------------------------------------------------------
49 // Protecting header files from mutual, recursive inclusion.
50 //------------------------------------------------------------------------------
51 
52 #pragma once
53 
54 //------------------------------------------------------------------------------
55 // Include standard libraries header files
56 //------------------------------------------------------------------------------
57 
58 //------------------------------------------------------------------------------
59 // Include thrid party header files
60 //------------------------------------------------------------------------------
61 
62 //------------------------------------------------------------------------------
63 // Include ConOpSys header files
64 //------------------------------------------------------------------------------
65 
66 #include "Function_Block_Base.h"
67 
68 //------------------------------------------------------------------------------
69 // Include ConOpSys application header files
70 //------------------------------------------------------------------------------
71 
72 //------------------------------------------------------------------------------
73 // Macros
74 //------------------------------------------------------------------------------
75 
76 //------------------------------------------------------------------------------
77 //! @brief Dual channel 32-bit floating point absolute value class
78 //! \par Function block group
79 //! Arithmetic
80 //! \par Datatype
81 //! F32
82 //! \par Processing channels
83 //! 2
84 //------------------------------------------------------------------------------
85 
87 {
88 
89  //----------------------------------------------------------------------------
90  // Public defines, methods and variables
91  //----------------------------------------------------------------------------
92 
93  public:
94 
95  //!-------------------------------------------------------------------------
96  //! @brief Class constructor method.
97  //! @note None
98  //! \par Override
99  //! Not allowed
100  //! @attention Don't call this method directly.
101  //--------------------------------------------------------------------------
102 
104 
105  //!-------------------------------------------------------------------------
106  //! @brief Class destructor method.
107  //! @note None
108  //! \par Override
109  //! Not allowed
110  //! @attention Don't call this method directly.
111  //--------------------------------------------------------------------------
112 
114 
115  //!-------------------------------------------------------------------------
116  //! @brief Function block initialisation method.
117  //! @note None
118  //! \par Override
119  //! Not allowed
120  //! @attention Don't call this method directly.
121  //--------------------------------------------------------------------------
122 
123  virtual VOID Init();
124 
125  //!-------------------------------------------------------------------------
126  //! @brief Function block execution method.
127  //! @note None
128  //! \par Override
129  //! Not allowed
130  //! @attention None
131  //--------------------------------------------------------------------------
132 
133  virtual VOID Execute();
134 
135  //--------------------------------------------------------------------------
136  // Function block parameter connectors
137  //--------------------------------------------------------------------------
138 
139  //--------------------------------------------------------------------------
140  // Function block input connectors
141  //--------------------------------------------------------------------------
142 
143  //! @brief Function block input signal of channel 1
144  //! \par Connector position
145  //! 1
147 
148  //! @brief Function block input signal of channel 2
149  //! \par Connector position
150  //! 2
152 
153  //--------------------------------------------------------------------------
154  // Function block output connectors
155  //--------------------------------------------------------------------------
156 
157  //! @brief Function block output of channel 1
158  //! \par Connector position
159  //! 1
161 
162  //! @brief Function block output of channel 2
163  //! \par Connector position
164  //! 2
166 
167  //----------------------------------------------------------------------------
168  // Protected defines, methods and variables
169  //----------------------------------------------------------------------------
170 
171  protected:
172 
173  //----------------------------------------------------------------------------
174  // Private defines, methods and variables
175  //----------------------------------------------------------------------------
176 
177  private:
178 
179 };
180 
181 //------------------------------------------------------------------------------
182 // End of file
183 //------------------------------------------------------------------------------
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
Dual channel 32-bit floating point absolute value class.
Definition: Function_Block_Abs_F32_2C.h:87
TBlock_Output_Connector object_f32_Output_1
Function block output of channel 1.
Definition: Function_Block_Abs_F32_2C.h:160
TBlock_Input_Connector object_f32_Input_1
Function block input signal of channel 1.
Definition: Function_Block_Abs_F32_2C.h:146
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Abs_F32_2C.cpp:101
TBlock_Input_Connector object_f32_Input_2
Function block input signal of channel 2.
Definition: Function_Block_Abs_F32_2C.h:151
TBlock_Output_Connector object_f32_Output_2
Function block output of channel 2.
Definition: Function_Block_Abs_F32_2C.h:165
virtual ~TFunction_Block_Abs_F32_3C()
Class destructor method.
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Abs_F32_2C.cpp:109
TFunction_Block_Abs_F32_3C()
Class constructor method.
Function block base class for device.
Definition: Function_Block_Base.h:96