Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

genData.h

Committer:
FiveDollar
Date:
2016-11-14
Revision:
2:fbba2687ddfe
Parent:
0:b2b3955cd77b
Child:
20:bfd23a6845bb

File content as of revision 2:fbba2687ddfe:

#pragma once
#include "mbed.h"

class genData{
public:
    enum Mode
    {
        VVI,
        VOOR 
    };
    enum State
    {
        PERMANENT,
        TEMPORARY
    };
    
    genData();
    ~genData();
    void chngHyst(bool);
    bool getHyst();
    void chngHystInterval(double);
    double getHystInterval();
    void chngLRL(double);
    double getLRL();
    void chngURL(double);
    double getURL();
    void chngAVdelay(double);
    double getAVdelay();
    void chngAVdelayOffset(double);
    double getAVdelayOffset();
    void chngRSmooth(double);
    double getRSmooth();
    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;
    
};