Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

Committer:
FiveDollar
Date:
Sun Oct 30 16:04:52 2016 +0000
Revision:
0:b2b3955cd77b
Child:
1:fbba2687ddfe
Initial 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 0:b2b3955cd77b 17 void genData::chngMode(Mode mode){
FiveDollar 0:b2b3955cd77b 18 p_pacingMode = mode;
FiveDollar 0:b2b3955cd77b 19 }
FiveDollar 0:b2b3955cd77b 20
FiveDollar 0:b2b3955cd77b 21 genData::Mode genData::getMode(){
FiveDollar 0:b2b3955cd77b 22 return p_pacingMode;
FiveDollar 0:b2b3955cd77b 23 }
FiveDollar 0:b2b3955cd77b 24
FiveDollar 0:b2b3955cd77b 25 void genData::chngState(State state){
FiveDollar 0:b2b3955cd77b 26 p_pacingState = state;
FiveDollar 0:b2b3955cd77b 27 }
FiveDollar 0:b2b3955cd77b 28
FiveDollar 0:b2b3955cd77b 29 genData::State genData::getState(){
FiveDollar 0:b2b3955cd77b 30 return p_pacingState;
FiveDollar 0:b2b3955cd77b 31 }
FiveDollar 0:b2b3955cd77b 32
FiveDollar 0:b2b3955cd77b 33
FiveDollar 0:b2b3955cd77b 34
FiveDollar 0:b2b3955cd77b 35 genData::~genData(){}