JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
54:aee1b44e62ec
Parent:
39:ab2557044815
--- a/sine_app.h	Fri Dec 18 14:04:25 2015 +0000
+++ b/sine_app.h	Fri Dec 18 16:27:23 2015 +0000
@@ -3,22 +3,22 @@
 #include "app.h"
 #include "mbed.h"
 
-class SineApp : public App
+class SineApp : public App                                     //Class containing the Sine app.//
 {
     protected:
        AnalogOut* analogOut;
        Timer timer;
-       float amplitude;
-       float frequence;
+       float amplitude;                                       //Define the float amplitude value.//
+       float frequence;                                       //Define the float frequence value.//
        
     public:
-       SineApp(Serial* serialPort);
+       SineApp(Serial* serialPort);                           //Constructor.//
        
-       virtual void start();
-       virtual void run();
-       virtual void stop();
-       void setamplitude (float newamplitude);
-       void setfrequence (float newfrequence);
+       virtual void start();                                  //(Overriden) called when app starts.//
+       virtual void run();                                    //(Overriden) called repeatedly while running and do the sine expression.//
+       virtual void stop();                                   //(Overriden) called when app stops.//
+       void setamplitude (float newamplitude);                //(Overriden) called when app starts, set the new amplitude.//
+       void setfrequence (float newfrequence);                //(Overriden) called when app starts, set the new frequence.//
 };
 
 #endif
\ No newline at end of file