Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

interface.h

Committer:
noahzwiep
Date:
2016-11-29
Revision:
26:3b49e8c3793f
Parent:
25:d816de7067da
Child:
30:0cb4890910cd

File content as of revision 26:3b49e8c3793f:

#pragma once
#include "mbed.h"
#include "hardware.h"
#include "chamberData.h"
#include "genData.h"
#include "pulse.h"
#include "dataStruct.h"
#include "queue.h"

class interface{

public:
    interface();
    ~interface();
    interface(Serial*);
    interface(Serial* , pulse* , genData*, chamberData* , chamberData*, hardware*);
    void startScreen();

//    void setAtrium(AnalogOut&);
//    void setVentricle(AnalogOut&);
//    void LEDon(AnalogOut*);
//    void LEDoff(AnalogOut*);

      
private:
    void dataScreen();
    void genDataScreen();
    void chamberDataScreen(chamberData*);
    void getData(chamberData*);
    void chngVentData();
    char* getInput();
    char getChar();
    void changeData(int , double); // UI tells the user to you 1 for atrium, 2 for ventricle, etc.
    void getData(int);
    void getEgram();
    bool isEgram;
    Serial* pc;
    pulse* interfacePulse;
    pulse* atrPulse;
    genData* generalData;
    chamberData* atrData;
    chamberData* ventData;
    dataStruct* myDataStruct;
    hardware* myHardware;
    queue myQueue;
    unsigned char nTemp;
    static const int N = 13;
};