📄 lkasami.h
字号:
#ifndef _KASAMIL_H#define _KASAMIL_H/* * $Log: lkasami.h,v $ * Revision 1.1 2000/05/03 14:30:04 bjc97r * Initial revision * */#include "mseq.h"#include "lmseq.h"typedef struct { LMseq *mseq0; /* main m-sequence generator */ Mseq *mseq1; /* sub m-sequence generator */} LKasami;/* * 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. */LKasami *lkasami_create( unsigned deg, char *poly, unsigned long seed );/* * lkasami_free() deallocates the memory space for * the Kasami sequence generators. */void lkasami_free( LKasami *kasami );/* lkasami() gives the next Kasami sequence in unipolar form, ie 1 or 0. */char lkasami( LKasami *id );#endif /* _KASAMIL_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -