reeeeeeeeeeeeeee
Dependencies: MotionSensor mbed
Fork of Assignment2_ver3 by
PaceHeart.h@3:641eefd1110b, 2016-10-26 (annotated)
- Committer:
- oopakhooo
- Date:
- Wed Oct 26 21:17:17 2016 +0000
- Revision:
- 3:641eefd1110b
- Parent:
- 2:e2ae43e8acab
- Child:
- 5:45d58f8a5912
hk;
Who changed what in which revision?
User | Revision | Line number | New 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; |
oopakhooo | 3:641eefd1110b | 13 | int lowrateInterval; |
oopakhooo | 3:641eefd1110b | 14 | int uprateInterval; //upper rate limit |
oopakhooo | 3:641eefd1110b | 15 | //Ventricle |
oopakhooo | 3:641eefd1110b | 16 | double p_vPaceAmp; |
oopakhooo | 3:641eefd1110b | 17 | double p_vPaceWidth; |
oopakhooo | 3:641eefd1110b | 18 | int p_VRP; |
oopakhooo | 3:641eefd1110b | 19 | //Atrium (change defaults) |
oopakhooo | 3:641eefd1110b | 20 | double p_aPaceAmp; |
oopakhooo | 3:641eefd1110b | 21 | double p_aPaceWidth; |
oopakhooo | 3:641eefd1110b | 22 | int p_ARP; |
oopakhooo | 3:641eefd1110b | 23 | public: |
oopakhooo | 3:641eefd1110b | 24 | PaceHeart(); |
oopakhooo | 3:641eefd1110b | 25 | void pace_A(); |
oopakhooo | 3:641eefd1110b | 26 | void pace_A(double amp, double wid,int pin); |
oopakhooo | 3:641eefd1110b | 27 | void pace_V(double amp, double wid,int pin); |
oopakhooo | 3:641eefd1110b | 28 | void pace_V(); |
oopakhooo | 3:641eefd1110b | 29 | void pace(); |
oopakhooo | 3:641eefd1110b | 30 | void pace(int x); |
Judorunner | 2:e2ae43e8acab | 31 | int get_p_pacingState(); |
Judorunner | 2:e2ae43e8acab | 32 | int get_p_pacingMode(); |
Judorunner | 2:e2ae43e8acab | 33 | int get_p_hysteresis(); |
Judorunner | 2:e2ae43e8acab | 34 | void set_p_hysteresis(int x); |
oopakhooo | 3:641eefd1110b | 35 | int get_p_hysteresisInterval(); |
oopakhooo | 3:641eefd1110b | 36 | void set_p_hysteresisInterval(int x); |
Judorunner | 2:e2ae43e8acab | 37 | int get_lowrateInterval(); |
Judorunner | 2:e2ae43e8acab | 38 | void set_lowrateInterval(int x); |
oopakhooo | 3:641eefd1110b | 39 | int get_uprateInterval(); |
oopakhooo | 3:641eefd1110b | 40 | void set_uprateInterval(int x); |
oopakhooo | 3:641eefd1110b | 41 | double get_p_vPaceAmp(); |
oopakhooo | 3:641eefd1110b | 42 | void set_p_vPaceAmp(double x); |
Judorunner | 2:e2ae43e8acab | 43 | double get_p_vPaceWidth(); |
Judorunner | 2:e2ae43e8acab | 44 | void set_p_vPaceWidth(double x); |
Judorunner | 2:e2ae43e8acab | 45 | int get_p_VRP(); |
Judorunner | 2:e2ae43e8acab | 46 | void set_p_VRP(int x); |
oopakhooo | 3:641eefd1110b | 47 | double get_p_aPaceAmp(); |
oopakhooo | 3:641eefd1110b | 48 | void set_p_aPaceAmp(double x); |
oopakhooo | 3:641eefd1110b | 49 | double get_p_aPaceWidth(); |
oopakhooo | 3:641eefd1110b | 50 | void set_p_aPaceWidth(double x); |
oopakhooo | 3:641eefd1110b | 51 | int get_p_ARP(); |
oopakhooo | 3:641eefd1110b | 52 | void set_p_ARP(int x); |
oopakhooo | 3:641eefd1110b | 53 | }; |
Judorunner | 2:e2ae43e8acab | 54 | #endif |