Bradley Kohler / Mbed 2 deprecated FRDM_Pacemaker

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers clock.h Source File

clock.h

00001 #include "mbed.h"
00002 
00003 //A ticker that calls the function toggler at a scheduled time length
00004 int start_clock(void);
00005 
00006 //A ticker that calls the function toggler at a scheduled time length
00007 int start_toggler(double switch_time);
00008 
00009 //A counter that updates to the current time
00010 void increment_counter(void);
00011 
00012 //Updates the varible toggle_switch
00013 void toggler(void);
00014 
00015 //Returns the clock time
00016 double get_time(void);
00017 
00018 int get_atrial_logic(void);
00019 
00020 int get_ventricle_logic(void);
00021 
00022 int set_atrial_logic(int logic);
00023 
00024 int set_ventricle_logic(int logic);
00025 
00026 double get_atrial_counter(void);
00027 
00028 double get_ventricle_counter(void);