Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

genData.h

Committer:
FiveDollar
Date:
2016-10-30
Revision:
0:b2b3955cd77b
Child:
1:fbba2687ddfe

File content as of revision 0:b2b3955cd77b:

#pragma once
#include "mbed.h"

class genData{
public:
    enum Mode
    {
        VVI,
        VOOR 
    };
    enum State
    {
        PERMANENT,
        TEMPORARY
    };
    
    genData();
    ~genData();
    virtual void chngMode(Mode mode);
    virtual Mode getMode();
    virtual void chngState(State state);
    virtual State getState();
    //virtual bool isMagnet();
    //virtual void chngMagnet(bool state);

protected:
    double p_hysteresis;
    double p_hysteresisInterval;
    double p_lowerRateLimit;
    double p_upperRateLimit;
    double p_AVdelay;
    double p_AVdelayOffset;
    double p_rateSmoothing;
    Mode p_pacingMode;
    State p_pacingState;
    
};