![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
#include <stdlib.h>
#include "stb_os.h"
#include "glue_memory.h"
#include "glue_debug.h"
#include "glue_timers.h"
Go to the source code of this file.
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... | |
Definition in file glue_timers.c.
#define MAX_NUM_TIMER_EVENT_MSG 100 |
Definition at line 54 of file glue_timers.c.
#define MHEG_TIMER_ACCURACY 5 |
Definition at line 51 of file glue_timers.c.
#define MHEG_TIMER_MAGIC 0xc10c0000 |
Definition at line 38 of file glue_timers.c.
#define MHEG_TIMER_MAX_WAIT 60000 |
Definition at line 43 of file glue_timers.c.
#define SIZEOF_TIMER_EVENT_MSG 1 |
Definition at line 53 of file glue_timers.c.
typedef struct s_timer_info S_TIMER_INFO |
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. |
Definition at line 223 of file glue_timers.c.
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. |
Definition at line 324 of file glue_timers.c.
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.
Definition at line 474 of file glue_timers.c.
Initialise the timer component. This function must be called before any other timer functions are invoked.
Definition at line 407 of file glue_timers.c.