Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DAQ mbed-rtos mbed
DAQ/DummyDAQ.cpp
- Committer:
- leysenkobe
- Date:
- 2014-04-23
- Revision:
- 0:6ee88b4152dc
File content as of revision 0:6ee88b4152dc:
#include "DummyDAQ.h" #include "mbed.h" //Constructor en Destructor DummyDAQ::DummyDAQ(void) { } DummyDAQ::~DummyDAQ(void) { } //GETTERS Measurement* DummyDAQ::measure(void) { Measurement *measurement = new Measurement(); //measurement vullen met valse data for (int i = 0; i < 16; i++) { measurement->Enable(i); measurement->setPunt(i,i+1); } return measurement; } int DummyDAQ::getChannelGain(int channel) { return 1000; } bool DummyDAQ::ChannelEnabled(int channel) { return true; } bool DummyDAQ::Initialized(void) { return true; } //SETTERS void DummyDAQ::setChannelGain(int channel,int gain) { } void DummyDAQ::enableChannel(int channel) { } void DummyDAQ::disableChannel(int channel) { } void DummyDAQ::setInitialized(bool init) { }