📄 mds_def.h
字号:
/****************************************************************************** * 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#define fract16 short#define fract32 long/*#define struct { fract16 re, im;} complex_fract16;#define struct { fract16 real, imag;} cfract16;#define struct { fract32 re, im;} complex_fract32;#define struct { float re, im;} complex_float;#define struct{ int k; complex_fract16 *h; complex_fract16 *d; complex_fract16 *p;}fir_state;#define size 500#define PI 3.14159265358979//#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 + -