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@5:5e77a1db4d45, 2016-09-06 (annotated)
- Committer:
- jmarkel44
- Date:
- Tue Sep 06 19:20:39 2016 +0000
- Revision:
- 5:5e77a1db4d45
- Child:
- 10:38d8ece439da
- Child:
- 11:0695c1091129
- Child:
- 12:ea87887ca7ad
testing the repo
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 | 5:5e77a1db4d45 | 19 | SetpointControl(const char* filename) : controlFile(filename) |
jmarkel44 | 5:5e77a1db4d45 | 20 | { |
jmarkel44 | 5:5e77a1db4d45 | 21 | printf("\r%s: SetpointControl instantiated with controlFile %s\n", |
jmarkel44 | 5:5e77a1db4d45 | 22 | __func__, controlFile.c_str()); |
jmarkel44 | 5:5e77a1db4d45 | 23 | } |
jmarkel44 | 5:5e77a1db4d45 | 24 | string getControlFile(void) { return controlFile; } |
jmarkel44 | 5:5e77a1db4d45 | 25 | }; |
jmarkel44 | 5:5e77a1db4d45 | 26 | |
jmarkel44 | 5:5e77a1db4d45 | 27 | #endif |