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.

pulse.h

Committer:
trane3
Date:
2016-11-15
Revision:
10:35b259e70c9a
Parent:
8:75c1dd8b0d61
Child:
18:aef2f75f216b
Child:
21:fc6c33206152

File content as of revision 10:35b259e70c9a:

#pragma once
#include "mbed.h"
#include "hardware.h"
#include "chamberData.h"

class pulse{
public:
    pulse();
    pulse(chamberData*, hardware*);
    ~pulse();
    void startPulse();
    void setChamber(chamberData*); //used in VOOR (for now, might change) - eric
    
private:
    double myPaceWidth; //mSec, width of ventricular pace
    double myPaceAmp; //mV, amplitude of ventricular pace
    double myRP; //mSec, duration of refractory period
    float p_hysteresisInterval;
    float p_lowrateInterval;
    bool p_hysteresis;
    Serial* pc;
    PwmOut* aOut;
    chamberData* myChamber;
    hardware* myIOpins;    
};