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@11:0695c1091129, 2016-09-07 (annotated)
- Committer:
- jmarkel44
- Date:
- Wed Sep 07 12:06:02 2016 +0000
- Revision:
- 11:0695c1091129
- Parent:
- 5:5e77a1db4d45
basic timer & setpoint controls (via classes) operating;
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 | 11:0695c1091129 | 4 | * Desciption: ICE Setpoint 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 | 11:0695c1091129 | 15 | // TODO: populate with the correct data |
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 | 11:0695c1091129 | 20 | SetpointControl(const char* filename) : controlFile(filename) { |
jmarkel44 | 11:0695c1091129 | 21 | printf("\r%s instantiated with controlFile %s\n", |
jmarkel44 | 5:5e77a1db4d45 | 22 | __func__, controlFile.c_str()); |
jmarkel44 | 5:5e77a1db4d45 | 23 | } |
jmarkel44 | 11:0695c1091129 | 24 | ~SetpointControl() { |
jmarkel44 | 11:0695c1091129 | 25 | printf("\r%s invoked!\n", __func__); |
jmarkel44 | 11:0695c1091129 | 26 | } |
jmarkel44 | 5:5e77a1db4d45 | 27 | string getControlFile(void) { return controlFile; } |
jmarkel44 | 5:5e77a1db4d45 | 28 | }; |
jmarkel44 | 5:5e77a1db4d45 | 29 | |
jmarkel44 | 5:5e77a1db4d45 | 30 | #endif |