Basic_sine_wave_generator

Dependencies:   mbed 4DGL-uLCD-SE mbed-rtos AD5206

para.h

Committer:
hanjiex
Date:
2015-12-02
Revision:
11:d21c2da8b290
Parent:
10:159f38636ed4

File content as of revision 11:d21c2da8b290:

/*
* 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;
    float freq;
    float amp;
    //float offset;
public:
    para();
    void set_type(int);
    void set_freq(float);
    void set_amp(float);
    //void set_offset(float);
    int get_type();
    float get_freq();
    float get_amp();
    //float get_offset();
};

#endif //PARA_H