Basic_sine_wave_generator
Dependencies: mbed 4DGL-uLCD-SE mbed-rtos AD5206
para.h@11:d21c2da8b290, 2015-12-02 (annotated)
- Committer:
- hanjiex
- Date:
- Wed Dec 02 19:48:56 2015 +0000
- Revision:
- 11:d21c2da8b290
- Parent:
- 10:159f38636ed4
Missing part:; 1, touch pad control; 2, integrated with RPC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hanjiex | 11:d21c2da8b290 | 1 | /* |
hanjiex | 11:d21c2da8b290 | 2 | * Author: Hanjie Xie |
hanjiex | 11:d21c2da8b290 | 3 | * para.cpp |
hanjiex | 11:d21c2da8b290 | 4 | * a class to store the parameter which is used |
hanjiex | 11:d21c2da8b290 | 5 | * to change the wave output |
hanjiex | 11:d21c2da8b290 | 6 | */ |
hanjiex | 10:159f38636ed4 | 7 | #ifndef PARA_H |
hanjiex | 10:159f38636ed4 | 8 | #define PARA_H |
hanjiex | 10:159f38636ed4 | 9 | |
hanjiex | 10:159f38636ed4 | 10 | class para { |
hanjiex | 10:159f38636ed4 | 11 | public: |
hanjiex | 10:159f38636ed4 | 12 | int waveform_type; |
hanjiex | 11:d21c2da8b290 | 13 | float freq; |
hanjiex | 10:159f38636ed4 | 14 | float amp; |
hanjiex | 11:d21c2da8b290 | 15 | //float offset; |
hanjiex | 10:159f38636ed4 | 16 | public: |
hanjiex | 10:159f38636ed4 | 17 | para(); |
hanjiex | 10:159f38636ed4 | 18 | void set_type(int); |
hanjiex | 11:d21c2da8b290 | 19 | void set_freq(float); |
hanjiex | 10:159f38636ed4 | 20 | void set_amp(float); |
hanjiex | 11:d21c2da8b290 | 21 | //void set_offset(float); |
hanjiex | 10:159f38636ed4 | 22 | int get_type(); |
hanjiex | 11:d21c2da8b290 | 23 | float get_freq(); |
hanjiex | 10:159f38636ed4 | 24 | float get_amp(); |
hanjiex | 11:d21c2da8b290 | 25 | //float get_offset(); |
hanjiex | 10:159f38636ed4 | 26 | }; |
hanjiex | 10:159f38636ed4 | 27 | |
hanjiex | 10:159f38636ed4 | 28 | #endif //PARA_H |