98 #define STD_REAL_FIX_POINT_16 (1)
99 #define STD_REAL_FIX_POINT_32 (2)
100 #define STD_REAL_FLOAT_32 (3)
102 #ifndef STD_REAL_TYPE
103 #define STD_REAL_TYPE (STD_REAL_FIX_POINT_16)
108 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
111 #define bool unsigned int
118 #define STD_REAL_SHIFT_Qn8_y (-8 - 1)
119 #define STD_REAL_SHIFT_Qn7_y (-7 - 1)
120 #define STD_REAL_SHIFT_Qn6_y (-6 - 1)
121 #define STD_REAL_SHIFT_Qn5_y (-5 - 1)
122 #define STD_REAL_SHIFT_Qn4_y (-4 - 1)
123 #define STD_REAL_SHIFT_Qn3_y (-3 - 1)
124 #define STD_REAL_SHIFT_Qn2_y (-2 - 1)
125 #define STD_REAL_SHIFT_Qn1_y (-1 - 1)
127 #define STD_REAL_SHIFT_Q0_y ( 0 - 1)
128 #define STD_REAL_SHIFT_Q1_y ( 1 - 1)
129 #define STD_REAL_SHIFT_Q2_y ( 2 - 1)
130 #define STD_REAL_SHIFT_Q3_y ( 3 - 1)
131 #define STD_REAL_SHIFT_Q4_y ( 4 - 1)
132 #define STD_REAL_SHIFT_Q5_y ( 5 - 1)
133 #define STD_REAL_SHIFT_Q6_y ( 6 - 1)
134 #define STD_REAL_SHIFT_Q7_y ( 7 - 1)
135 #define STD_REAL_SHIFT_Q8_y ( 8 - 1)
136 #define STD_REAL_SHIFT_Q9_y ( 9 - 1)
137 #define STD_REAL_SHIFT_Q10_y ( 10 - 1)
138 #define STD_REAL_SHIFT_Q11_y ( 11 - 1)
139 #define STD_REAL_SHIFT_Q12_y ( 12 - 1)
140 #define STD_REAL_SHIFT_Q13_y ( 13 - 1)
141 #define STD_REAL_SHIFT_Q14_y ( 14 - 1)
142 #define STD_REAL_SHIFT_Q15_y ( 15 - 1)
143 #define STD_REAL_SHIFT_Q16_y ( 16 - 1)
144 #define STD_REAL_SHIFT_Q32_y ( 32 - 1)
146 #define NULL_PTR ((void*)0)
148 #define INLINE __STATIC_INLINE
172 #if (STD_REAL_TYPE == STD_REAL_FIX_POINT_16)
175 #elif (STD_REAL_TYPE == STD_REAL_FIX_POINT_32)
178 #elif (STD_REAL_TYPE == STD_REAL_FLOAT_32)
Complex type definition.
Definition: types.h:195
sint16 Real
Real part.
Definition: types.h:196
sint16 Imag
Imaginary part.
Definition: types.h:197
2 phase currents type definition
Definition: types.h:203
sint16 A
Phase A current.
Definition: types.h:204
sint16 B
Phase B current.
Definition: types.h:205
Complex type definition based on TStdReal.
Definition: types.h:187
TStdReal imag
Imaginary part.
Definition: types.h:188
TStdReal real
Real part.
Definition: types.h:189
short FixPoint16
16 bit fix point value
Definition: types.h:166
FixPoint32 TLongStdReal
Definition: types.h:174
struct PhaseCurr TPhaseCurr
2 phase currents type definition
struct StdRealComplex TStdRealComplex
Complex type definition based on TStdReal.
double float64
64 bit float value
Definition: types.h:164
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
long FixPoint32
32 bit fix point value
Definition: types.h:167
int8_t sint8
8 bit signed value
Definition: types.h:158
int64_t sint64
64 bit signed value
Definition: types.h:161
int32_t sint32
32 bit signed value
Definition: types.h:160
FixPoint16 TStdReal
Standard real type definitions to ease the use of different types.
Definition: types.h:173
struct Complex TComplex
Complex type definition.
int16_t sint16
16 bit signed value
Definition: types.h:159
float float32
32 bit float value
Definition: types.h:163
uint64_t uint64
64 bit unsigned value
Definition: types.h:156
uint16_t uint16
16 bit unsigned value
Definition: types.h:154
uint32_t uint32
32 bit unsigned value
Definition: types.h:155