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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
src/ConfigurationHandler/Controls/ManualControl.h
- Committer:
- jmarkel44
- Date:
- 2016-09-21
- Revision:
- 96:807f04bd5256
- Child:
- 97:5cf6ab71dcd0
File content as of revision 96:807f04bd5256:
/******************************************************************************
*
* File: ManualControl.h
* Desciption: ICE Manual Control Class
*
*****************************************************************************/
#ifndef MANUALCONTROL_H
#define MANUALCONTROL_H
#include <string>
using namespace std;
class ManualControl
{
private:
string controlFile; // name of the control file
string id; // identifier
unsigned int type; // timed, continuous, setpoint
unsigned int priority; // control priority
unsigned int duration;
float setpoint;
enum State { OFF = 0, ON = 1 } ;
State state;
unsigned int percent; // analog/manual value
public:
ManualControl() {};
~ManualControl() {
printf("\r%s destructor invoked\n", __func__);
}
// load a control from the control file
bool load(string filename);
string getControlFile(void) const {
return controlFile;
}
int start(void);
int update(void);
int unregisterControl();
void display(void);
};
#endif
