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 Dec 06 20:57:56 2016 +0000
Revision:
32:69cd1390bc21
Parent:
31:5e55042e025a
Updated interface and pulse classes - Noah

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 32:69cd1390bc21 9 #include "rtos.h"
noahzwiep 16:08d5e5a3ee74 10
FiveDollar 0:b2b3955cd77b 11 class interface{
FiveDollar 0:b2b3955cd77b 12
FiveDollar 0:b2b3955cd77b 13 public:
FiveDollar 0:b2b3955cd77b 14 interface();
trane3 7:4eb590c7e064 15 ~interface();
FiveDollar 0:b2b3955cd77b 16 interface(Serial*);
noahzwiep 25:d816de7067da 17 interface(Serial* , pulse* , genData*, chamberData* , chamberData*, hardware*);
noahzwiep 32:69cd1390bc21 18 void readValues();
trane3 24:4af25128cedf 19
trane3 24:4af25128cedf 20 // void setAtrium(AnalogOut&);
trane3 24:4af25128cedf 21 // void setVentricle(AnalogOut&);
trane3 24:4af25128cedf 22 // void LEDon(AnalogOut*);
trane3 24:4af25128cedf 23 // void LEDoff(AnalogOut*);
trane3 24:4af25128cedf 24
trane3 24:4af25128cedf 25
trane3 24:4af25128cedf 26 private:
FiveDollar 0:b2b3955cd77b 27 char* getInput();
noahzwiep 32:69cd1390bc21 28 char buffer[128];
noahzwiep 32:69cd1390bc21 29 char* value;
noahzwiep 32:69cd1390bc21 30 char command;
noahzwiep 32:69cd1390bc21 31 int* valInRange();
FiveDollar 0:b2b3955cd77b 32 char getChar();
noahzwiep 26:3b49e8c3793f 33 bool isEgram;
trane3 31:5e55042e025a 34 double myValue;
noahzwiep 32:69cd1390bc21 35 DigitalOut rled;
FiveDollar 0:b2b3955cd77b 36 Serial* pc;
FiveDollar 0:b2b3955cd77b 37 pulse* interfacePulse;
trane3 10:35b259e70c9a 38 pulse* atrPulse;
FiveDollar 9:b48423a135d8 39 genData* generalData;
FiveDollar 0:b2b3955cd77b 40 chamberData* atrData;
FiveDollar 0:b2b3955cd77b 41 chamberData* ventData;
noahzwiep 25:d816de7067da 42 dataStruct* myDataStruct;
noahzwiep 25:d816de7067da 43 hardware* myHardware;
noahzwiep 25:d816de7067da 44 unsigned char nTemp;
noahzwiep 25:d816de7067da 45 static const int N = 13;
FiveDollar 0:b2b3955cd77b 46 };