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
Diff: DAQ/DummyDAQ.cpp
- Revision:
- 0:6ee88b4152dc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DAQ/DummyDAQ.cpp Wed Apr 23 11:10:26 2014 +0000 @@ -0,0 +1,56 @@ +#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) +{ + +} \ No newline at end of file