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.
Diff: genData.h
- Revision:
- 0:b2b3955cd77b
- Child:
- 2:fbba2687ddfe
diff -r 000000000000 -r b2b3955cd77b genData.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genData.h Sun Oct 30 16:04:52 2016 +0000 @@ -0,0 +1,37 @@ +#pragma once +#include "mbed.h" + +class genData{ +public: + enum Mode + { + VVI, + VOOR + }; + enum State + { + PERMANENT, + TEMPORARY + }; + + genData(); + ~genData(); + virtual void chngMode(Mode mode); + virtual Mode getMode(); + virtual void chngState(State state); + virtual State getState(); + //virtual bool isMagnet(); + //virtual void chngMagnet(bool state); + +protected: + double p_hysteresis; + double p_hysteresisInterval; + double p_lowerRateLimit; + double p_upperRateLimit; + double p_AVdelay; + double p_AVdelayOffset; + double p_rateSmoothing; + Mode p_pacingMode; + State p_pacingState; + +}; \ No newline at end of file