Pacemaker code Implementation for SFWRENG 3K04
Dependencies: mbed Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.
The project uses the Freescale K64F Microcontroller and C++ mbed library.
pulse.h@21:fc6c33206152, 2016-11-24 (annotated)
- Committer:
- trane3
- Date:
- Thu Nov 24 03:39:31 2016 +0000
- Revision:
- 21:fc6c33206152
- Parent:
- 10:35b259e70c9a
- Child:
- 32:69cd1390bc21
Eric temp changes
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 | |
FiveDollar | 0:b2b3955cd77b | 6 | class pulse{ |
FiveDollar | 0:b2b3955cd77b | 7 | public: |
FiveDollar | 0:b2b3955cd77b | 8 | pulse(); |
FiveDollar | 0:b2b3955cd77b | 9 | pulse(chamberData*, hardware*); |
FiveDollar | 0:b2b3955cd77b | 10 | ~pulse(); |
FiveDollar | 0:b2b3955cd77b | 11 | void startPulse(); |
trane3 | 21:fc6c33206152 | 12 | // void setChamber(chamberData*); //used in VOOR (for now, might change) - eric |
FiveDollar | 0:b2b3955cd77b | 13 | |
FiveDollar | 0:b2b3955cd77b | 14 | private: |
FiveDollar | 0:b2b3955cd77b | 15 | double myPaceWidth; //mSec, width of ventricular pace |
FiveDollar | 0:b2b3955cd77b | 16 | double myPaceAmp; //mV, amplitude of ventricular pace |
FiveDollar | 0:b2b3955cd77b | 17 | double myRP; //mSec, duration of refractory period |
FiveDollar | 0:b2b3955cd77b | 18 | float p_hysteresisInterval; |
FiveDollar | 0:b2b3955cd77b | 19 | float p_lowrateInterval; |
FiveDollar | 0:b2b3955cd77b | 20 | bool p_hysteresis; |
FiveDollar | 0:b2b3955cd77b | 21 | Serial* pc; |
FiveDollar | 2:fbba2687ddfe | 22 | PwmOut* aOut; |
FiveDollar | 0:b2b3955cd77b | 23 | chamberData* myChamber; |
trane3 | 10:35b259e70c9a | 24 | hardware* myIOpins; |
FiveDollar | 0:b2b3955cd77b | 25 | }; |