diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/timer_8h.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/timer_8h.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,339 @@ + + +CanFestival: include/timer.h File Reference + + + + +
+
+
+
+ +

timer.h File Reference

#include <timerscfg.h>
+#include <applicfg.h>
+#include "data.h"
+ +

+Include dependency graph for timer.h:

+ + + + + + + + + + + + + + + + + +

+This graph shows which files directly or indirectly include this file:

+ + + + + + + + + + + + + + + +

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

Data Structures

struct  struct_s_timer_entry

Defines

#define TIMER_HANDLE   INTEGER16

Typedefs

typedef void(*) TimerCallback_t (CO_Data *d, UNS32 id)
typedef struct_s_timer_entry s_timer_entry

Functions

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


Define Documentation

+ +
+
+ + + + +
#define TIMER_HANDLE   INTEGER16
+
+
+ +

+ +

+Definition at line 29 of file timer.h. +

+Referenced by SetAlarm(), and TimeDispatch(). +

+

+


Typedef Documentation

+ +
+
+ + + + +
typedef struct struct_s_timer_entry s_timer_entry
+
+
+ +

+ +

+Definition at line 52 of file timer.h. +

+

+ +

+
+ + + + +
typedef void(*) TimerCallback_t(CO_Data *d, UNS32 id)
+
+
+ +

+ +

+Definition at line 41 of file timer.h. +

+

+


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 heartbeatStop(), proceedNODE_GUARD(), ProducerHearbeatAlarm(), and stopSYNC(). +

+

+ +

+
+ + + + + + + + + +
TIMEVAL getElapsedTime (void   ) 
+
+
+ +

+ +

+Definition at line 66 of file canOpenDriver.c. +

+References class_timers::get_elapsed_time(), IO_PORTS_16, and TC4H. +

+Here is the call graph for this function:

+ + + + + +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 heartbeatInit(), proceedNODE_GUARD(), startSYNC(), and StartTimerLoop(). +

+

+ +

+
+ + + + + + + + + +
void setTimer (TIMEVAL  value  ) 
+
+
+ +

+ +

+Definition at line 83 of file timers_unix.c. +

+References maxval, class_timers::set_timer(), and timer. +

+Here is the call graph for this function:

+ + + + + +
+

+ +

+
+ + + + + + + + + +
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:

+ + + + +
+

+


Generated on Fri Jun 8 08:52:07 2007 for CanFestival by  + +doxygen 1.5.1
+ +