PDR/3.BackUp/PDR-Origin-Version/include/pdr_fft.h

26 lines
803 B
C

#ifndef __PDR_FFT_H__
#define __PDR_FFT_H__
/* Header File Including ------------------------------------------------------------------------ */
#include <stdint.h>
#include <math.h>
/* Macro Declaration ---------------------------------------------------------------------------- */
#define M_PI 3.14159265358979323846 /* pi */
// #define MATLAB_DEBUG
// #define MATLAB_MAIN
/* Structure Declaration ------------------------------------------------------------------------ */
typedef struct myComplex {
float real;
float image;
} myComplex;
/* Function Declaration ------------------------------------------------------------------------- */
extern int FFT_dft(myComplex *fft, float *signal, int length);
extern int FFT_fft(myComplex *fft, float *signal, int length);
#endif