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-09
- Revision:
- 35:6235ef67faa1
- Parent:
- 28:c410a61238bb
- Child:
- 111:d31b3a347e6a
- Child:
- 122:4db48b933115
File content as of revision 35:6235ef67faa1:
/****************************************************************************** * * 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 string output; unsigned int dayOfWeek; // days of the week unsigned int startWeek; // starting week unsigned int freq; typedef struct tod_tag { unsigned int start; unsigned int interval; } Tod_t; Tod_t tod; 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