wib_fft_f.h

来自「802.16e物理层FFT算法的实现。严格按照802.16e实现。」· C头文件 代码 · 共 47 行

H
47
字号


#ifndef FFT_FIX
#define  FFT_FIX 

#include "commdef.h"
#define IFFT_F 1
#define FFT_F 0

#define DEBUG_OUT_FFT_EXPONENT

#define OLD_HANDLE      // exponent diff

#define POW4I (1 << ((i + 1) * 2))
#define POW4I_1 (1 << (i * 2))


typedef struct FFT_TBL
{
    complex16 *p_w1p;
    complex16 *p_w2p;
    complex16 *p_w3p;
    unsigned short *p_reorder_idx;
    unsigned short N;
    unsigned char bit_width;
    unsigned char log2n;
    unsigned char degree;
} fft_tbl;

fft_tbl fft_f_prepare(
                 unsigned short N,                  //fft size
                 unsigned char bit_width           //WP bit width
                 ); 

signed short fft_f_execute(
            const complex16 *p_dat_in,       //point to input buffer;
            complex16 *p_dat_out,            //point to output buffer;
            const unsigned char mode,        //0 fft; 1 IFFT
            fft_tbl fft_tbl_inst
            );

void fft_f_free(
                fft_tbl fft_tbl_inst
                );


#endif

⌨️ 快捷键说明

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