⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cgs.h

📁 ofdm的完整系统模型,包含信道参数,多径模型,doppler频移等都可以自由修改!是您做仿真的有力帮助.c语言运行速度快!
💻 H
字号:
#ifndef CGS_H
#define CGS_H

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <string.h>

#include "spwtypes.h"
#include "ovector.h"
#include "cgsfilt.h"
#include "cgsnoise.h"

#include "rayleigh_fad.h"
#include "bench_parameters.h"

/*
#include "cgstype.h"
#include "cgsovr.h"
#include "cgsdecl.h"
#include "omatrix.h"
#include "cgsfile.h"
*/

#ifndef NULL
#define NULL	0L
#endif

//  Complex data type function declarations
Complex		c_add(Complex s_c1, Complex s_c2);
Complex		c_sub(Complex s_c1, Complex s_c2);
Complex		c_mul(Complex s_c1, Complex s_c2);
Complex		c_dvd(Complex s_c1, Complex s_c2);
Complex		c_conj(Complex s_c);
Complex		c_sqrt(Complex s_v);
double		c_mag(Complex s_c);

/*
 *	Defines for spwExit()
 */

#ifndef SYS_FATAL
#define SYS_FATAL -1
#endif
#ifndef SYS_TERM
#define SYS_TERM   1
#endif
#ifndef SYS_OK
#define SYS_OK     0
#endif
#ifndef SYS_SUSPEND
#define SYS_SUSPEND 2
#endif
#ifndef SYS_DONE
#define SYS_DONE 3
#endif

/*
 *  Multirate
 */
#define spbBufStart(vp_pin)			((void *) vp_pin)
#define spbBufAdvance(vp_ptr, i_n, vp_pin)	(vp_ptr += i_n)
#define spbBufNext(vp_ptr, vp_pin)		(vp_ptr++)
#define spbBufPrev(vp_ptr, vp_pin)		(vp_ptr--)
#define spbBufNorm(vp_ptr, vp_pin)
		
/*
 * Constants
 */
#ifndef PI
#define PI 3.141592653589793
#endif
#ifndef PI2
#define PI2 6.283185307179586
#endif


double J25(double x);
double J0(double x);


#endif

⌨️ 快捷键说明

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