![]() |
MHEG5
22.11.0
|
#include <stdlib.h>#include "stb_os.h"#include "glue_memory.h"#include "glue_debug.h"#include "glue_timers.h"#include "fs_types.h"Classes | |
| struct | s_timer_info |
Macros | |
| #define | MHEG_TIMER_MAGIC 0xc10c0000 |
| #define | MHEG_TIMER_MAX_WAIT 60000 |
| #define | MHEG_TIMER_ACCURACY 5 |
| #define | SIZEOF_TIMER_EVENT_MSG 1 |
| #define | MAX_NUM_TIMER_EVENT_MSG 100 |
Typedefs | |
| typedef struct s_timer_info | S_TIMER_INFO |
Functions | |
| E_MhegErr | VT_TimerCreate (U32BIT millisecs, F_TimerCallback callback, void *callerRef, H_Timer *pTimerHandle) |
| Set a timer for a certain number of millseconds. When the timer expires a specified callback will be called, passing the caller reference value. More... | |
| E_MhegErr | VT_TimerDestroy (H_Timer timerHandle) |
| Destroy the specified timer. A callback will not be invoked for this timer after this function returns. More... | |
| E_MhegErr | VT_TimersInit (U32BIT task_priority) |
| Initialise the timer component. This function must be called before any other timer functions are invoked. More... | |
| E_MhegErr | VT_TimersExit (void) |
| Uninitialise the timer component - all resources are freed. Other timer functions must not be called after calling this function until mhegTimerInit is called again. More... | |
| E_MhegErr VT_TimerCreate | ( | U32BIT | millisecs, |
| F_TimerCallback | callback, | ||
| void * | callerRef, | ||
| H_Timer * | pTimerHandle | ||
| ) |
Set a timer for a certain number of millseconds. When the timer expires a specified callback will be called, passing the caller reference value.
| millisecs | Number of milliseconds before callback will be invoked. |
| callback | Pointer to callback function to invoke when timer is triggered. |
| callerRef | Caller reference which is passed to callback function when timer is triggered |
| pTimerHandle | Pointer to handle to this timer that must be used to destroy the timer. |
| E_MhegErr VT_TimerDestroy | ( | H_Timer | timerHandle | ) |
Destroy the specified timer. A callback will not be invoked for this timer after this function returns.
| timerHandle | Handle of the timer to be destroyed. |
| E_MhegErr VT_TimersExit | ( | void | ) |
Uninitialise the timer component - all resources are freed. Other timer functions must not be called after calling this function until mhegTimerInit is called again.
| E_MhegErr VT_TimersInit | ( | U32BIT | task_priority | ) |
Initialise the timer component. This function must be called before any other timer functions are invoked.
1.8.11