82 #define STD_REAL_FIX_POINT_16 (1)
83 #define STD_REAL_FIX_POINT_32 (2)
84 #define STD_REAL_FLOAT_32 (3)
87 #define STD_REAL_TYPE (STD_REAL_FIX_POINT_16)
92 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
95 #define bool unsigned int
102 #define STD_REAL_SHIFT_Qn8_y (-8 - 1)
103 #define STD_REAL_SHIFT_Qn7_y (-7 - 1)
104 #define STD_REAL_SHIFT_Qn6_y (-6 - 1)
105 #define STD_REAL_SHIFT_Qn5_y (-5 - 1)
106 #define STD_REAL_SHIFT_Qn4_y (-4 - 1)
107 #define STD_REAL_SHIFT_Qn3_y (-3 - 1)
108 #define STD_REAL_SHIFT_Qn2_y (-2 - 1)
109 #define STD_REAL_SHIFT_Qn1_y (-1 - 1)
111 #define STD_REAL_SHIFT_Q0_y ( 0 - 1)
112 #define STD_REAL_SHIFT_Q1_y ( 1 - 1)
113 #define STD_REAL_SHIFT_Q2_y ( 2 - 1)
114 #define STD_REAL_SHIFT_Q3_y ( 3 - 1)
115 #define STD_REAL_SHIFT_Q4_y ( 4 - 1)
116 #define STD_REAL_SHIFT_Q5_y ( 5 - 1)
117 #define STD_REAL_SHIFT_Q6_y ( 6 - 1)
118 #define STD_REAL_SHIFT_Q7_y ( 7 - 1)
119 #define STD_REAL_SHIFT_Q8_y ( 8 - 1)
120 #define STD_REAL_SHIFT_Q9_y ( 9 - 1)
121 #define STD_REAL_SHIFT_Q10_y ( 10 - 1)
122 #define STD_REAL_SHIFT_Q11_y ( 11 - 1)
123 #define STD_REAL_SHIFT_Q12_y ( 12 - 1)
124 #define STD_REAL_SHIFT_Q13_y ( 13 - 1)
125 #define STD_REAL_SHIFT_Q14_y ( 14 - 1)
126 #define STD_REAL_SHIFT_Q15_y ( 15 - 1)
127 #define STD_REAL_SHIFT_Q16_y ( 16 - 1)
128 #define STD_REAL_SHIFT_Q32_y ( 32 - 1)
130 #define NULL_PTR ((void*)0)
132 #define INLINE __STATIC_INLINE
156 #if (STD_REAL_TYPE == STD_REAL_FIX_POINT_16)
159 #elif (STD_REAL_TYPE == STD_REAL_FIX_POINT_32)
162 #elif (STD_REAL_TYPE == STD_REAL_FLOAT_32)
Complex type definition.
Definition: types.h:179
sint16 Real
Real part.
Definition: types.h:180
sint16 Imag
Imaginary part.
Definition: types.h:181
2 phase currents type definition
Definition: types.h:187
sint16 A
Phase A current.
Definition: types.h:188
sint16 B
Phase B current.
Definition: types.h:189
Complex type definition based on TStdReal.
Definition: types.h:171
TStdReal imag
Imaginary part.
Definition: types.h:172
TStdReal real
Real part.
Definition: types.h:173
short FixPoint16
16 bit fix point value
Definition: types.h:150
FixPoint32 TLongStdReal
Definition: types.h:158
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:148
uint8_t uint8
8 bit unsigned value
Definition: types.h:137
long FixPoint32
32 bit fix point value
Definition: types.h:151
int8_t sint8
8 bit signed value
Definition: types.h:142
int64_t sint64
64 bit signed value
Definition: types.h:145
int32_t sint32
32 bit signed value
Definition: types.h:144
FixPoint16 TStdReal
Standard real type definitions to ease the use of different types.
Definition: types.h:157
struct Complex TComplex
Complex type definition.
int16_t sint16
16 bit signed value
Definition: types.h:143
float float32
32 bit float value
Definition: types.h:147
uint64_t uint64
64 bit unsigned value
Definition: types.h:140
uint16_t uint16
16 bit unsigned value
Definition: types.h:138
uint32_t uint32
32 bit unsigned value
Definition: types.h:139