kasami.h

来自「在linux系统下开发研究移动通信的工具型代码」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef _KASAMI_H#define _KASAMI_H/* * $Log: kasami.h,v $ * Revision 1.1  2000/05/03 14:30:04  bjc97r * Initial revision * */#include "mseq.h"typedef struct {  Mseq *mseq0; /* 1st m-sequence generator */  Mseq *mseq1; /* 2nd m-sequence generator */} Kasami;/* * It creates a Kasami code generator. Only the generator polynomial  * for the main m-sequence is specified through the arguments.  * The sub-sequence polynomial is calculated internally based on the * main polynomial. The relative shift of the subsequence is controlled * by the subsequence 'seed' argument. The initial state of the main * m-sequence generator is fixed to 1. */Kasami *kasami_create( unsigned deg, unsigned long poly, unsigned long seed );/* * kasami_free() deallocates the memory space for  * the Kasami sequence generators. */void kasami_free( Kasami *kasami );/* kasami() gives the next Kasami sequence in unipolar form, ie 1 or 0. */char kasami( Kasami *id );#endif  /* _KASAMI_H */

⌨️ 快捷键说明

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