Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
interface.h@16:08d5e5a3ee74, 2016-11-17 (annotated)
- Committer:
- noahzwiep
- Date:
- Thu Nov 17 04:03:25 2016 +0000
- Revision:
- 16:08d5e5a3ee74
- Parent:
- 11:35b259e70c9a
- Child:
- 19:d58e1e1a9a24
- Made change to hardware class that provides sensing pin; - Made dataStruct class in which there is multiple threading for grabbing queue data; - Made queue in datastruct to allow storage of data
Who changed what in which revision?
User | Revision | Line number | New 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 | 16:08d5e5a3ee74 | 8 | |
FiveDollar | 0:b2b3955cd77b | 9 | class interface{ |
FiveDollar | 0:b2b3955cd77b | 10 | |
FiveDollar | 0:b2b3955cd77b | 11 | public: |
FiveDollar | 0:b2b3955cd77b | 12 | interface(); |
trane3 | 7:4eb590c7e064 | 13 | ~interface(); |
FiveDollar | 0:b2b3955cd77b | 14 | interface(Serial*); |
FiveDollar | 9:b48423a135d8 | 15 | interface(Serial* , pulse* , genData*, chamberData* , chamberData*); |
FiveDollar | 0:b2b3955cd77b | 16 | void startScreen(); |
FiveDollar | 0:b2b3955cd77b | 17 | void dataScreen(); |
FiveDollar | 0:b2b3955cd77b | 18 | void getData(chamberData*); |
FiveDollar | 0:b2b3955cd77b | 19 | void chngVentData(); |
FiveDollar | 0:b2b3955cd77b | 20 | char* getInput(); |
FiveDollar | 0:b2b3955cd77b | 21 | char getChar(); |
FiveDollar | 0:b2b3955cd77b | 22 | // void setAtrium(AnalogOut&); |
FiveDollar | 0:b2b3955cd77b | 23 | // void setVentricle(AnalogOut&); |
FiveDollar | 0:b2b3955cd77b | 24 | // void LEDon(AnalogOut*); |
FiveDollar | 0:b2b3955cd77b | 25 | // void LEDoff(AnalogOut*); |
FiveDollar | 0:b2b3955cd77b | 26 | void changeData(int , double); // UI tells the user to you 1 for atrium, 2 for ventricle, etc. |
FiveDollar | 0:b2b3955cd77b | 27 | void getData(int); |
FiveDollar | 0:b2b3955cd77b | 28 | void getEgram(); |
FiveDollar | 0:b2b3955cd77b | 29 | |
FiveDollar | 0:b2b3955cd77b | 30 | private: |
FiveDollar | 0:b2b3955cd77b | 31 | Serial* pc; |
FiveDollar | 0:b2b3955cd77b | 32 | pulse* interfacePulse; |
trane3 | 11:35b259e70c9a | 33 | pulse* atrPulse; |
FiveDollar | 9:b48423a135d8 | 34 | genData* generalData; |
FiveDollar | 0:b2b3955cd77b | 35 | chamberData* atrData; |
FiveDollar | 0:b2b3955cd77b | 36 | chamberData* ventData; |
FiveDollar | 0:b2b3955cd77b | 37 | }; |