Nut/OS  4.10.3
API Reference
_NUTTIMERINFO Struct Reference

Timer information structure. More...

#include <sys/timer.h>

Collaboration diagram for _NUTTIMERINFO:

Data Fields

NUTTIMERINFOtn_next
 Link to next timer.
NUTTIMERINFOtn_prev
 Link to previous timer.
uint32_t tn_ticks
 Number of system ticks. Set to zero on one-shot timers.
uint32_t tn_ticks_left
 Decremented by one on each system tick intervall.
void(* tn_callback )(HANDLE, void *)
 Callback function.
volatile void * tn_arg
 Argument pointer passed to callback function.

Detailed Description

Timer information structure.

Examples:

httpd/httpserv.c.

Definition at line 127 of file timer.h.


Field Documentation

Link to next timer.

Examples:
httpd/httpserv.c.

Definition at line 130 of file timer.h.

Referenced by NutTimerInsert(), NutTimerProcessElapsed(), and NutTimerStop().

Link to previous timer.

Definition at line 133 of file timer.h.

Referenced by NutTimerInsert(), NutTimerProcessElapsed(), and NutTimerStop().

Number of system ticks. Set to zero on one-shot timers.

Examples:
httpd/httpserv.c.

Definition at line 137 of file timer.h.

Referenced by NutDumpTimerList(), NutTimerCreate(), NutTimerProcessElapsed(), and NutTimerStop().

Decremented by one on each system tick intervall.

Examples:
httpd/httpserv.c.

Definition at line 140 of file timer.h.

Referenced by NutTimerCreate(), NutTimerInsert(), NutTimerProcessElapsed(), and NutTimerStop().

Callback function.

Definition at line 143 of file timer.h.

Referenced by NutTimerCreate(), NutTimerProcessElapsed(), and NutTimerStop().

volatile void* _NUTTIMERINFO::tn_arg

Argument pointer passed to callback function.

Definition at line 146 of file timer.h.

Referenced by NutTimerCreate(), and NutTimerProcessElapsed().


The documentation for this struct was generated from the following file: