?? mds_def.h
字號:
/****************************************************************************Copyright (c) 1996 Analog Devices Inc. All rights reserved.****************************************************************************//***************************************************************************
* File Name : mds_def.h
*
* This is the header file used for the testing of DSP library. It defines the
* required data types. It also contains the imporatant hash definitions. ***************************************************************************/
#ifndef _MDS_DEF_INC#define _MDS_DEF_INC
typedef short fract16;typedef long fract32;
typedef struct {
fract16 re, im;
} complex_fract16;
typedef struct { fract16 real, imag;} cfract16;typedef struct { fract32 re, im;} complex_fract32;typedef struct { float re, im;} complex_float;
typedef struct
{
int k;
complex_fract16 *h;
complex_fract16 *d;
complex_fract16 *p;
}fir_state;
//#define PI 3.14159265358979
//#define ROWCOLUMNFFT 16
//#define FFTSIZE (ROWCOLUMNFFT * ROWCOLUMNFFT)
#define size 500
//#define MAX 100#define NBITS 16#define NBITS1 (NBITS-1)#define NBITS2 (NBITS-2)#define PROUNDING (1<<(NBITS-2))#define RROUNDING (1<<(NBITS-3))#define LARGESTP (fract16)0x7fff#define LARGESTN (fract16)0x8000#define LARGESTLP (fract32)0x7fffffff#define LARGESTLN (fract32)0x80000000#define MDS_FP_PI (float)3.1415926535897931#define MDS_FP_PI2 (float)6.2831853071795862#define MDS_FP_PIH (float)1.5707963267948966#define MDS_FP_PIQ (float)7.8539816339744828e-01#define MDS_FP_LOG10 (float)2.3025851249694824#define MDS_FX_PI 0x40490fdb#define MDS_FX_PI2 0x40c90fdb#define MDS_FX_PIH 0x3fc90fdb#define MDS_FX_PIQ 0x3f490fdb#define MDS_FX_LOG10 0x40135d8e#endif /* _MDS_DEF_INC */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -