|
EasyGUI
|
Generic software timers. More...
Data Structures | |
| struct | gui_timer_t |
| Timer structure. More... | |
Macros | |
| #define | guii_timer_getparams(t) |
| Get parameters from timer. More... | |
Typedefs | |
| typedef gui_timer_t * | gui_timer_p |
| Pointer to gui_timer_t. | |
Functions | |
| gui_timer_t * | guii_timer_create (uint16_t period, void(*callback)(gui_timer_t *), void *const param) |
| Create new software timer. More... | |
| uint8_t | guii_timer_remove (gui_timer_t **const t) |
| Remove timer. More... | |
| uint8_t | guii_timer_start (gui_timer_t *const t) |
| Start timer. More... | |
| uint8_t | guii_timer_startperiodic (gui_timer_t *const t) |
| Start timer periodically. It will start again when callback is called. More... | |
| uint8_t | guii_timer_stop (gui_timer_t *const t) |
| Stop timer. More... | |
| uint8_t | guii_timer_reset (gui_timer_t *const t) |
| Reset timer to zero. More... | |
| uint32_t | guii_timer_getactivecount (void) |
| Get number of currently active timers. More... | |
| void | guii_timer_process (void) |
| Internal processing called by GUI library. More... | |
Generic software timers.
| #define guii_timer_getparams | ( | t | ) |
Get parameters from timer.
| [in] | t | Timer structure |
| Timer | parameters |
| gui_timer_t* guii_timer_create | ( | uint16_t | period, |
| void(*)(gui_timer_t *) | callback, | ||
| void *const | params | ||
| ) |
Create new software timer.
| [in] | period | Timer period in units of milliseconds |
| [in] | callback | Pointer to timer callback |
| [in] | params | Pointer to user parameters used in callback |
| uint32_t guii_timer_getactivecount | ( | void | ) |
Get number of currently active timers.
< Timer is active
| void guii_timer_process | ( | void | ) |
Internal processing called by GUI library.
< Call callback function on timer
< Call callback function on timer
< Timer will start from beginning after reach end
< Timer is active
< Call callback function on timer
< Call callback function on timer
| uint8_t guii_timer_remove | ( | gui_timer_t **const | t | ) |
Remove timer.
| [in] | t | Pointer to pointer to gui_timer_t structure. After timer remove, pointer value where it points to will be changed |
1 on success, 0 otherwise | uint8_t guii_timer_reset | ( | gui_timer_t *const | t | ) |
Reset timer to zero.
| [in] | t | Pointer to gui_timer_t structure |
1 on success, 0 otherwise | uint8_t guii_timer_start | ( | gui_timer_t *const | t | ) |
Start timer.
| [in] | t | Pointer to gui_timer_t structure |
1 on success, 0 otherwise < Timer will start from beginning after reach end
< Timer is active
| uint8_t guii_timer_startperiodic | ( | gui_timer_t *const | t | ) |
Start timer periodically. It will start again when callback is called.
| [in] | t | Pointer to gui_timer_t structure |
1 on success, 0 otherwise < Timer is active
< Timer will start from beginning after reach end
| uint8_t guii_timer_stop | ( | gui_timer_t *const | t | ) |
Stop timer.
| [in] | t | Pointer to gui_timer_t structure |
1 on success, 0 otherwise < Timer is active