Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HelloWorld by
PaceHeart.h
00001 #include <string> 00002 using namespace std; 00003 00004 #ifndef PACEHEART_H 00005 #define PACEHEART_H 00006 class PaceHeart{ 00007 00008 private: 00009 int p_pacingState; 00010 int p_pacingMode; 00011 int p_hysteresis; 00012 int p_hysteresisInterval; 00013 int lowrateInterval; 00014 int uprateInterval; //upper rate limit 00015 //Ventricle 00016 double p_vPaceAmp; 00017 double p_vPaceWidth; 00018 int p_VRP; 00019 //Atrium (change defaults) 00020 double p_aPaceAmp; 00021 double p_aPaceWidth; 00022 int p_ARP; 00023 int activityThresh; 00024 int reactionTime; 00025 int responseFactor; 00026 int recoveryTime; 00027 public: 00028 PaceHeart(); 00029 PaceHeart(int mode); 00030 void pace_A(); 00031 void pace_A(double amp, double wid,int pin); 00032 void pace_V(double amp, double wid,int pin); 00033 void pace_V(); 00034 void pace(); 00035 void pace(int x); 00036 int get_p_pacingState(); 00037 int get_p_pacingMode(); 00038 int get_p_hysteresis(); 00039 void set_p_hysteresis(int x); 00040 int get_p_hysteresisInterval(); 00041 void set_p_hysteresisInterval(int x); 00042 int get_lowrateInterval(); 00043 void set_lowrateInterval(int x); 00044 int get_uprateInterval(); 00045 void set_uprateInterval(int x); 00046 double get_p_vPaceAmp(); 00047 void set_p_vPaceAmp(double x); 00048 double get_p_vPaceWidth(); 00049 void set_p_vPaceWidth(double x); 00050 int get_p_VRP(); 00051 void set_p_VRP(int x); 00052 double get_p_aPaceAmp(); 00053 void set_p_aPaceAmp(double x); 00054 double get_p_aPaceWidth(); 00055 void set_p_aPaceWidth(double x); 00056 int get_p_ARP(); 00057 void set_p_ARP(int x); 00058 int get_activityThresh(); 00059 int get_reactionTime(); 00060 int get_responseFactor(); 00061 int get_recoveryTime(); 00062 void set_activityThresh(); 00063 void set_reactionTime(); 00064 void set_responseFactor(); 00065 void set_recoveryTime(); 00066 }; 00067 #endif
Generated on Fri Sep 9 2022 21:20:45 by
