111
Dependencies: 4DGL-uLCD-SE AD5206 mbed-rtos mbed
Fork of 4180_proj by
para.cpp
- Committer:
- hanjiex
- Date:
- 2015-12-07
- Revision:
- 13:4cec0e446def
- Parent:
- 12:b6265952fb06
File content as of revision 13:4cec0e446def:
/* * Author: Hanjie Xie * para.cpp */ #include "para.h" #include "mbed.h" para::para() { waveform_type=0; //0 for sine, freq=2000; //Hz amp=1.65; //Sacle factor, 1=full range //offset=1.65; } void para::set_type(int a) { waveform_type = a; } void para::set_freq(int a) { freq = a; } void para::set_amp(float a) { amp = a; } int para::get_type(){return waveform_type;} int para::get_freq(){return freq;} float para::get_amp(){return amp;} //float para::get_offset(){return offset;}