Test program with the RT black boxes

Dependencies:   mbed

Committer:
pmic
Date:
Wed May 15 13:58:10 2019 +0000
Revision:
43:a577f752dd7a
Parent:
23:1d24b1033371
Add new instantiation option to surpress the printout for rt mbed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmic 21:b3c07ac9b9ed 1 class PRBS
pmic 21:b3c07ac9b9ed 2 {
pmic 21:b3c07ac9b9ed 3 public:
pmic 21:b3c07ac9b9ed 4
pmic 21:b3c07ac9b9ed 5 PRBS(int n);
pmic 21:b3c07ac9b9ed 6
pmic 21:b3c07ac9b9ed 7 float operator()() {
pmic 21:b3c07ac9b9ed 8 return update();
pmic 21:b3c07ac9b9ed 9 }
pmic 21:b3c07ac9b9ed 10
pmic 21:b3c07ac9b9ed 11 virtual ~PRBS();
pmic 21:b3c07ac9b9ed 12
pmic 21:b3c07ac9b9ed 13 void reset();
pmic 21:b3c07ac9b9ed 14 float update();
pmic 23:1d24b1033371 15
pmic 23:1d24b1033371 16 void printPRBSind();
pmic 23:1d24b1033371 17 void printPRBSregister();
pmic 21:b3c07ac9b9ed 18
pmic 21:b3c07ac9b9ed 19 private:
pmic 21:b3c07ac9b9ed 20
pmic 23:1d24b1033371 21 int ii;
pmic 21:b3c07ac9b9ed 22 int n;
pmic 23:1d24b1033371 23 int Nprbs;
pmic 21:b3c07ac9b9ed 24 int *Register;
pmic 21:b3c07ac9b9ed 25 int Nind;
pmic 21:b3c07ac9b9ed 26 int *ind;
pmic 21:b3c07ac9b9ed 27
pmic 21:b3c07ac9b9ed 28 void getPrbsIndex(int n);
pmic 23:1d24b1033371 29 void printLine();
pmic 21:b3c07ac9b9ed 30
pmic 21:b3c07ac9b9ed 31 };