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.
v_pacing.cpp
- Committer:
- kohlerba
- Date:
- 2016-10-26
- Revision:
- 3:334300ac49e5
- Parent:
- 1:446bd28a1f19
File content as of revision 3:334300ac49e5:
#include "v_pacing.h"
double v_pace = 0;
double get_v_pace(void){
return v_pace;
}
int set_v_pace(double amp){
v_pace = amp;
return 1;
}
int v_pace_sq(double amp , double pulse_width){
if (get_ventricle_counter() > pulse_width){
set_ventricle_logic(0);
}
else{
v_pace = amp;
}
return 0;
}