SynchroPMU
C implementation of the Phasor Measurement Unit Estimator based on the Iterative Interpolated DFT Synchrophasor Estimation Algorithm
Loading...
Searching...
No Matches
src
func_stubs.h
Go to the documentation of this file.
1
38
#ifndef FUNC_STUBS_H
39
#define FUNC_STUBS_H
40
41
#ifdef __cplusplus
42
extern
"C"
43
{
44
#endif
45
#include <math.h>
46
#include <complex.h>
47
48
/* Define a macro to stub constants ===========================================*/
49
51
#define M_PI_p M_PI
52
53
/* Define a macro to stub data types ==========================================*/
54
56
#define float_p float
57
59
#define complex_p _Complex
60
62
#define uint_p unsigned int
63
65
#define bool_p _Bool
66
67
/* Define a macro to stub function ==========================================*/
68
88
#ifndef pmue_fft_r
89
#define pmue_fft_r(in_ptr, out_ptr, out_len, n_bins) dft_r(in_ptr, out_ptr, out_len, n_bins)
90
#endif
91
106
#ifndef pmue_cabs
107
#define pmue_cabs(x) cabs(x)
108
#endif
109
124
#ifndef pmue_fabs
125
#define pmue_fabs(x) fabs(x)
126
#endif
127
142
#ifndef pmue_carg
143
#define pmue_carg(x) carg(x)
144
#endif
145
160
#ifndef pmue_cos
161
#define pmue_cos(x) cos(x)
162
#endif
163
178
#ifndef pmue_sin
179
#define pmue_sin(x) sin(x)
180
#endif
181
196
#ifndef pmue_cexp
197
#define pmue_cexp(x) cexp(x)
198
#endif
199
200
#ifdef __cplusplus
201
}
202
#endif
203
204
#endif
/* FUNC_STUBS_H */
Generated by
1.11.0