36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
|
/****************************************************************************
|
||
|
|
||
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||
|
|
||
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||
|
be copied by any method or incorporated into another program without
|
||
|
the express written consent of Aerospace C.Power. This Information or any portion
|
||
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||
|
liability for its use in any way and conveys no license or title under
|
||
|
any patent or copyright and makes no representation or warranty that this
|
||
|
Information is free from patent or copyright infringement.
|
||
|
|
||
|
****************************************************************************/
|
||
|
|
||
|
#ifndef __FFT_H__
|
||
|
#define __FFT_H__
|
||
|
|
||
|
typedef struct complex
|
||
|
{
|
||
|
float real;
|
||
|
float imag;
|
||
|
}complex;
|
||
|
|
||
|
#define PI 3.1415926535897932384626433832795028841971
|
||
|
|
||
|
void conjugate_complex(int n,complex in[],complex out[]);
|
||
|
void c_plus(complex a,complex b,complex *c);
|
||
|
void c_mul(complex a,complex b,complex *c);
|
||
|
void c_sub(complex a,complex b,complex *c);
|
||
|
void c_div(complex a,complex b,complex *c);
|
||
|
void fft(int N,complex f[]);
|
||
|
void ifft(int N,complex f[]);
|
||
|
void c_abs(complex f[],float out[],int n);
|
||
|
#endif
|