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