fft.h

来自「完整的OFDM系统,含Matlab仿真代码和DSP源代码下载.平台Tms320C」· C头文件 代码 · 共 50 行

H
50
字号
//#define _TI_ENHANCED_MATH_H 1
//#include <stdio.h>
//#include <stdlib.h>
//#include <math.h>

//#include <dma.h>	/* TMS320C6x Peripheral Support Library DMA Support */
//#include <intr.h>	/* TMS320C6x Peripheral Support Library Interrupt Support */
//#include <mcbsp.h>	/* TMS320C6x Peripheral Support Library McBSP Support */
//#include <regs.h>	/* TMS320C6x Peripheral Support Library CPU Register Support */
//#include <board.h>	/* TMS320C6x Peripheral Support Library Board Support */
//#include <codec.h>	/* Codec Library API Functions */

#include "ofdm.h"

//#define BUFFER_SIZE		FFT_SIZE
//#define BLOCK_SIZE		FFT_SIZE * 2		/* Total number of both left and right short elements in a buffer */

//#define N				FFT_SIZE	 		/* N point DFT */
//#define n				16                  /* Size of index, calculate using formula in bitrev.asm */
//#define PI				3.14159265358979323846264338327950288419716939937510
//#define DELTA			2 * PI / N
//#define ONE_OVER_SQRT_N	0.0625				/* 1/sqrt(N) */

//extern short InBuffer1[BLOCK_SIZE];
//extern short InBuffer2[BLOCK_SIZE];
//extern short OutBuffer1[BLOCK_SIZE];
//extern short OutBuffer2[BLOCK_SIZE];

//extern short *InBufferPtr;
//extern short *OutBufferPtr;

//extern volatile float signalf[BLOCK_SIZE];

extern float dft[N];	/* Number of coefficients needed for the DFT routine is N */
//extern float idft[N];	/* Number of coefficients needed for the IDFT routine is N */

extern const short index[n];

#define TRUE	1
#define FALSE	0

//void signal_process(short *, short *);
void digitrev_index(const short *, int, int);	
void bitrev(volatile float *, const short *, int);
void cfftr2_dit(volatile float *, const float *, short);
//void fft(volatile float signal[]);
void fft(float signal[]);
void init_fft(void);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?