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@2:fbba2687ddfe, 2016-11-14 (annotated)
- Committer:
- FiveDollar
- Date:
- Mon Nov 14 01:27:31 2016 +0000
- Revision:
- 2:fbba2687ddfe
- Parent:
- 0:b2b3955cd77b
- Child:
- 20:bfd23a6845bb
nov 13 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 | 2:fbba2687ddfe | 19 | void chngHyst(bool); |
FiveDollar | 2:fbba2687ddfe | 20 | bool getHyst(); |
FiveDollar | 2:fbba2687ddfe | 21 | void chngHystInterval(double); |
FiveDollar | 2:fbba2687ddfe | 22 | double getHystInterval(); |
FiveDollar | 2:fbba2687ddfe | 23 | void chngLRL(double); |
FiveDollar | 2:fbba2687ddfe | 24 | double getLRL(); |
FiveDollar | 2:fbba2687ddfe | 25 | void chngURL(double); |
FiveDollar | 2:fbba2687ddfe | 26 | double getURL(); |
FiveDollar | 2:fbba2687ddfe | 27 | void chngAVdelay(double); |
FiveDollar | 2:fbba2687ddfe | 28 | double getAVdelay(); |
FiveDollar | 2:fbba2687ddfe | 29 | void chngAVdelayOffset(double); |
FiveDollar | 2:fbba2687ddfe | 30 | double getAVdelayOffset(); |
FiveDollar | 2:fbba2687ddfe | 31 | void chngRSmooth(double); |
FiveDollar | 2:fbba2687ddfe | 32 | double getRSmooth(); |
FiveDollar | 0:b2b3955cd77b | 33 | virtual void chngMode(Mode mode); |
FiveDollar | 0:b2b3955cd77b | 34 | virtual Mode getMode(); |
FiveDollar | 0:b2b3955cd77b | 35 | virtual void chngState(State state); |
FiveDollar | 0:b2b3955cd77b | 36 | virtual State getState(); |
FiveDollar | 0:b2b3955cd77b | 37 | //virtual bool isMagnet(); |
FiveDollar | 0:b2b3955cd77b | 38 | //virtual void chngMagnet(bool state); |
FiveDollar | 0:b2b3955cd77b | 39 | |
FiveDollar | 0:b2b3955cd77b | 40 | protected: |
FiveDollar | 0:b2b3955cd77b | 41 | double p_hysteresis; |
FiveDollar | 0:b2b3955cd77b | 42 | double p_hysteresisInterval; |
FiveDollar | 0:b2b3955cd77b | 43 | double p_lowerRateLimit; |
FiveDollar | 0:b2b3955cd77b | 44 | double p_upperRateLimit; |
FiveDollar | 0:b2b3955cd77b | 45 | double p_AVdelay; |
FiveDollar | 0:b2b3955cd77b | 46 | double p_AVdelayOffset; |
FiveDollar | 0:b2b3955cd77b | 47 | double p_rateSmoothing; |
FiveDollar | 0:b2b3955cd77b | 48 | Mode p_pacingMode; |
FiveDollar | 0:b2b3955cd77b | 49 | State p_pacingState; |
FiveDollar | 0:b2b3955cd77b | 50 | |
FiveDollar | 0:b2b3955cd77b | 51 | }; |