Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Committer:
jmarkel44
Date:
Wed Sep 07 12:06:02 2016 +0000
Revision:
11:0695c1091129
basic timer & setpoint controls (via classes) operating;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmarkel44 11:0695c1091129 1 /******************************************************************************
jmarkel44 11:0695c1091129 2 *
jmarkel44 11:0695c1091129 3 * File: TimerControl.h
jmarkel44 11:0695c1091129 4 * Desciption: ICE Timer Control Class
jmarkel44 11:0695c1091129 5 *
jmarkel44 11:0695c1091129 6 *****************************************************************************/
jmarkel44 11:0695c1091129 7 #ifndef TIMERCONTROL_H
jmarkel44 11:0695c1091129 8 #define TIMERCONTROL_H
jmarkel44 11:0695c1091129 9
jmarkel44 11:0695c1091129 10 #include <string>
jmarkel44 11:0695c1091129 11
jmarkel44 11:0695c1091129 12 class TimerControl
jmarkel44 11:0695c1091129 13 {
jmarkel44 11:0695c1091129 14 private:
jmarkel44 11:0695c1091129 15 // TODO: add the correct data here
jmarkel44 11:0695c1091129 16 string controlFile; // name of the control file
jmarkel44 11:0695c1091129 17 unsigned int interval; // interval at which we run
jmarkel44 11:0695c1091129 18 unsigned int priority; // priority at which we run
jmarkel44 11:0695c1091129 19 public:
jmarkel44 11:0695c1091129 20 TimerControl(const char* filename) : controlFile(filename) {
jmarkel44 11:0695c1091129 21 printf("\r%s instantiated with controlFile %s\n",
jmarkel44 11:0695c1091129 22 __func__, controlFile.c_str());
jmarkel44 11:0695c1091129 23 }
jmarkel44 11:0695c1091129 24 ~TimerControl() {
jmarkel44 11:0695c1091129 25 printf("\r%s invoked!\n", __func__);
jmarkel44 11:0695c1091129 26 }
jmarkel44 11:0695c1091129 27 string getControlFile(void) {
jmarkel44 11:0695c1091129 28 return controlFile;
jmarkel44 11:0695c1091129 29 }
jmarkel44 11:0695c1091129 30 };
jmarkel44 11:0695c1091129 31
jmarkel44 11:0695c1091129 32 #endif