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.
Diff: DAQ.h
- Revision:
- 0:88f8e80dc5fd
- Child:
- 2:ea7eb499a27a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DAQ.h Wed Mar 19 10:29:32 2014 +0000 @@ -0,0 +1,38 @@ +#ifndef DAQ_H +#define DAQ_H + +//INCLUDES +#include "Channel.h" +#include "Multiplexer.h" +#include "Amplifier.h" +#include "ADC.h" +#include "Measurement.h" + + +class DAQ +{ +private: + Channel **channels; + Multiplexer *multiplexer; + Amplifier *amplifier; + ADC *adc; + bool initialized; + +public: + DAQ(void); + ~DAQ(void); + + //GETTERS + Measurement* measure(void); + int getChannelGain(int channel); + bool ChannelEnabled(int channel); + bool Initialized(void); + + //SETTERS + void setChannelGain(int channel,int gain); + void enableChannel(int channel); + void disableChannel(int channel); + void setInitialized(bool init); + +}; +#endif \ No newline at end of file