nico@207: nico@207:
nico@207:#include <timerscfg.h>
#include <applicfg.h>
#include "data.h"
nico@207: 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@207:
nico@207:
typedef struct struct_s_timer_entry s_timer_entry | nico@207:
typedef void(*) TimerCallback_t(CO_Data *d, UNS32 id) | nico@207:
nico@207:
TIMER_HANDLE DelAlarm | nico@207:( | nico@207:TIMER_HANDLE | nico@207:handle | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 87 of file timer.c. nico@207:
nico@207: References last_timer_raw, MSG_WAR, struct_s_timer_entry::state, and timers. nico@207:
TIMEVAL getElapsedTime | nico@207:( | nico@207:void | nico@207:nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 66 of file canOpenDriver.c. nico@207:
nico@207: References class_timers::get_elapsed_time(), IO_PORTS_16, and TC4H. nico@207:
TIMER_HANDLE SetAlarm | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:id, | nico@207:|
nico@207: | nico@207: | TimerCallback_t | nico@207:callback, | nico@207:|
nico@207: | nico@207: | TIMEVAL | nico@207:value, | nico@207:|
nico@207: | nico@207: | TIMEVAL | nico@207:period | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 38 of file timer.c. nico@207:
nico@207: References struct_s_timer_entry::d, last_timer_raw, MAX_NB_TIMER, TIMER_HANDLE, and timers. nico@207:
void setTimer | nico@207:( | nico@207:TIMEVAL | nico@207:value | nico@207:) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 83 of file timers_unix.c. nico@207:
nico@207: References maxval, class_timers::set_timer(), and timer. nico@207:
void TimeDispatch | nico@207:( | nico@207:void | nico@207:nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 104 of file timer.c. nico@207:
nico@207: References getElapsedTime(), last_timer_raw, min_val, TIMER_HANDLE, timers, TIMEVAL, TIMEVAL_MAX, and total_sleep_time. nico@207:
nico@207: