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@12:ea87887ca7ad, 2016-09-07 (annotated)
- Committer:
- jmarkel44
- Date:
- Wed Sep 07 13:22:28 2016 +0000
- Revision:
- 12:ea87887ca7ad
- Parent:
- 5:5e77a1db4d45
- Child:
- 13:c80c283f9db2
new controls objects added;
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 | 5:5e77a1db4d45 | 11 | |
jmarkel44 | 5:5e77a1db4d45 | 12 | class SetpointControl |
jmarkel44 | 5:5e77a1db4d45 | 13 | { |
jmarkel44 | 5:5e77a1db4d45 | 14 | private: |
jmarkel44 | 5:5e77a1db4d45 | 15 | string controlFile; // name of the control file |
jmarkel44 | 5:5e77a1db4d45 | 16 | unsigned int interval; // interval at which we run |
jmarkel44 | 5:5e77a1db4d45 | 17 | unsigned int priority; // priority at which we run |
jmarkel44 | 5:5e77a1db4d45 | 18 | public: |
jmarkel44 | 12:ea87887ca7ad | 19 | SetpointControl(string filename) : controlFile(filename) { |
jmarkel44 | 12:ea87887ca7ad | 20 | printf("\r%s instantiated with control file %s\n", |
jmarkel44 | 12:ea87887ca7ad | 21 | __func__, controlFile.c_str()); |
jmarkel44 | 5:5e77a1db4d45 | 22 | } |
jmarkel44 | 12:ea87887ca7ad | 23 | ~SetpointControl() { |
jmarkel44 | 12:ea87887ca7ad | 24 | printf("\r%s destructor invoked\n", __func__); |
jmarkel44 | 12:ea87887ca7ad | 25 | } |
jmarkel44 | 12:ea87887ca7ad | 26 | string getControlFile(void) { |
jmarkel44 | 12:ea87887ca7ad | 27 | return controlFile; |
jmarkel44 | 12:ea87887ca7ad | 28 | } |
jmarkel44 | 5:5e77a1db4d45 | 29 | }; |
jmarkel44 | 5:5e77a1db4d45 | 30 | |
jmarkel44 | 5:5e77a1db4d45 | 31 | #endif |