diff -r 6efc85c5493e -r 1c1e3599d66a doc/doxygen/html/timer_8c.html --- a/doc/doxygen/html/timer_8c.html Mon Feb 11 11:00:12 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,291 +0,0 @@ - - -CanFestival: src/timer.c File Reference - - - - -
-
-
-
- -

timer.c File Reference

#include <applicfg.h>
-#include "timer.h"
- -

-Include dependency graph for timer.c:

- - - - - - - - - - - - - - - - - - -

-Go to the source code of this file. - - - - - - - - - - - - - - - - - - -

Defines

#define min_val(a, b)   ((a<b)?a:b)

Functions

TIMER_HANDLE SetAlarm (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)
TIMER_HANDLE DelAlarm (TIMER_HANDLE handle)
void TimeDispatch ()

Variables

s_timer_entry timers [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}
TIMEVAL total_sleep_time = TIMEVAL_MAX
TIMER_HANDLE last_timer_raw = -1
-


Detailed Description

-
Author:
Edouard TISSERANT and Francis DUPIN
-
Date:
Tue Jun 5 09:32:32 2007
- -

-Definition in file timer.c.


Define Documentation

- -
-
- - - - - - - - - - - - -
#define min_val (a,
 )    ((a<b)?a:b)
-
-
- -

- -

-Definition at line 44 of file timer.c. -

-Referenced by TimeDispatch(). -

-

-


Function Documentation

- -
-
- - - - - - - - - -
TIMER_HANDLE DelAlarm (TIMER_HANDLE  handle  ) 
-
-
- -

------ Use this to remove an alarm ----

-

Parameters:
- - -
handle 
-
-
Returns:
- -

-Definition at line 112 of file timer.c. -

-References last_timer_raw, MSG_WAR, struct_s_timer_entry::state, and timers. -

-Referenced by _sendPDOevent(), heartbeatStop(), PDOStop(), proceedNODE_GUARD(), proceedPDO(), ProducerHearbeatAlarm(), stopSYNC(), and TPDO_Communication_Parameter_Callback(). -

-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TIMER_HANDLE SetAlarm (CO_Data d,
UNS32  id,
TimerCallback_t  callback,
TIMEVAL  value,
TIMEVAL  period 
)
-
-
- -

-------- Use this to declare a new alarm ------

-

Parameters:
- - - - - - -
d 
id 
callback 
value 
period 
-
-
Returns:
- -

-Definition at line 57 of file timer.c. -

-References struct_s_timer_entry::d, last_timer_raw, MAX_NB_TIMER, TIMER_HANDLE, and timers. -

-Referenced by _sendPDOevent(), heartbeatInit(), proceedNODE_GUARD(), startSYNC(), and StartTimerLoop(). -

-

- -

-
- - - - - - - - - -
void TimeDispatch (void   ) 
-
-
- -

------- TimeDispatch is called on each timer expiration ---- -

-Definition at line 131 of file timer.c. -

-References getElapsedTime(), last_timer_raw, min_val, TIMER_HANDLE, timers, TIMEVAL, TIMEVAL_MAX, and total_sleep_time. -

-Referenced by class_timers::timer_loop_thread_proc(), timer_notify(), and timerloop_task_proc(). -

-Here is the call graph for this function:

- - - - -
-

-


Variable Documentation

- -
-
- - - - -
TIMER_HANDLE last_timer_raw = -1
-
-
- -

- -

-Definition at line 42 of file timer.c. -

-Referenced by DelAlarm(), SetAlarm(), and TimeDispatch(). -

-

- -

-
- - - - -
s_timer_entry timers[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}
-
-
- -

- -

-Definition at line 39 of file timer.c. -

-Referenced by DelAlarm(), SetAlarm(), and TimeDispatch(). -

-

- -

-
- - - - -
TIMEVAL total_sleep_time = TIMEVAL_MAX
-
-
- -

- -

-Definition at line 41 of file timer.c. -

-Referenced by TimeDispatch(). -

-

-


Generated on Mon Jul 2 19:10:42 2007 for CanFestival by  - -doxygen 1.5.1
- -