Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Pacemaker by
Diff: pulsegenerator.h
- 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
    