Library for control puposes

Dependents:  

Fork of Cntrl_Lib by Ruprecht Altenburger

Revision:
8:822123e56d57
--- /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