📄 stbc_consts.h
字号:
/* --------- DESCRIPTION :: This file consists of the constant defines ---- */ #ifndef _SUI_CONSTS_H_#define _SUI_CONSTS_H_#define SUCCESS 0#define FAILURE 1typedef unsigned char UINT1;typedef unsigned short UINT2;typedef unsigned long UINT4;#define M_PI 3.1415926535
#define M_2PI 6.28318530717959#define NUM_TX 4#define NUM_RX 1#define NUM_TX_PER_GROUP 2
/* generate the random number[0,1] */#define IA 16807#define IM 2147483647#define AM (1.0/IM)#define IQ 127773#define IR 2836#define NTAB 32#define NDIV (1+(IM-1)/NTAB)#define EPS 1.2e-14#define RNMX (1.0-EPS)#define NUM_TAP 3#define NUM_MULTIPATH 3
#define MAXINT 2147483647
#define K_BIT 4
#define MAX_K_BIT 15 /* the max number remove the first number 0*/
#define N_BIT 6
#define N_SIG 2
/*binary modulation*/
#define M_2 2
/*4PSK modulation*/
#define M_4 4
/*8PSK modulation*/
#define M_8 8
#define B_2 1
#define B_4 2
#define B_8 3 /* the number of binary bits for represent the 8PSK*/
#define NUM_FRAME 1000000 /* the number of frames*/
#define NUM_SIGS_PER_FRAME 65 /*number of signals per frame*/
#define TOTAL_SYMBOL_NUM NUM_FRAME * (NUM_SIGS_PER_FRAME-1)
#define DEPTH_TRELLIS 8 /*depth of trellis viterbi algorithms require L >= 5K */
#define LOESN0 18 /* minimum Es/No */
#define HIESN0 18 /* maximum Es/No */
#define ESN0STEP 2 /* Es/No increment*/
#define NUM_STATES_DEC 16 /* 2^K_BIT state represented by decimal number*/
#define NUM_INPUT_DEC 16 /*2^K_BIT, input bit block represented by decimal number*/#define NUM_order 100#define ACC 40.0#define BIGNO 1.0e10#define BIGNI 1.0e-10#define BUFFER_ALLOC(object_size,object_count,type) (type *)calloc(object_count,object_size)#define BUFFER_FREE free#define MAX(a,b) ((a)>(b) ? (a) : (b))#define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))#endif /* _CONSTS_H_ *//* -------------------- END OF FILE consts.h ------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -