3K04 Project / Mbed 2 deprecated PacemakerSerialStuff

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3K04 Project

pulsegenerator.h

Committer:
kieftea
Date:
2016-11-25
Revision:
1:8f545f45d899
Parent:
0:00669618559e
Child:
6:d71e30291a62

File content as of revision 1:8f545f45d899:

#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);

/******************************************
* Set the current pace period
* Inputs: new_pace_period_ms - the pace period to switch to
* Returns: The previous pace period
*/
uint32_t set_pace_period_ms(uint32_t new_pace_period_ms);

/******************************************
* Initiates pacing. Returns immediately
*/
void begin_pace ();

#endif