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.

interface.h

Committer:
noahzwiep
Date:
2016-12-18
Revision:
36:b6431cd8ecd6
Parent:
32:69cd1390bc21

File content as of revision 36:b6431cd8ecd6:

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

class interface{

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

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

      
private:
    char* getInput();
    char buffer[128];
    char* value;
    char command;
    int* valInRange();
    char getChar();
    bool isEgram;
    double myValue;
    DigitalOut rled; 
    Serial* pc;
    pulse* interfacePulse;
    pulse* atrPulse;
    genData* generalData;
    chamberData* atrData;
    chamberData* ventData;
    dataStruct* myDataStruct;
    hardware* myHardware;
    unsigned char nTemp;
    static const int N = 13;
};