ogold.h
来自「产生PN序列」· C头文件 代码 · 共 35 行
H
35 行
#ifndef _OGOLD_H#define _OGOLD_H/* * $Log: ogold.h,v $ * Revision 1.1 2000/05/03 14:30:04 bjc97r * Initial revision * */#include "gold.h"typedef struct { Gold *gold; /* the ID of the Gold code */ unsigned long period; /* the period of the Orthogonal Gold code */ unsigned long counter;} OGold;/* * It create an OGold code generator with the two preferred m-sequences * with the given index. The OGold code generator is returned. * The possible range of index is 0 to (2^deg - 1). */OGold *ogold_create( unsigned deg, unsigned long p0, unsigned long p1, unsigned long index );/* ogold_free() deallocates the memory space for the OGold code generator. */void ogold_free( OGold *ogold );/* ogold() gives the next OGold sequence in unipolar value, ie 1 or 0. */char ogold( OGold *id );#endif /* _OGOLD_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?