lgold.h
来自「在linux系统下开发研究移动通信的工具型代码」· C头文件 代码 · 共 35 行
H
35 行
#ifndef _GOLDL_H#define _GOLDL_H/* * $Log: lgold.h,v $ * Revision 1.1 2000/05/03 14:30:04 bjc97r * Initial revision * */#include "lmseq.h"#include "u2long.h"typedef struct { LMseq *mseq0; /* 1st m-sequence generator */ LMseq *mseq1; /* 2nd m-sequence generator */} LGold;/* * It creates a Gold code generator with the two preferred m-sequences * with the given seeds. The Gold code generator is returned. */LGold * lgold_create( unsigned deg, char *p0, char *p1, u2long s0, u2long s1);/* lgold_free() deallocates the memory space for the Gold sequence generator.*/void lgold_free( LGold *gold );/* * lgold() gives the next long Gold sequence. * The sequence is unipolar, ie 1 or 0. */char lgold( LGold *gold );#endif /* _GOLDL_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?