mos_alarm_ Struct Reference

A structure to hold an alarm. More...

#include <clock.h>


Data Fields

alarm_func func
 Callback function to call on alarm trigger.
void * data
 Data parameter to pass to callback function.
uint32_t msecs
 Number of millseconds until alarm triggers.
uint32_t reset_to
mos_alarm_next
 Next alarm.


Detailed Description

An alarm is attached to a hardware timer, along with a callback function which is called when the alarm triggers. Alarms are stored in a linked list, with the relative number of ticks between each node in the list.

NOTE: The callback function will be executed in an interrrupt context.

Definition at line 84 of file clock.h.


The documentation for this struct was generated from the following file:
Generated on Mon Nov 23 06:26:00 2009 for MANTIS by  doxygen 1.4.6