Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Committer:
jmarkel44
Date:
Thu Sep 08 21:24:34 2016 +0000
Revision:
33:cb765aefa1b5
Parent:
28:c410a61238bb
merging;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmarkel44 12:ea87887ca7ad 1 /******************************************************************************
jmarkel44 12:ea87887ca7ad 2 *
jmarkel44 12:ea87887ca7ad 3 * File: TimerControl.h
jmarkel44 12:ea87887ca7ad 4 * Desciption: ICE Timer Control Class
jmarkel44 12:ea87887ca7ad 5 *
jmarkel44 12:ea87887ca7ad 6 *****************************************************************************/
jmarkel44 12:ea87887ca7ad 7 #ifndef TIMERCONTROL_H
jmarkel44 12:ea87887ca7ad 8 #define TIMERCONTROL_H
jmarkel44 12:ea87887ca7ad 9
jmarkel44 12:ea87887ca7ad 10 #include <string>
jmarkel44 12:ea87887ca7ad 11
jmarkel44 19:9bc8fabeddfa 12 using namespace std;
jmarkel44 19:9bc8fabeddfa 13
jmarkel44 12:ea87887ca7ad 14 class TimerControl
jmarkel44 12:ea87887ca7ad 15 {
jmarkel44 12:ea87887ca7ad 16 private:
jmarkel44 12:ea87887ca7ad 17 string controlFile; // name of the control file
jmarkel44 20:653923c2f37a 18 string id; // identifier
jmarkel44 20:653923c2f37a 19 string name; // friendly name
jmarkel44 20:653923c2f37a 20 unsigned int priority; // control priority
jmarkel44 20:653923c2f37a 21 unsigned int dayOfWeek; // days of the week
jmarkel44 20:653923c2f37a 22 unsigned int startWeek; // starting week
jmarkel44 33:cb765aefa1b5 23 string output;
jmarkel44 20:653923c2f37a 24 unsigned int freq;
jmarkel44 33:cb765aefa1b5 25 typedef struct tod_tag {
jmarkel44 20:653923c2f37a 26 unsigned int start;
jmarkel44 20:653923c2f37a 27 unsigned int interval;
jmarkel44 33:cb765aefa1b5 28 } tod;
jmarkel44 20:653923c2f37a 29
jmarkel44 12:ea87887ca7ad 30 public:
jmarkel44 19:9bc8fabeddfa 31 TimerControl() {};
jmarkel44 12:ea87887ca7ad 32 ~TimerControl() {
jmarkel44 12:ea87887ca7ad 33 printf("\r%s destructor invoked\n", __func__);
jmarkel44 12:ea87887ca7ad 34 }
jmarkel44 20:653923c2f37a 35 // load a control from the control file
jmarkel44 28:c410a61238bb 36 bool load(string filename);
jmarkel44 12:ea87887ca7ad 37 string getControlFile(void) {
jmarkel44 12:ea87887ca7ad 38 return controlFile;
jmarkel44 12:ea87887ca7ad 39 }
jmarkel44 12:ea87887ca7ad 40 };
jmarkel44 12:ea87887ca7ad 41
jmarkel44 12:ea87887ca7ad 42 #endif