timer.h File Reference

Go to the source code of this file.

Data Structures

struct  _NUTTIMERINFO
 Timer information structure. More...

Defines

#define TM_ONESHOT   0x01

Typedefs

typedef struct _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.
void NutDelay (u_char ms)
 Loop for a specified number of milliseconds.
void NutMicroDelay (u_long us)
 Loop for a specified number of microseconds.
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.


Define Documentation

#define TM_ONESHOT   0x01

Examples:
timers/timers.c.

Definition at line 142 of file timer.h.

Referenced by main(), NutEventWait(), NutMsgQGetMessage(), NutMsgQStartTimer(), NutSleep(), and NutTimerCreate().


Typedef Documentation

typedef struct _NUTTIMERINFO NUTTIMERINFO

Timer type.

Definition at line 112 of file timer.h.


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