a pacemaker

Dependencies:   mbed

clock.h

Committer:
kohlerba
Date:
2016-10-26
Revision:
3:334300ac49e5
Parent:
2:ab8469051a2d

File content as of revision 3:334300ac49e5:

#include "mbed.h"

//A ticker that calls the function toggler at a scheduled time length
int start_clock(void);

//A ticker that calls the function toggler at a scheduled time length
int start_toggler(double switch_time);

//A counter that updates to the current time
void increment_counter(void);

//Updates the varible toggle_switch
void toggler(void);

//Returns the clock time
double get_time(void);

int get_atrial_logic(void);

int get_ventricle_logic(void);

int set_atrial_logic(int logic);

int set_ventricle_logic(int logic);

double get_atrial_counter(void);

double get_ventricle_counter(void);