Library for control puposes
Fork of Cntrl_Lib by
Diff: PRBS.h
- Revision:
- 8:822123e56d57
diff -r 7715f92c5182 -r 822123e56d57 PRBS.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PRBS.h Mon Jan 07 13:36:13 2019 +0000 @@ -0,0 +1,31 @@ +class PRBS +{ +public: + + PRBS(int n); + + float operator()() { + return update(); + } + + virtual ~PRBS(); + + void reset(); + float update(); + + void printPRBSind(); + void printPRBSregister(); + +private: + + int ii; + int n; + int Nprbs; + int *Register; + int Nind; + int *ind; + + void getPrbsIndex(int n); + void printLine(); + +}; \ No newline at end of file