a

Dependencies:   mbed

Fork of HelloWorld by Vincent Cheung

PaceHeart.h

Committer:
kevinmadethis
Date:
2016-10-29
Revision:
5:402ac8c92d76
Parent:
4:fb75731983cd

File content as of revision 5:402ac8c92d76:

#include <string>
using namespace std;

#ifndef PACEHEART_H
#define PACEHEART_H
class PaceHeart{

    private:
    int p_pacingState;
    int p_pacingMode;
    int p_hysteresis;
    int p_hysteresisInterval;
    int lowrateInterval;
    
    //Ventricle
    double p_vPaceAmp;
    double p_vPaceWidth;
    int p_VRP;
    //Atrium (change defaults)
    double p_aPaceAmp;
    double p_aPaceWidth;
    int p_ARP;
    public:
PaceHeart();
void pace_A();
void pace_A(double amp, double wid,int pin);
void pace_V(double amp, double wid,int pin);
void pace_V();
void pace();
void pace(int x);
int get_p_pacingState();
int get_p_pacingMode();
int get_p_hysteresis();
void set_p_hysteresis(int hysteresis);
int get_p_hysteresisInterval();
void set_p_hysteresisInterval(int hysteresisInterval);
int get_lowrateInterval();
void set_lowrateInterval(int lowrateInterval);
double get_p_vPaceAmp();
void set_p_vPaceAmp(double vPaceAmp);
double get_p_vPaceWidth();
void set_p_vPaceWidth(double vPaceWidth);
int get_p_VRP();
void set_p_VRP(int VRP);
double get_p_aPaceAmp();
void set_p_aPaceAmp(double aPaceAmp);
double get_p_aPaceWidth();
void set_p_aPaceWidth(double aPaceWidth);
int get_p_ARP();
void set_p_ARP(int ARP);

bool amp_inRange(double x);
bool width_inRange(double x);
bool dur_inRange(int x);
};
#endif