Vincent Cheung
/
HelloWorld
h
Fork of HelloWorld by
PaceHeart.h@5:afabac4fce1b, 2016-11-16 (annotated)
- Committer:
- oopakhooo
- Date:
- Wed Nov 16 21:44:03 2016 +0000
- Revision:
- 5:afabac4fce1b
- Parent:
- 3:641eefd1110b
serial params to interface
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; |
oopakhooo | 5:afabac4fce1b | 3 | #include "mbed.h" |
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 | 5:afabac4fce1b | 9 | int p_pacingState; |
oopakhooo | 5:afabac4fce1b | 10 | int p_pacingMode; |
oopakhooo | 5:afabac4fce1b | 11 | int p_hysteresis; |
oopakhooo | 5:afabac4fce1b | 12 | int p_hysteresisInterval; |
oopakhooo | 5:afabac4fce1b | 13 | int lowrateInterval; |
oopakhooo | 5:afabac4fce1b | 14 | int uprateInterval; //upper rate limit |
oopakhooo | 5:afabac4fce1b | 15 | //Ventricle |
oopakhooo | 5:afabac4fce1b | 16 | double p_vPaceAmp; |
oopakhooo | 5:afabac4fce1b | 17 | double p_vPaceWidth; |
oopakhooo | 5:afabac4fce1b | 18 | int p_VRP; |
oopakhooo | 5:afabac4fce1b | 19 | //Atrium (change defaults) |
oopakhooo | 5:afabac4fce1b | 20 | double p_aPaceAmp; |
oopakhooo | 5:afabac4fce1b | 21 | double p_aPaceWidth; |
oopakhooo | 5:afabac4fce1b | 22 | int p_ARP; |
oopakhooo | 3:641eefd1110b | 23 | public: |
oopakhooo | 5:afabac4fce1b | 24 | PaceHeart(); |
oopakhooo | 5:afabac4fce1b | 25 | void pace_A(); |
oopakhooo | 5:afabac4fce1b | 26 | void pace_A(double amp, double wid,int pin); |
oopakhooo | 5:afabac4fce1b | 27 | void pace_V(double amp, double wid,int pin); |
oopakhooo | 5:afabac4fce1b | 28 | void pace_V(); |
oopakhooo | 5:afabac4fce1b | 29 | void pace(); |
oopakhooo | 5:afabac4fce1b | 30 | void pace(int x); |
oopakhooo | 5:afabac4fce1b | 31 | int get_p_pacingState(); |
oopakhooo | 5:afabac4fce1b | 32 | void set_p_pacingState(int x); |
oopakhooo | 5:afabac4fce1b | 33 | int get_p_pacingMode(); |
oopakhooo | 5:afabac4fce1b | 34 | void set_p_pacingMode(int x); |
oopakhooo | 5:afabac4fce1b | 35 | int get_p_hysteresis(); |
oopakhooo | 5:afabac4fce1b | 36 | void set_p_hysteresis(int x); |
oopakhooo | 5:afabac4fce1b | 37 | int get_p_hysteresisInterval(); |
oopakhooo | 5:afabac4fce1b | 38 | void set_p_hysteresisInterval(int x); |
oopakhooo | 5:afabac4fce1b | 39 | int get_lowrateInterval(); |
oopakhooo | 5:afabac4fce1b | 40 | void set_lowrateInterval(int x); |
oopakhooo | 5:afabac4fce1b | 41 | int get_uprateInterval(); |
oopakhooo | 5:afabac4fce1b | 42 | void set_uprateInterval(int x); |
oopakhooo | 5:afabac4fce1b | 43 | double get_p_vPaceAmp(); |
oopakhooo | 5:afabac4fce1b | 44 | void set_p_vPaceAmp(double x); |
oopakhooo | 5:afabac4fce1b | 45 | double get_p_vPaceWidth(); |
oopakhooo | 5:afabac4fce1b | 46 | void set_p_vPaceWidth(double x); |
oopakhooo | 5:afabac4fce1b | 47 | int get_p_VRP(); |
oopakhooo | 5:afabac4fce1b | 48 | void set_p_VRP(int x); |
oopakhooo | 5:afabac4fce1b | 49 | double get_p_aPaceAmp(); |
oopakhooo | 5:afabac4fce1b | 50 | void set_p_aPaceAmp(double x); |
oopakhooo | 5:afabac4fce1b | 51 | double get_p_aPaceWidth(); |
oopakhooo | 5:afabac4fce1b | 52 | void set_p_aPaceWidth(double x); |
oopakhooo | 5:afabac4fce1b | 53 | int get_p_ARP(); |
oopakhooo | 5:afabac4fce1b | 54 | void set_p_ARP(int x); |
oopakhooo | 3:641eefd1110b | 55 | }; |
Judorunner | 2:e2ae43e8acab | 56 | #endif |