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:
noahzwiep
Date:
Tue Nov 29 01:15:10 2016 +0000
Revision:
26:3b49e8c3793f
Parent:
25:d816de7067da
Child:
31:5e55042e025a
Added a way to stop streaming egram data.

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"
noahzwiep 16:08d5e5a3ee74 7 #include "dataStruct.h"
noahzwiep 25:d816de7067da 8 #include "queue.h"
noahzwiep 16:08d5e5a3ee74 9
FiveDollar 0:b2b3955cd77b 10 class interface{
FiveDollar 0:b2b3955cd77b 11
FiveDollar 0:b2b3955cd77b 12 public:
FiveDollar 0:b2b3955cd77b 13 interface();
trane3 7:4eb590c7e064 14 ~interface();
FiveDollar 0:b2b3955cd77b 15 interface(Serial*);
noahzwiep 25:d816de7067da 16 interface(Serial* , pulse* , genData*, chamberData* , chamberData*, hardware*);
FiveDollar 0:b2b3955cd77b 17 void startScreen();
trane3 24:4af25128cedf 18
trane3 24:4af25128cedf 19 // void setAtrium(AnalogOut&);
trane3 24:4af25128cedf 20 // void setVentricle(AnalogOut&);
trane3 24:4af25128cedf 21 // void LEDon(AnalogOut*);
trane3 24:4af25128cedf 22 // void LEDoff(AnalogOut*);
trane3 24:4af25128cedf 23
trane3 24:4af25128cedf 24
trane3 24:4af25128cedf 25 private:
FiveDollar 0:b2b3955cd77b 26 void dataScreen();
trane3 19:d58e1e1a9a24 27 void genDataScreen();
trane3 19:d58e1e1a9a24 28 void chamberDataScreen(chamberData*);
FiveDollar 0:b2b3955cd77b 29 void getData(chamberData*);
FiveDollar 0:b2b3955cd77b 30 void chngVentData();
FiveDollar 0:b2b3955cd77b 31 char* getInput();
FiveDollar 0:b2b3955cd77b 32 char getChar();
FiveDollar 0:b2b3955cd77b 33 void changeData(int , double); // UI tells the user to you 1 for atrium, 2 for ventricle, etc.
FiveDollar 0:b2b3955cd77b 34 void getData(int);
FiveDollar 0:b2b3955cd77b 35 void getEgram();
noahzwiep 26:3b49e8c3793f 36 bool isEgram;
FiveDollar 0:b2b3955cd77b 37 Serial* pc;
FiveDollar 0:b2b3955cd77b 38 pulse* interfacePulse;
trane3 10:35b259e70c9a 39 pulse* atrPulse;
FiveDollar 9:b48423a135d8 40 genData* generalData;
FiveDollar 0:b2b3955cd77b 41 chamberData* atrData;
FiveDollar 0:b2b3955cd77b 42 chamberData* ventData;
noahzwiep 25:d816de7067da 43 dataStruct* myDataStruct;
noahzwiep 25:d816de7067da 44 hardware* myHardware;
noahzwiep 25:d816de7067da 45 queue myQueue;
noahzwiep 25:d816de7067da 46 unsigned char nTemp;
noahzwiep 25:d816de7067da 47 static const int N = 13;
FiveDollar 0:b2b3955cd77b 48 };