3K04 Project / Mbed 2 deprecated PacemakerSerialStuff

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3K04 Project

pulsegenerator.h

Committer:
kieftea
Date:
2016-11-24
Revision:
0:00669618559e
Child:
1:8f545f45d899

File content as of revision 0:00669618559e:

#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