Basic_sine_wave_generator
Dependencies: mbed 4DGL-uLCD-SE mbed-rtos AD5206
para.cpp
- Committer:
- hanjiex
- Date:
- 2015-12-01
- Revision:
- 10:159f38636ed4
- Child:
- 11:d21c2da8b290
File content as of revision 10:159f38636ed4:
#include "para.h" #include "mbed.h" para::para() { waveform_type=0; //0 for sine, freq=1000; //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; } void para::set_offset(float a) { offset = 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;}