reeeeeeeeeeeeeee

Dependencies:   MotionSensor mbed

Fork of Assignment2_ver3 by weeb grammers

Committer:
Judorunner
Date:
Mon Nov 14 22:47:00 2016 +0000
Revision:
6:9b8fee13549c
Parent:
5:45d58f8a5912
Child:
7:6dc42e1a2a81
ll

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Judorunner 2:e2ae43e8acab 1 #include <string>
Judorunner 2:e2ae43e8acab 2 using namespace std;
Judorunner 2:e2ae43e8acab 3
Judorunner 2:e2ae43e8acab 4 #ifndef PACEHEART_H
Judorunner 2:e2ae43e8acab 5 #define PACEHEART_H
oopakhooo 3:641eefd1110b 6 class PaceHeart{
oopakhooo 3:641eefd1110b 7
oopakhooo 3:641eefd1110b 8 private:
oopakhooo 3:641eefd1110b 9 int p_pacingState;
oopakhooo 3:641eefd1110b 10 int p_pacingMode;
oopakhooo 3:641eefd1110b 11 int p_hysteresis;
oopakhooo 3:641eefd1110b 12 int p_hysteresisInterval;
Judorunner 6:9b8fee13549c 13 double p_lowrateInterval;
Judorunner 6:9b8fee13549c 14 double p_uprateInterval; //upper rate limit
Judorunner 6:9b8fee13549c 15 double p_maxSensorRate;
oopakhooo 3:641eefd1110b 16 //Ventricle
oopakhooo 3:641eefd1110b 17 double p_vPaceAmp;
oopakhooo 3:641eefd1110b 18 double p_vPaceWidth;
oopakhooo 3:641eefd1110b 19 int p_VRP;
oopakhooo 3:641eefd1110b 20 //Atrium (change defaults)
oopakhooo 3:641eefd1110b 21 double p_aPaceAmp;
oopakhooo 3:641eefd1110b 22 double p_aPaceWidth;
oopakhooo 3:641eefd1110b 23 int p_ARP;
Judorunner 6:9b8fee13549c 24 int p_activityThresh;
Judorunner 6:9b8fee13549c 25 int p_reactionTime;
Judorunner 6:9b8fee13549c 26 int p_responseFactor;
Judorunner 6:9b8fee13549c 27 int p_recoveryTime;
oopakhooo 3:641eefd1110b 28 public:
oopakhooo 3:641eefd1110b 29 PaceHeart();
weebgrammers 5:45d58f8a5912 30 PaceHeart(int mode);
oopakhooo 3:641eefd1110b 31 void pace_A();
oopakhooo 3:641eefd1110b 32 void pace_A(double amp, double wid,int pin);
oopakhooo 3:641eefd1110b 33 void pace_V(double amp, double wid,int pin);
oopakhooo 3:641eefd1110b 34 void pace_V();
oopakhooo 3:641eefd1110b 35 void pace();
oopakhooo 3:641eefd1110b 36 void pace(int x);
Judorunner 2:e2ae43e8acab 37 int get_p_pacingState();
Judorunner 2:e2ae43e8acab 38 int get_p_pacingMode();
Judorunner 2:e2ae43e8acab 39 int get_p_hysteresis();
Judorunner 2:e2ae43e8acab 40 void set_p_hysteresis(int x);
oopakhooo 3:641eefd1110b 41 int get_p_hysteresisInterval();
oopakhooo 3:641eefd1110b 42 void set_p_hysteresisInterval(int x);
Judorunner 6:9b8fee13549c 43 double get_p_lowrateInterval();
Judorunner 6:9b8fee13549c 44 void set_p_lowrateInterval(double x);
Judorunner 6:9b8fee13549c 45 double get_p_uprateInterval();
Judorunner 6:9b8fee13549c 46 void set_p_uprateInterval(double x);
Judorunner 6:9b8fee13549c 47 double get_p_maxSensorRate();
Judorunner 6:9b8fee13549c 48 void set_p_maxSensorRate(double x);
oopakhooo 3:641eefd1110b 49 double get_p_vPaceAmp();
oopakhooo 3:641eefd1110b 50 void set_p_vPaceAmp(double x);
Judorunner 2:e2ae43e8acab 51 double get_p_vPaceWidth();
Judorunner 2:e2ae43e8acab 52 void set_p_vPaceWidth(double x);
Judorunner 2:e2ae43e8acab 53 int get_p_VRP();
Judorunner 2:e2ae43e8acab 54 void set_p_VRP(int x);
oopakhooo 3:641eefd1110b 55 double get_p_aPaceAmp();
oopakhooo 3:641eefd1110b 56 void set_p_aPaceAmp(double x);
oopakhooo 3:641eefd1110b 57 double get_p_aPaceWidth();
oopakhooo 3:641eefd1110b 58 void set_p_aPaceWidth(double x);
oopakhooo 3:641eefd1110b 59 int get_p_ARP();
oopakhooo 3:641eefd1110b 60 void set_p_ARP(int x);
Judorunner 6:9b8fee13549c 61 int get_p_activityThresh();
Judorunner 6:9b8fee13549c 62 int get_p_reactionTime();
Judorunner 6:9b8fee13549c 63 int get_p_responseFactor();
Judorunner 6:9b8fee13549c 64 int get_p_recoveryTime();
Judorunner 6:9b8fee13549c 65 void set_p_activityThresh(int x);
Judorunner 6:9b8fee13549c 66 void set_p_reactionTime(int x);
Judorunner 6:9b8fee13549c 67 void set_p_responseFactor(int x);
Judorunner 6:9b8fee13549c 68 void set_p_recoveryTime(int x);
oopakhooo 3:641eefd1110b 69 };
Judorunner 2:e2ae43e8acab 70 #endif