genfct.h

来自「ofdm project for Tms320C6000,完整」· C头文件 代码 · 共 31 行

H
31
字号
/*--------------Global Functions Header------------
			for transmitter and receiver
			
			Vinod Patmanathan
			Black Team
	
--------------------------------------------*/

#ifndef INC_GLOBAL_H
#define INC_GLOBAL_H

#define MIN(a,b) (((a) < (b)) ? (a) : (b))

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

unsigned int getbits(unsigned int x, int p, int n);
int weight(unsigned int x);
void setbuffer( short *output, short *input, int len);
void assemble_first(short *output, short *sinetable, short *training,
					 int lensin, int lentra);
short total_bits( const short *input, int len);
void sine_sync(short *output, short *sinetable, int lensin, int buffsize);
void interleavebuffer(short *output, float *input, int lenin);
void interleavebuffer2(short *output, float *input, int lenin);
short detection(float *rxbuffer,int threshold, int size);
void deinterleavebuffer(short *output, short *input, int lenout);

#endif //INC_GLOBAL_H

⌨️ 快捷键说明

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