![](/media/cache/profiles/DSC_0020.jpg.50x50_q85.jpg)
a pacemaker
Diff: clock.h
- Revision:
- 3:334300ac49e5
- Parent:
- 2:ab8469051a2d
--- a/clock.h Wed Oct 26 14:04:14 2016 +0000 +++ b/clock.h Wed Oct 26 18:20:43 2016 +0000 @@ -1,10 +1,28 @@ #include "mbed.h" -//Starts the clock +//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 count_time(void); +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); \ No newline at end of file