nico@215: nico@215:
nico@215:#include <timerscfg.h>
#include <applicfg.h>
#include "data.h"
nico@215: Include dependency graph for timer.h:
nico@215: This graph shows which files directly or indirectly include this file:
nico@215: 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 TIMER_HANDLE INTEGER16 | 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:
typedef struct struct_s_timer_entry s_timer_entry | nico@215:
etisserant@240: etisserant@240:
typedef void(*) TimerCallback_t(CO_Data *d, UNS32 id) | nico@215:
nico@215:
TIMER_HANDLE DelAlarm | nico@215:( | nico@215:TIMER_HANDLE | nico@215:handle | nico@215:) | nico@215:nico@215: |
nico@215: ----- Use this to remove an alarm ----
nico@215:
handle |
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:
TIMEVAL getElapsedTime | nico@215:( | nico@215: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:
TIMER_HANDLE SetAlarm | nico@215:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | UNS32 | nico@215:id, | nico@215:|
nico@215: | etisserant@240: | TimerCallback_t | nico@215:callback, | nico@215:|
nico@215: | nico@215: | TIMEVAL | nico@215:value, | nico@215:|
nico@215: | nico@215: | TIMEVAL | nico@215:period | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: ------- Use this to declare a new alarm ------
nico@215:
d | ||
id | ||
callback | ||
value | ||
period |
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:
void setTimer | nico@215:( | nico@215:TIMEVAL | nico@215:value | 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:
void TimeDispatch | nico@215:( | nico@215: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: