Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

timer.h File Reference


Detailed Description

Timer management definitions.


Defines

#define TM_ONESHOT   0x01

Typedefs

typedef _NUTTIMERINFO NUTTIMERINFO
 Timer type.

Functions

void NutTimerInit (void)
 Initialize system timer.
NUTTIMERINFONutTimerCreate (u_long ticks, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Create a new system timer.
void NutTimerInsert (NUTTIMERINFO *tn)
 Insert a new timer in the global timer list.
void NutTimerProcessElapsed (void)
 Process elapsed timers.
void NutSleep (u_long ms)
 Temporarily suspends the current thread.
u_long NutGetTickCount (void)
 Return the number of system timer ticks.
u_long NutGetSeconds (void)
 Return the seconds counter value.
u_long NutGetMillis (void)
 Return the milliseconds counter value.
HANDLE NutTimerStart (u_long ms, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Start a system timer.
HANDLE NutTimerStartTicks (u_long ticks, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Start a system timer.
void NutTimerStop (HANDLE handle)
 Stop a specified timer.

Variables

NUTTIMERINFOnutTimerList
 Double linked list of all system timers.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/