main_burst.c
来自「介绍关于WiMax(IEEE802.16)物理层调制解调编码等相关设计实现」· C语言 代码 · 共 51 行
C
51 行
/*****************************************************************************//* FIle Name : main_burst.c *//* Description : Wi-Max SC a single frame Tests with a single burst *//* author : miffie *//* Date : oct/20/05 *//* Copyright (c) 2005 miffie All rights reserved. *//*****************************************************************************/#include <stdio.h>#include <stdlib.h>#include <math.h>//Global variableschar print_on = 1 ;static double root2 = 1.414213562 ;static double pi = 3.141592654 ;#define PRINTF if (print_on) printf#define FPRINTF if (print_on) fprintfint LPF_THRESHOLD = 128 ;int DRIFT_PERIOD = 4 ;int CHANGE_AMOUNT = 16 ;#include "../env/header.h"struct fingerstruct { char delay ; double realp ; //real part double image ;} ;struct complex sram[44] ;#include "../env/struct.h"#include "../env/files.h"main(int argc , char *argv[]) { //main int ii , jj ;int number_tests = 3 ;int fail ; //Main sscanf(argv[1], "%d" , &ii) ; //printf(" argv=%d\n" , ii ) ; srand( ii ) ; //parameters PRINTF("\n") ; PRINTF("S T A R T %0d th test\n" ,ii ) ; PRINTF("\n") ; fail = burst_random () ; if (fail) { PRINTF("%dth test failed %d\n", ii , fail ) ; } else { PRINTF("%dth test passed ^x^)v\n", ii) ; } PRINTF("\n") ; exit ( fail ) ;} //main
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?