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.
genData.h@0:b2b3955cd77b, 2016-10-30 (annotated)
- Committer:
- FiveDollar
- Date:
- Sun Oct 30 16:04:52 2016 +0000
- Revision:
- 0:b2b3955cd77b
- Child:
- 2:fbba2687ddfe
Initial Commit
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 | |
FiveDollar | 0:b2b3955cd77b | 4 | class genData{ |
FiveDollar | 0:b2b3955cd77b | 5 | public: |
FiveDollar | 0:b2b3955cd77b | 6 | enum Mode |
FiveDollar | 0:b2b3955cd77b | 7 | { |
FiveDollar | 0:b2b3955cd77b | 8 | VVI, |
FiveDollar | 0:b2b3955cd77b | 9 | VOOR |
FiveDollar | 0:b2b3955cd77b | 10 | }; |
FiveDollar | 0:b2b3955cd77b | 11 | enum State |
FiveDollar | 0:b2b3955cd77b | 12 | { |
FiveDollar | 0:b2b3955cd77b | 13 | PERMANENT, |
FiveDollar | 0:b2b3955cd77b | 14 | TEMPORARY |
FiveDollar | 0:b2b3955cd77b | 15 | }; |
FiveDollar | 0:b2b3955cd77b | 16 | |
FiveDollar | 0:b2b3955cd77b | 17 | genData(); |
FiveDollar | 0:b2b3955cd77b | 18 | ~genData(); |
FiveDollar | 0:b2b3955cd77b | 19 | virtual void chngMode(Mode mode); |
FiveDollar | 0:b2b3955cd77b | 20 | virtual Mode getMode(); |
FiveDollar | 0:b2b3955cd77b | 21 | virtual void chngState(State state); |
FiveDollar | 0:b2b3955cd77b | 22 | virtual State getState(); |
FiveDollar | 0:b2b3955cd77b | 23 | //virtual bool isMagnet(); |
FiveDollar | 0:b2b3955cd77b | 24 | //virtual void chngMagnet(bool state); |
FiveDollar | 0:b2b3955cd77b | 25 | |
FiveDollar | 0:b2b3955cd77b | 26 | protected: |
FiveDollar | 0:b2b3955cd77b | 27 | double p_hysteresis; |
FiveDollar | 0:b2b3955cd77b | 28 | double p_hysteresisInterval; |
FiveDollar | 0:b2b3955cd77b | 29 | double p_lowerRateLimit; |
FiveDollar | 0:b2b3955cd77b | 30 | double p_upperRateLimit; |
FiveDollar | 0:b2b3955cd77b | 31 | double p_AVdelay; |
FiveDollar | 0:b2b3955cd77b | 32 | double p_AVdelayOffset; |
FiveDollar | 0:b2b3955cd77b | 33 | double p_rateSmoothing; |
FiveDollar | 0:b2b3955cd77b | 34 | Mode p_pacingMode; |
FiveDollar | 0:b2b3955cd77b | 35 | State p_pacingState; |
FiveDollar | 0:b2b3955cd77b | 36 | |
FiveDollar | 0:b2b3955cd77b | 37 | }; |