Prusa MINI Firmware overview
gui_timer.h
Go to the documentation of this file.
1 //gui_timer.h
2 #ifndef _GUI_TIMER_H
3 #define _GUI_TIMER_H
4 
5 #include <inttypes.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif //__cplusplus
10 
11 extern int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id);
12 
13 extern int8_t gui_timer_create_oneshot(uint32_t ms, int16_t win_id);
14 
15 extern int8_t gui_timer_create_timeout(uint32_t ms, int16_t win_id);
16 
17 extern void gui_timer_delete(int8_t id);
18 
19 extern void gui_timers_delete_by_window_id(int16_t win_id);
20 
21 extern uint32_t gui_timers_cycle(void);
22 
23 extern void gui_timer_reset(int8_t id);
24 
25 extern int8_t gui_timer_expired(int8_t id);
26 
27 extern int8_t gui_get_menu_timeout_id(void);
28 
29 #ifdef __cplusplus
30 }
31 #endif //__cplusplus
32 
33 #endif //_GUI_TIMER_H
gui_timers_delete_by_window_id
void gui_timers_delete_by_window_id(int16_t win_id)
Definition: gui_timer.c:91
gui_timer_create_timeout
int8_t gui_timer_create_timeout(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:74
gui_timer_create_periodical
int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:70
gui_timer_create_oneshot
int8_t gui_timer_create_oneshot(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:66
gui_get_menu_timeout_id
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
gui_timer_reset
void gui_timer_reset(int8_t id)
Definition: gui_timer.c:133
gui_timers_cycle
uint32_t gui_timers_cycle(void)
Definition: gui_timer.c:98
gui_timer_expired
int8_t gui_timer_expired(int8_t id)
Definition: gui_timer.c:139
gui_timer_delete
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79