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/TimerControl.h
- Committer:
- jmarkel44
- Date:
- 2016-09-08
- Revision:
- 28:c410a61238bb
- Parent:
- 20:653923c2f37a
- Child:
- 33:cb765aefa1b5
- Child:
- 35:6235ef67faa1
File content as of revision 28:c410a61238bb:
/****************************************************************************** * * File: TimerControl.h * Desciption: ICE Timer Control Class * *****************************************************************************/ #ifndef TIMERCONTROL_H #define TIMERCONTROL_H #include <string> using namespace std; class TimerControl { private: string controlFile; // name of the control file 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; } }; #endif