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/ConfigurationHandler/Controls/TimerControl.h
- Revision:
- 20:653923c2f37a
- Parent:
- 19:9bc8fabeddfa
- Child:
- 28:c410a61238bb
--- a/src/ConfigurationHandler/Controls/TimerControl.h Wed Sep 07 19:40:17 2016 +0000 +++ b/src/ConfigurationHandler/Controls/TimerControl.h Thu Sep 08 15:01:52 2016 +0000 @@ -15,13 +15,23 @@ { private: string controlFile; // name of the control file - unsigned int interval; // interval at which we run - unsigned int priority; // priority at which we run + string id; // identifier + string name; // friendly name + unsigned int priority; // control priority + unsigned int dayOfWeek; // days of the week + unsigned int startWeek; // starting week + unsigned int freq; + struct tod { + unsigned int start; + unsigned int interval; + }; + public: TimerControl() {}; ~TimerControl() { printf("\r%s destructor invoked\n", __func__); } + // load a control from the control file bool Load(string filename); string getControlFile(void) { return controlFile;