Kevin Chen
/
HelloWorld
a
Fork of HelloWorld by
PaceHeart.h@5:402ac8c92d76, 2016-10-29 (annotated)
- Committer:
- kevinmadethis
- Date:
- Sat Oct 29 22:51:31 2016 +0000
- Revision:
- 5:402ac8c92d76
- Parent:
- 4:fb75731983cd
z;
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{ |
kevinmadethis | 4:fb75731983cd | 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; |
kevinmadethis | 5:402ac8c92d76 | 14 | |
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(); |
kevinmadethis | 5:402ac8c92d76 | 34 | void set_p_hysteresis(int hysteresis); |
oopakhooo | 3:641eefd1110b | 35 | int get_p_hysteresisInterval(); |
kevinmadethis | 5:402ac8c92d76 | 36 | void set_p_hysteresisInterval(int hysteresisInterval); |
Judorunner | 2:e2ae43e8acab | 37 | int get_lowrateInterval(); |
kevinmadethis | 5:402ac8c92d76 | 38 | void set_lowrateInterval(int lowrateInterval); |
oopakhooo | 3:641eefd1110b | 39 | double get_p_vPaceAmp(); |
kevinmadethis | 5:402ac8c92d76 | 40 | void set_p_vPaceAmp(double vPaceAmp); |
Judorunner | 2:e2ae43e8acab | 41 | double get_p_vPaceWidth(); |
kevinmadethis | 5:402ac8c92d76 | 42 | void set_p_vPaceWidth(double vPaceWidth); |
Judorunner | 2:e2ae43e8acab | 43 | int get_p_VRP(); |
kevinmadethis | 5:402ac8c92d76 | 44 | void set_p_VRP(int VRP); |
oopakhooo | 3:641eefd1110b | 45 | double get_p_aPaceAmp(); |
kevinmadethis | 5:402ac8c92d76 | 46 | void set_p_aPaceAmp(double aPaceAmp); |
oopakhooo | 3:641eefd1110b | 47 | double get_p_aPaceWidth(); |
kevinmadethis | 5:402ac8c92d76 | 48 | void set_p_aPaceWidth(double aPaceWidth); |
oopakhooo | 3:641eefd1110b | 49 | int get_p_ARP(); |
kevinmadethis | 5:402ac8c92d76 | 50 | void set_p_ARP(int ARP); |
kevinmadethis | 4:fb75731983cd | 51 | |
kevinmadethis | 4:fb75731983cd | 52 | bool amp_inRange(double x); |
kevinmadethis | 4:fb75731983cd | 53 | bool width_inRange(double x); |
kevinmadethis | 4:fb75731983cd | 54 | bool dur_inRange(int x); |
oopakhooo | 3:641eefd1110b | 55 | }; |
kevinmadethis | 4:fb75731983cd | 56 | #endif |