Typedefs | |
typedef void(* | TimerFunction )(void *data) |
typedef _Timer * | Timer |
Functions | |
ErrorCode | timerSetFreq (uint32 freq) |
ErrorCode | timerGetFreq (uint32 *freq) |
ErrorCode | timerGetTicks (uint32 *ticks) |
ErrorCode | timerDelay (uint32 usec) |
ErrorCode | timerCreate (Timer *t, uint32 usec, TimerFunction func, void *data) |
ErrorCode | timerStart (Timer t) |
ErrorCode | timerStop (Timer t) |
ErrorCode | timerSetTimeout (Timer t, uint32 usec) |
ErrorCode | timerSetRepeat (Timer t, Boolean repeat) |
ErrorCode | timerDestroy (Timer *t) |
|
|
|
|
|
repeat True for repetitive timer Create a new timer object
|
|
Delay for a period of x * (1/1000th of a second) This is a fairly accurate blocking delay, but with a tight inner loop. Where accuracy is not a concern, taskDelay would be a better option as it will perform a voluntary task switch instead of polling, as this does.
|
|
Destroy a timer
|
|
Set the timer base frequency
|
|
Get the number of ticks since ndk started
|
|
Set the timer base frequency
|
|
Set whether this is a repetitive timer, or a one time timer
|
|
Set's the timer's timeout (or time between each callback)
|
|
Start a timer object
|
|
Stop a timer object
|