Function generator

Dependencies:   Serial_HL mbed

Revision:
3:c8c3b755ef54
Parent:
2:100244cef3d6
--- a/FuncGen.h	Thu Mar 17 13:45:13 2016 +0000
+++ b/FuncGen.h	Tue May 14 12:16:55 2019 +0000
@@ -42,6 +42,22 @@
     void CalcOneStep();
 };
 
+class SinusGen
+{
+    public:
+        float val; // momentaner Ausgangswert
+    private:
+        float sinWave[1000];
+        float _inc;
+        float entry;
+    public:
+        SinusGen();
+        
+        void SetFrequ(float aFrequ);
+        
+        void CalcOneStep();        
+};
+
 
 class RectGen
 {
@@ -50,6 +66,7 @@
 private:
     float _inc;
     float _phase;
+    float _thres;
 public:
     RectGen();