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.

Committer:
FiveDollar
Date:
Tue Nov 15 20:30:12 2016 +0000
Revision:
9:b48423a135d8
Parent:
7:4eb590c7e064
Child:
10:35b259e70c9a
update printing of general data (Gareth)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FiveDollar 0:b2b3955cd77b 1 #pragma once
FiveDollar 0:b2b3955cd77b 2 #include "mbed.h"
FiveDollar 0:b2b3955cd77b 3 #include "hardware.h"
FiveDollar 0:b2b3955cd77b 4 #include "chamberData.h"
FiveDollar 0:b2b3955cd77b 5 #include "genData.h"
FiveDollar 0:b2b3955cd77b 6 #include "pulse.h"
FiveDollar 0:b2b3955cd77b 7 class interface{
FiveDollar 0:b2b3955cd77b 8
FiveDollar 0:b2b3955cd77b 9 public:
FiveDollar 0:b2b3955cd77b 10 interface();
trane3 7:4eb590c7e064 11 ~interface();
FiveDollar 0:b2b3955cd77b 12 interface(Serial*);
FiveDollar 9:b48423a135d8 13 interface(Serial* , pulse* , genData*, chamberData* , chamberData*);
FiveDollar 0:b2b3955cd77b 14 void startScreen();
FiveDollar 0:b2b3955cd77b 15 void dataScreen();
FiveDollar 0:b2b3955cd77b 16 void getData(chamberData*);
FiveDollar 0:b2b3955cd77b 17 void chngVentData();
FiveDollar 0:b2b3955cd77b 18 char* getInput();
FiveDollar 0:b2b3955cd77b 19 char getChar();
FiveDollar 0:b2b3955cd77b 20 // void setAtrium(AnalogOut&);
FiveDollar 0:b2b3955cd77b 21 // void setVentricle(AnalogOut&);
FiveDollar 0:b2b3955cd77b 22 // void LEDon(AnalogOut*);
FiveDollar 0:b2b3955cd77b 23 // void LEDoff(AnalogOut*);
FiveDollar 0:b2b3955cd77b 24 void changeData(int , double); // UI tells the user to you 1 for atrium, 2 for ventricle, etc.
FiveDollar 0:b2b3955cd77b 25 void getData(int);
FiveDollar 0:b2b3955cd77b 26 void getEgram();
FiveDollar 0:b2b3955cd77b 27
FiveDollar 0:b2b3955cd77b 28 private:
FiveDollar 0:b2b3955cd77b 29 Serial* pc;
FiveDollar 0:b2b3955cd77b 30 pulse* interfacePulse;
FiveDollar 9:b48423a135d8 31 genData* generalData;
FiveDollar 0:b2b3955cd77b 32 chamberData* atrData;
FiveDollar 0:b2b3955cd77b 33 chamberData* ventData;
FiveDollar 0:b2b3955cd77b 34 };