110 #define STD_REAL_FIX_POINT_16 (1)
111 #define STD_REAL_FIX_POINT_32 (2)
112 #define STD_REAL_FLOAT_32 (3)
114 #ifndef STD_REAL_TYPE
115 #define STD_REAL_TYPE (STD_REAL_FIX_POINT_16)
121 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
124 #define bool unsigned int
137 #define STD_REAL_SHIFT_Qn8_y (-8 - 1)
138 #define STD_REAL_SHIFT_Qn7_y (-7 - 1)
139 #define STD_REAL_SHIFT_Qn6_y (-6 - 1)
140 #define STD_REAL_SHIFT_Qn5_y (-5 - 1)
141 #define STD_REAL_SHIFT_Qn4_y (-4 - 1)
142 #define STD_REAL_SHIFT_Qn3_y (-3 - 1)
143 #define STD_REAL_SHIFT_Qn2_y (-2 - 1)
144 #define STD_REAL_SHIFT_Qn1_y (-1 - 1)
146 #define STD_REAL_SHIFT_Q0_y ( 0 - 1)
147 #define STD_REAL_SHIFT_Q1_y ( 1 - 1)
148 #define STD_REAL_SHIFT_Q2_y ( 2 - 1)
149 #define STD_REAL_SHIFT_Q3_y ( 3 - 1)
150 #define STD_REAL_SHIFT_Q4_y ( 4 - 1)
151 #define STD_REAL_SHIFT_Q5_y ( 5 - 1)
152 #define STD_REAL_SHIFT_Q6_y ( 6 - 1)
153 #define STD_REAL_SHIFT_Q7_y ( 7 - 1)
154 #define STD_REAL_SHIFT_Q8_y ( 8 - 1)
155 #define STD_REAL_SHIFT_Q9_y ( 9 - 1)
156 #define STD_REAL_SHIFT_Q10_y ( 10 - 1)
157 #define STD_REAL_SHIFT_Q11_y ( 11 - 1)
158 #define STD_REAL_SHIFT_Q12_y ( 12 - 1)
159 #define STD_REAL_SHIFT_Q13_y ( 13 - 1)
160 #define STD_REAL_SHIFT_Q14_y ( 14 - 1)
161 #define STD_REAL_SHIFT_Q15_y ( 15 - 1)
162 #define STD_REAL_SHIFT_Q16_y ( 16 - 1)
163 #define STD_REAL_SHIFT_Q32_y ( 32 - 1)
165 #define NULL_PTR ((void*)0)
167 #define INLINE __STATIC_INLINE
169 #define BIT0_POS (0u)
170 #define BIT1_POS (1u)
171 #define BIT2_POS (2u)
172 #define BIT3_POS (3u)
173 #define BIT4_POS (4u)
174 #define BIT5_POS (5u)
175 #define BIT6_POS (6u)
176 #define BIT7_POS (7u)
177 #define BIT8_POS (8u)
178 #define BIT9_POS (9u)
179 #define BIT10_POS (10u)
180 #define BIT11_POS (11u)
181 #define BIT12_POS (12u)
182 #define BIT13_POS (13u)
183 #define BIT14_POS (14u)
184 #define BIT15_POS (15u)
185 #define BIT16_POS (16u)
186 #define BIT17_POS (17u)
187 #define BIT18_POS (18u)
188 #define BIT19_POS (19u)
189 #define BIT20_POS (20u)
190 #define BIT21_POS (21u)
191 #define BIT22_POS (22u)
192 #define BIT23_POS (23u)
193 #define BIT24_POS (24u)
194 #define BIT25_POS (25u)
195 #define BIT26_POS (26u)
196 #define BIT27_POS (27u)
197 #define BIT28_POS (28u)
198 #define BIT29_POS (29u)
199 #define BIT30_POS (30u)
200 #define BIT31_POS (31u)
206 #define ERR_LOG_CODE_MODULE_DISABLED_IN_CW (-116)
207 #define ERR_LOG_CODE_TIMEOUT (-101)
208 #define ERR_LOG_CODE_INVALID_VALUE (-103)
209 #define ERR_LOG_CODE_ADC1_SEQ_NOT_RUNNING (-104)
210 #define ERR_LOG_CODE_ADC2_SEQ_NOT_RUNNING (-105)
211 #define ERR_LOG_CODE_NO_TRIGGER (-106)
212 #define ERR_LOG_CODE_SOW_DISABLED (-107)
213 #define ERR_LOG_CODE_PARAM_OUT_OF_RANGE (-122)
214 #define ERR_LOG_CODE_SAFE_SHUTDOWN_ACTIVE (-118)
215 #define ERR_LOG_CODE_ERR_BDRV_INIT (-114)
239 #if (STD_REAL_TYPE == STD_REAL_FIX_POINT_16)
242 #elif (STD_REAL_TYPE == STD_REAL_FIX_POINT_32)
245 #elif (STD_REAL_TYPE == STD_REAL_FLOAT_32)
Complex type definition based on TStdReal.
Definition: types.h:254
TStdReal imag
Imaginary part.
Definition: types.h:255
TStdReal real
Real part.
Definition: types.h:256
Complex type definition.
Definition: types.h:262
sint16 Real
Real part.
Definition: types.h:263
sint16 Imag
Imaginary part.
Definition: types.h:264
2 phase currents type definition
Definition: types.h:270
sint16 A
Phase A current.
Definition: types.h:271
sint16 B
Phase B current.
Definition: types.h:272
short FixPoint16
16 bit fix point value
Definition: types.h:233
FixPoint32 TLongStdReal
Definition: types.h:241
struct StdRealComplex TStdRealComplex
Complex type definition based on TStdReal.
double float64
64 bit float value
Definition: types.h:231
uint8_t uint8
8 bit unsigned value
Definition: types.h:220
long FixPoint32
32 bit fix point value
Definition: types.h:234
int8_t sint8
8 bit signed value
Definition: types.h:225
int64_t sint64
64 bit signed value
Definition: types.h:228
int32_t sint32
32 bit signed value
Definition: types.h:227
FixPoint16 TStdReal
Standard real type definitions to ease the use of different types.
Definition: types.h:240
int16_t sint16
16 bit signed value
Definition: types.h:226
float float32
32 bit float value
Definition: types.h:230
uint64_t uint64
64 bit unsigned value
Definition: types.h:223
uint16_t uint16
16 bit unsigned value
Definition: types.h:221
uint32_t uint32
32 bit unsigned value
Definition: types.h:222