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.
Channel.cpp
- Committer:
- leysenkobe
- Date:
- 2014-03-19
- Revision:
- 0:88f8e80dc5fd
- Child:
- 6:2c928a654a35
File content as of revision 0:88f8e80dc5fd:
#include "Channel.h" //Constructor & Destructor Channel::Channel(void) { amplification = 1; //standaard heeft het kanaal een gain van 1 enable = false; //standaard staat het kanaal uitgeschakeld of disabled } Channel::~Channel(void) { } //GETTERS bool Channel::Enabled(void) { return(enable); } int Channel::getAmplification(void) { return(amplification); } //SETTERS void Channel::Enable(void) { enable = true; } void Channel::Disable(void) { enable = false; } void Channel::setAmplification(int newAmplification) { if(newAmplification==1 || newAmplification==10 || newAmplification==100 || newAmplification==1000) { amplification = newAmplification; } }