eric's fork test

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3k04 team

Committer:
FiveDollar
Date:
Mon Nov 14 01:27:31 2016 +0000
Revision:
2:fbba2687ddfe
Parent:
0:b2b3955cd77b
nov 13 commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FiveDollar 0:b2b3955cd77b 1 #pragma once
FiveDollar 0:b2b3955cd77b 2 #include "mbed.h"
FiveDollar 0:b2b3955cd77b 3 #include "genData.h"
FiveDollar 0:b2b3955cd77b 4
FiveDollar 0:b2b3955cd77b 5 genData::genData(){
FiveDollar 0:b2b3955cd77b 6 p_hysteresis = false;
FiveDollar 0:b2b3955cd77b 7 p_hysteresisInterval = 0;
FiveDollar 0:b2b3955cd77b 8 p_lowerRateLimit = 0;
FiveDollar 0:b2b3955cd77b 9 p_upperRateLimit = 0;
FiveDollar 0:b2b3955cd77b 10 p_AVdelay = 0;
FiveDollar 0:b2b3955cd77b 11 p_AVdelayOffset = 0;
FiveDollar 0:b2b3955cd77b 12 p_rateSmoothing = 0;
FiveDollar 0:b2b3955cd77b 13 p_pacingMode = VVI;
FiveDollar 0:b2b3955cd77b 14 p_pacingState = PERMANENT;
FiveDollar 0:b2b3955cd77b 15 }
FiveDollar 0:b2b3955cd77b 16
FiveDollar 2:fbba2687ddfe 17 void genData::chngHyst(bool chng){
FiveDollar 2:fbba2687ddfe 18 p_hysteresis = chng;
FiveDollar 2:fbba2687ddfe 19 }
FiveDollar 2:fbba2687ddfe 20
FiveDollar 2:fbba2687ddfe 21 bool genData::getHyst(){
FiveDollar 2:fbba2687ddfe 22 return p_hysteresis;
FiveDollar 2:fbba2687ddfe 23 }
FiveDollar 2:fbba2687ddfe 24
FiveDollar 2:fbba2687ddfe 25 void genData::chngHystInterval(double val){
FiveDollar 2:fbba2687ddfe 26 p_hysteresisInterval = val;
FiveDollar 2:fbba2687ddfe 27 }
FiveDollar 2:fbba2687ddfe 28
FiveDollar 2:fbba2687ddfe 29 double genData::getHystInterval(){
FiveDollar 2:fbba2687ddfe 30 return p_hysteresisInterval;
FiveDollar 2:fbba2687ddfe 31 }
FiveDollar 2:fbba2687ddfe 32
FiveDollar 2:fbba2687ddfe 33 void genData::chngLRL(double val){
FiveDollar 2:fbba2687ddfe 34 p_lowerRateLimit = val;
FiveDollar 2:fbba2687ddfe 35 }
FiveDollar 2:fbba2687ddfe 36
FiveDollar 2:fbba2687ddfe 37 double genData::getLRL(){
FiveDollar 2:fbba2687ddfe 38 return p_lowerRateLimit;
FiveDollar 2:fbba2687ddfe 39 }
FiveDollar 2:fbba2687ddfe 40
FiveDollar 2:fbba2687ddfe 41 void genData::chngURL(double val){
FiveDollar 2:fbba2687ddfe 42 p_upperRateLimit = val;
FiveDollar 2:fbba2687ddfe 43 }
FiveDollar 2:fbba2687ddfe 44
FiveDollar 2:fbba2687ddfe 45 double genData::getURL(){
FiveDollar 2:fbba2687ddfe 46 return p_upperRateLimit;
FiveDollar 2:fbba2687ddfe 47 }
FiveDollar 2:fbba2687ddfe 48
FiveDollar 2:fbba2687ddfe 49 void genData::chngAVdelay(double val){
FiveDollar 2:fbba2687ddfe 50 p_AVdelay = val;
FiveDollar 2:fbba2687ddfe 51 }
FiveDollar 2:fbba2687ddfe 52
FiveDollar 2:fbba2687ddfe 53 double genData::getAVdelay(){
FiveDollar 2:fbba2687ddfe 54 return p_AVdelay;
FiveDollar 2:fbba2687ddfe 55 }
FiveDollar 2:fbba2687ddfe 56
FiveDollar 2:fbba2687ddfe 57 void genData::chngAVdelayOffset(double val){
FiveDollar 2:fbba2687ddfe 58 p_AVdelayOffset = val;
FiveDollar 2:fbba2687ddfe 59 }
FiveDollar 2:fbba2687ddfe 60
FiveDollar 2:fbba2687ddfe 61 double genData::getAVdelayOffset(){
FiveDollar 2:fbba2687ddfe 62 return p_AVdelayOffset;
FiveDollar 2:fbba2687ddfe 63 }
FiveDollar 2:fbba2687ddfe 64
FiveDollar 2:fbba2687ddfe 65 void genData::chngRSmooth(double val){
FiveDollar 2:fbba2687ddfe 66 p_rateSmoothing = val;
FiveDollar 2:fbba2687ddfe 67 }
FiveDollar 2:fbba2687ddfe 68
FiveDollar 2:fbba2687ddfe 69 double genData::getRSmooth(){
FiveDollar 2:fbba2687ddfe 70 return p_rateSmoothing;
FiveDollar 2:fbba2687ddfe 71 }
FiveDollar 2:fbba2687ddfe 72
FiveDollar 0:b2b3955cd77b 73 void genData::chngMode(Mode mode){
FiveDollar 0:b2b3955cd77b 74 p_pacingMode = mode;
FiveDollar 0:b2b3955cd77b 75 }
FiveDollar 0:b2b3955cd77b 76
FiveDollar 0:b2b3955cd77b 77 genData::Mode genData::getMode(){
FiveDollar 0:b2b3955cd77b 78 return p_pacingMode;
FiveDollar 0:b2b3955cd77b 79 }
FiveDollar 0:b2b3955cd77b 80
FiveDollar 0:b2b3955cd77b 81 void genData::chngState(State state){
FiveDollar 0:b2b3955cd77b 82 p_pacingState = state;
FiveDollar 0:b2b3955cd77b 83 }
FiveDollar 0:b2b3955cd77b 84
FiveDollar 0:b2b3955cd77b 85 genData::State genData::getState(){
FiveDollar 0:b2b3955cd77b 86 return p_pacingState;
FiveDollar 0:b2b3955cd77b 87 }
FiveDollar 0:b2b3955cd77b 88
FiveDollar 0:b2b3955cd77b 89
FiveDollar 0:b2b3955cd77b 90
FiveDollar 0:b2b3955cd77b 91 genData::~genData(){}