3K04 Project / Mbed 2 deprecated PacemakerSerialStuff

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3K04 Project

Revision:
0:00669618559e
Child:
1:8f545f45d899
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pulsegenerator.h	Thu Nov 24 16:37:00 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef pulsegenerator__H
+#define pulsegenerator__H
+
+
+/*=== Pacing Modes ===*/
+enum modes {VOO=0, AOO, VVI, VOOR, DDD};
+
+/******************************************
+* Setup the pulse generator on device startup
+* Drives pulse output pins to safe values
+*/
+void pulsegenerator_initialize ();
+
+/******************************************
+* Set the current pacing mode
+* The current pacing mode will change at an appropriate
+* time in the pacing cycle. The function returns immediately
+* with the previous value of current pacing mode
+* Inputs: newMode - the mode to switch to
+* Returns: The previous pacing mode
+*/
+modes set_pacing_mode (modes newMode);
+
+/******************************************
+* Initiates pacing. Returns immediately
+*/
+void begin_pace ();
+
+#endif
\ No newline at end of file