nico@215: nico@215: nico@215: CanFestival: include/timer.h File Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

timer.h File Reference

#include <timerscfg.h>
nico@215: #include <applicfg.h>
nico@215: #include "data.h"
nico@215: nico@215:

nico@215: Include dependency graph for timer.h:

nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:

nico@215: This graph shows which files directly or indirectly include this file:

nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:

nico@215: Go to the source code of this file. nico@215: nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:

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)
nico@215:


Define Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215:
#define TIMER_HANDLE   INTEGER16
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 29 of file timer.h. nico@215:

nico@215: Referenced by SetAlarm(), and TimeDispatch(). nico@215:

nico@215:

nico@215:


Typedef Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215:
typedef struct struct_s_timer_entry s_timer_entry
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 52 of file timer.h. nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
typedef void(*) TimerCallback_t(CO_Data *d, UNS32 id)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 41 of file timer.h. nico@215:

nico@215:

nico@215:


Function Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
TIMER_HANDLE DelAlarm (TIMER_HANDLE  handle  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: ----- Use this to remove an alarm ----

nico@215:

Parameters:
nico@215: nico@215: nico@215:
handle 
nico@215:
nico@215:
Returns:
nico@215: nico@215:

nico@215: Definition at line 112 of file timer.c. nico@215:

nico@215: References last_timer_raw, MSG_WAR, struct_s_timer_entry::state, and timers. nico@215:

etisserant@240: Referenced by _sendPDOevent(), heartbeatStop(), PDOStop(), proceedNODE_GUARD(), proceedPDO(), ProducerHearbeatAlarm(), stopSYNC(), and TPDO_Communication_Parameter_Callback(). etisserant@240:

etisserant@240:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
TIMEVAL getElapsedTime (void   ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 66 of file canOpenDriver.c. nico@215:

nico@215: References class_timers::get_elapsed_time(), IO_PORTS_16, and TC4H. nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
TIMER_HANDLE SetAlarm (CO_Data d,
UNS32  id,
TimerCallback_t  callback,
TIMEVAL  value,
TIMEVAL  period 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: ------- Use this to declare a new alarm ------

nico@215:

Parameters:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
d 
id 
callback 
value 
period 
nico@215:
nico@215:
Returns:
nico@215: nico@215:

nico@215: Definition at line 57 of file timer.c. nico@215:

nico@215: References struct_s_timer_entry::d, last_timer_raw, MAX_NB_TIMER, TIMER_HANDLE, and timers. nico@215:

etisserant@240: Referenced by _sendPDOevent(), heartbeatInit(), proceedNODE_GUARD(), startSYNC(), and StartTimerLoop(). etisserant@240:

etisserant@240:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void setTimer (TIMEVAL  value  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 83 of file timers_unix.c. nico@215:

nico@215: References maxval, class_timers::set_timer(), and timer. nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void TimeDispatch (void   ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: ------ TimeDispatch is called on each timer expiration ---- nico@215:

nico@215: Definition at line 131 of file timer.c. nico@215:

nico@215: References getElapsedTime(), last_timer_raw, min_val, TIMER_HANDLE, timers, TIMEVAL, TIMEVAL_MAX, and total_sleep_time. nico@215:

nico@215: Referenced by class_timers::timer_loop_thread_proc(), timer_notify(), and timerloop_task_proc(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240:


Generated on Mon Jul 2 19:10:35 2007 for CanFestival by  nico@215: nico@215: doxygen 1.5.1
nico@215: nico@215: