BULME_AHEL20
/
LPC_HL_FUNC_GENERATOR_DAC
Function generator
Diff: FuncGen.h
- Revision:
- 3:c8c3b755ef54
- Parent:
- 2:100244cef3d6
diff -r 100244cef3d6 -r c8c3b755ef54 FuncGen.h --- 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();