ConOpSys V2970  P004.07
ANVILEX control operating system
Function_Block_Abs_F32_1C.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file Function_Block_Abs_F32_1C.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 1C
38 //! A F32 addition function block
39 
40 //------------------------------------------------------------------------------
41 //! @page Arithmetic_Blocks_Page ABS
42 //!
43 //! ABS - Function block description first line text.
44 //!
45 //! ABS - 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 Single 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 //! 1
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 
113  virtual ~TFunction_Block_Abs_F32_1C();
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
144  //! \par Connector position
145  //! 1
147 
148  //--------------------------------------------------------------------------
149  // Function block output connectors
150  //--------------------------------------------------------------------------
151 
152  //! @brief Function block output signal
153  //! \par Connector position
154  //! 1
156 
157  //----------------------------------------------------------------------------
158  // Protrcted defines, methods and variables
159  //----------------------------------------------------------------------------
160 
161  protected:
162 
163  //----------------------------------------------------------------------------
164  // Private defines, methods and variables
165  //----------------------------------------------------------------------------
166 
167  private:
168 
169 };
170 
171 //------------------------------------------------------------------------------
172 // End of file
173 //------------------------------------------------------------------------------
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
Single channel 32-bit floating point absolute value class.
Definition: Function_Block_Abs_F32_1C.h:87
virtual ~TFunction_Block_Abs_F32_1C()
Class destructor method.
Definition: Function_Block_Abs_F32_1C.cpp:91
virtual VOID Init()
Function block initialisation method.
Definition: Function_Block_Abs_F32_1C.cpp:99
TBlock_Input_Connector object_f32_Input
Function block input signal.
Definition: Function_Block_Abs_F32_1C.h:146
TFunction_Block_Abs_F32_1C()
Class constructor method.
Definition: Function_Block_Abs_F32_1C.cpp:66
virtual VOID Execute()
Function block execution method.
Definition: Function_Block_Abs_F32_1C.cpp:107
TBlock_Output_Connector object_f32_Output
Function block output signal.
Definition: Function_Block_Abs_F32_1C.h:155
Function block base class for device.
Definition: Function_Block_Base.h:96