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
Diff: src/OutputTask/OutputTask.h
- Revision:
- 115:1558e01d04c6
- Parent:
- 77:43e0a3d9e536
- Child:
- 182:6408a4ae99c3
- Child:
- 183:44f7fea6b208
--- a/src/OutputTask/OutputTask.h Thu Sep 22 19:38:03 2016 +0000 +++ b/src/OutputTask/OutputTask.h Thu Sep 22 21:19:44 2016 +0000 @@ -3,6 +3,7 @@ #include <string> #include <stdio.h> +#include "global.h" void OutputTask(void const *args); void DisplayOutputs(void); @@ -23,14 +24,16 @@ class Control { private: - std::string id; // control identifier + std::string id; // control identifier + Control_t controlType; // control type + std::string input; // input unsigned int priority; // control priority ControlState state; // state (ON or OFF) public: // ctor - Control(std::string id, unsigned int priority, ControlState state) : - id(id), priority(priority), state(state) {} + Control(std::string id, Control_t controlType, std::string input, unsigned int priority, ControlState state) : + id(id), controlType(controlType), input(input), priority(priority), state(state) {} // dtor ~Control() {} @@ -43,6 +46,14 @@ std::string getId() const { return id; } + + Control_t getControlType(void) const { + return controlType; + } + + std::string getInput(void) const { + return input; + } unsigned int getPriority() const { return priority;