95 #define STD_REAL_FIX_POINT_16 (1)
96 #define STD_REAL_FIX_POINT_32 (2)
97 #define STD_REAL_FLOAT_32 (3)
100 #define STD_REAL_TYPE (STD_REAL_FIX_POINT_16)
105 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
108 #define bool unsigned int
115 #define STD_REAL_SHIFT_Qn8_y (-8 - 1)
116 #define STD_REAL_SHIFT_Qn7_y (-7 - 1)
117 #define STD_REAL_SHIFT_Qn6_y (-6 - 1)
118 #define STD_REAL_SHIFT_Qn5_y (-5 - 1)
119 #define STD_REAL_SHIFT_Qn4_y (-4 - 1)
120 #define STD_REAL_SHIFT_Qn3_y (-3 - 1)
121 #define STD_REAL_SHIFT_Qn2_y (-2 - 1)
122 #define STD_REAL_SHIFT_Qn1_y (-1 - 1)
124 #define STD_REAL_SHIFT_Q0_y ( 0 - 1)
125 #define STD_REAL_SHIFT_Q1_y ( 1 - 1)
126 #define STD_REAL_SHIFT_Q2_y ( 2 - 1)
127 #define STD_REAL_SHIFT_Q3_y ( 3 - 1)
128 #define STD_REAL_SHIFT_Q4_y ( 4 - 1)
129 #define STD_REAL_SHIFT_Q5_y ( 5 - 1)
130 #define STD_REAL_SHIFT_Q6_y ( 6 - 1)
131 #define STD_REAL_SHIFT_Q7_y ( 7 - 1)
132 #define STD_REAL_SHIFT_Q8_y ( 8 - 1)
133 #define STD_REAL_SHIFT_Q9_y ( 9 - 1)
134 #define STD_REAL_SHIFT_Q10_y ( 10 - 1)
135 #define STD_REAL_SHIFT_Q11_y ( 11 - 1)
136 #define STD_REAL_SHIFT_Q12_y ( 12 - 1)
137 #define STD_REAL_SHIFT_Q13_y ( 13 - 1)
138 #define STD_REAL_SHIFT_Q14_y ( 14 - 1)
139 #define STD_REAL_SHIFT_Q15_y ( 15 - 1)
140 #define STD_REAL_SHIFT_Q16_y ( 16 - 1)
141 #define STD_REAL_SHIFT_Q32_y ( 32 - 1)
143 #define NULL_PTR ((void*)0)
145 #define INLINE __STATIC_INLINE
147 #define MASK_WORD (0xFFFFFFFFU)
148 #define MASK_HALF_WORD (0xFFFFU)
174 #if (STD_REAL_TYPE == STD_REAL_FIX_POINT_16)
177 #elif (STD_REAL_TYPE == STD_REAL_FIX_POINT_32)
180 #elif (STD_REAL_TYPE == STD_REAL_FLOAT_32)
Complex type definition based on TStdReal.
Definition: types.h:189
TStdReal imag
Imaginary part.
Definition: types.h:190
TStdReal real
Real part.
Definition: types.h:191
Complex type definition.
Definition: types.h:197
sint16 Real
Real part.
Definition: types.h:198
sint16 Imag
Imaginary part.
Definition: types.h:199
2 phase currents type definition
Definition: types.h:205
sint16 A
Phase A current.
Definition: types.h:206
sint16 B
Phase B current.
Definition: types.h:207
short FixPoint16
16 bit fix point value
Definition: types.h:166
FixPoint32 TLongStdReal
Definition: types.h:176
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:175
unsigned char boolean
for use with TRUE/FALSE
Definition: types.h:169
struct _TStdRealComplex TStdRealComplex
Complex type definition based on TStdReal.
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