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 Pacemaker by
genData.cpp
00001 #pragma once 00002 #include "mbed.h" 00003 #include "genData.h" 00004 00005 genData::genData(){ 00006 p_hysteresis = false; 00007 p_hysteresisInterval = 0; 00008 p_lowerRateLimit = 0; 00009 p_upperRateLimit = 0; 00010 p_AVdelay = 0; 00011 p_AVdelayOffset = 0; 00012 p_rateSmoothing = 0; 00013 p_pacingMode = VVI; 00014 p_pacingState = PERMANENT; 00015 } 00016 00017 void genData::chngHyst(bool chng){ 00018 p_hysteresis = chng; 00019 } 00020 00021 bool genData::getHyst(){ 00022 return p_hysteresis; 00023 } 00024 00025 void genData::chngHystInterval(double val){ 00026 p_hysteresisInterval = val; 00027 } 00028 00029 double genData::getHystInterval(){ 00030 return p_hysteresisInterval; 00031 } 00032 00033 void genData::chngLRL(double val){ 00034 p_lowerRateLimit = val; 00035 } 00036 00037 double genData::getLRL(){ 00038 return p_lowerRateLimit; 00039 } 00040 00041 void genData::chngURL(double val){ 00042 p_upperRateLimit = val; 00043 } 00044 00045 double genData::getURL(){ 00046 return p_upperRateLimit; 00047 } 00048 00049 void genData::chngAVdelay(double val){ 00050 p_AVdelay = val; 00051 } 00052 00053 double genData::getAVdelay(){ 00054 return p_AVdelay; 00055 } 00056 00057 void genData::chngAVdelayOffset(double val){ 00058 p_AVdelayOffset = val; 00059 } 00060 00061 double genData::getAVdelayOffset(){ 00062 return p_AVdelayOffset; 00063 } 00064 00065 void genData::chngRSmooth(double val){ 00066 p_rateSmoothing = val; 00067 } 00068 00069 double genData::getRSmooth(){ 00070 return p_rateSmoothing; 00071 } 00072 00073 void genData::chngMode(Mode mode){ 00074 p_pacingMode = mode; 00075 } 00076 00077 genData::Mode genData::getMode(){ 00078 return p_pacingMode; 00079 } 00080 00081 void genData::chngState(State state){ 00082 p_pacingState = state; 00083 } 00084 00085 genData::State genData::getState(){ 00086 return p_pacingState; 00087 } 00088 00089 00090 00091 genData::~genData(){}
Generated on Thu Jul 14 2022 00:42:53 by
1.7.2
