⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kasami.h

📁 kasami伪码产生器
💻 H
字号:
#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, ulong poly, ulong 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -