111

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

Fork of 4180_proj by ECE4180proj

para.cpp

Committer:
hanjiex
Date:
2015-12-07
Revision:
12:b6265952fb06
Parent:
11:d21c2da8b290

File content as of revision 12:b6265952fb06:

/*
* 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;}