Basic_sine_wave_generator
Dependencies: mbed 4DGL-uLCD-SE mbed-rtos AD5206
Diff: para.h
- Revision:
- 11:d21c2da8b290
- Parent:
- 10:159f38636ed4
diff -r 159f38636ed4 -r d21c2da8b290 para.h --- a/para.h Tue Dec 01 18:59:42 2015 +0000 +++ b/para.h Wed Dec 02 19:48:56 2015 +0000 @@ -1,22 +1,28 @@ +/* +* Author: Hanjie Xie +* para.cpp +* a class to store the parameter which is used +* to change the wave output +*/ #ifndef PARA_H #define PARA_H class para { public: int waveform_type; - int freq; + float freq; float amp; - float offset; + //float offset; public: para(); void set_type(int); - void set_freq(int); + void set_freq(float); void set_amp(float); - void set_offset(float); + //void set_offset(float); int get_type(); - int get_freq(); + float get_freq(); float get_amp(); - float get_offset(); + //float get_offset(); }; #endif //PARA_H \ No newline at end of file