Bradley Kohler
/
FRDM_Pacemaker
a pacemaker
clock.h@3:334300ac49e5, 2016-10-26 (annotated)
- Committer:
- kohlerba
- Date:
- Wed Oct 26 18:20:43 2016 +0000
- Revision:
- 3:334300ac49e5
- Parent:
- 2:ab8469051a2d
Changed the functions and modules.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kohlerba | 0:9e97accb2a4c | 1 | #include "mbed.h" |
kohlerba | 0:9e97accb2a4c | 2 | |
kohlerba | 3:334300ac49e5 | 3 | //A ticker that calls the function toggler at a scheduled time length |
kohlerba | 1:446bd28a1f19 | 4 | int start_clock(void); |
kohlerba | 1:446bd28a1f19 | 5 | |
kohlerba | 3:334300ac49e5 | 6 | //A ticker that calls the function toggler at a scheduled time length |
kohlerba | 3:334300ac49e5 | 7 | int start_toggler(double switch_time); |
kohlerba | 3:334300ac49e5 | 8 | |
kohlerba | 1:446bd28a1f19 | 9 | //A counter that updates to the current time |
kohlerba | 3:334300ac49e5 | 10 | void increment_counter(void); |
kohlerba | 3:334300ac49e5 | 11 | |
kohlerba | 3:334300ac49e5 | 12 | //Updates the varible toggle_switch |
kohlerba | 3:334300ac49e5 | 13 | void toggler(void); |
kohlerba | 1:446bd28a1f19 | 14 | |
kohlerba | 1:446bd28a1f19 | 15 | //Returns the clock time |
kohlerba | 0:9e97accb2a4c | 16 | double get_time(void); |
kohlerba | 3:334300ac49e5 | 17 | |
kohlerba | 3:334300ac49e5 | 18 | int get_atrial_logic(void); |
kohlerba | 3:334300ac49e5 | 19 | |
kohlerba | 3:334300ac49e5 | 20 | int get_ventricle_logic(void); |
kohlerba | 3:334300ac49e5 | 21 | |
kohlerba | 3:334300ac49e5 | 22 | int set_atrial_logic(int logic); |
kohlerba | 3:334300ac49e5 | 23 | |
kohlerba | 3:334300ac49e5 | 24 | int set_ventricle_logic(int logic); |
kohlerba | 3:334300ac49e5 | 25 | |
kohlerba | 3:334300ac49e5 | 26 | double get_atrial_counter(void); |
kohlerba | 3:334300ac49e5 | 27 | |
kohlerba | 3:334300ac49e5 | 28 | double get_ventricle_counter(void); |