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