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@19:9bc8fabeddfa, 2016-09-07 (annotated)
- Committer:
- jmarkel44
- Date:
- Wed Sep 07 19:40:17 2016 +0000
- Revision:
- 19:9bc8fabeddfa
- Parent:
- 12:ea87887ca7ad
- Child:
- 20:653923c2f37a
created Load method for Timer and Setpoint controls;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 12:ea87887ca7ad | 1 | /****************************************************************************** |
jmarkel44 | 12:ea87887ca7ad | 2 | * |
jmarkel44 | 12:ea87887ca7ad | 3 | * File: TimerControl.h |
jmarkel44 | 12:ea87887ca7ad | 4 | * Desciption: ICE Timer Control Class |
jmarkel44 | 12:ea87887ca7ad | 5 | * |
jmarkel44 | 12:ea87887ca7ad | 6 | *****************************************************************************/ |
jmarkel44 | 12:ea87887ca7ad | 7 | #ifndef TIMERCONTROL_H |
jmarkel44 | 12:ea87887ca7ad | 8 | #define TIMERCONTROL_H |
jmarkel44 | 12:ea87887ca7ad | 9 | |
jmarkel44 | 12:ea87887ca7ad | 10 | #include <string> |
jmarkel44 | 12:ea87887ca7ad | 11 | |
jmarkel44 | 19:9bc8fabeddfa | 12 | using namespace std; |
jmarkel44 | 19:9bc8fabeddfa | 13 | |
jmarkel44 | 12:ea87887ca7ad | 14 | class TimerControl |
jmarkel44 | 12:ea87887ca7ad | 15 | { |
jmarkel44 | 12:ea87887ca7ad | 16 | private: |
jmarkel44 | 12:ea87887ca7ad | 17 | string controlFile; // name of the control file |
jmarkel44 | 12:ea87887ca7ad | 18 | unsigned int interval; // interval at which we run |
jmarkel44 | 12:ea87887ca7ad | 19 | unsigned int priority; // priority at which we run |
jmarkel44 | 12:ea87887ca7ad | 20 | public: |
jmarkel44 | 19:9bc8fabeddfa | 21 | TimerControl() {}; |
jmarkel44 | 12:ea87887ca7ad | 22 | ~TimerControl() { |
jmarkel44 | 12:ea87887ca7ad | 23 | printf("\r%s destructor invoked\n", __func__); |
jmarkel44 | 12:ea87887ca7ad | 24 | } |
jmarkel44 | 19:9bc8fabeddfa | 25 | bool Load(string filename); |
jmarkel44 | 12:ea87887ca7ad | 26 | string getControlFile(void) { |
jmarkel44 | 12:ea87887ca7ad | 27 | return controlFile; |
jmarkel44 | 12:ea87887ca7ad | 28 | } |
jmarkel44 | 12:ea87887ca7ad | 29 | }; |
jmarkel44 | 12:ea87887ca7ad | 30 | |
jmarkel44 | 12:ea87887ca7ad | 31 | #endif |