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@20:bfd23a6845bb, 2016-11-24 (annotated)
- Committer:
- FiveDollar
- Date:
- Thu Nov 24 03:26:14 2016 +0000
- Revision:
- 20:bfd23a6845bb
- Parent:
- 2:fbba2687ddfe
All values can now be updated
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 | 20:bfd23a6845bb | 21 | int chngHystRL(double); |
FiveDollar | 20:bfd23a6845bb | 22 | double getHystRL(); |
FiveDollar | 20:bfd23a6845bb | 23 | int chngLRL(double); |
FiveDollar | 2:fbba2687ddfe | 24 | double getLRL(); |
FiveDollar | 20:bfd23a6845bb | 25 | int chngURL(double); |
FiveDollar | 2:fbba2687ddfe | 26 | double getURL(); |
FiveDollar | 20:bfd23a6845bb | 27 | int chngAVdelay(double); |
FiveDollar | 2:fbba2687ddfe | 28 | double getAVdelay(); |
FiveDollar | 20:bfd23a6845bb | 29 | int chngAVdelayOffset(double); |
FiveDollar | 2:fbba2687ddfe | 30 | double getAVdelayOffset(); |
FiveDollar | 20:bfd23a6845bb | 31 | int 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 | 20:bfd23a6845bb | 42 | double p_hysteresisRateLimit; |
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 | }; |