doc/doxygen/latex/timer_8c.tex
author nico
Thu, 07 Jun 2007 09:03:41 +0200
changeset 213 1df3055de547
parent 207 b6572d0336c3
permissions -rw-r--r--
Manual and Documentation finish
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     1
\hypertarget{timer_8c}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     2
\section{/home/epimerde/documents/tc11/Can\-Festival-3/src/timer.c File Reference}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     3
\label{timer_8c}\index{/home/epimerde/documents/tc11/CanFestival-3/src/timer.c@{/home/epimerde/documents/tc11/CanFestival-3/src/timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     4
}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     5
{\tt \#include $<$applicfg.h$>$}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     6
{\tt \#include \char`\"{}timer.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     7
\subsection*{Defines}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     8
\begin{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     9
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    10
\#define \hyperlink{timer_8c_8536312cebeeea3a23dc0027800122c9}{min\_\-val}(a, b)~((a$<$b)?a:b)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    11
\end{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    12
\subsection*{Functions}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    13
\begin{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    14
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    15
TIMER\_\-HANDLE \hyperlink{timer_8c_11c2616d78f06ed9144ef662f757b128}{Set\-Alarm} (CO\_\-Data $\ast$d, UNS32 id, Timer\-Callback\_\-t callback, TIMEVAL value, TIMEVAL period)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    16
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    17
TIMER\_\-HANDLE \hyperlink{timer_8c_991b3cfaac2f201b14d5530f75985c21}{Del\-Alarm} (TIMER\_\-HANDLE handle)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    18
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    19
void \hyperlink{timer_8c_fa75192a3238525618f8cb83004930cc}{Time\-Dispatch} ()
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    20
\end{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    21
\subsection*{Variables}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    22
\begin{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    23
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    24
s\_\-timer\_\-entry \hyperlink{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{timers} \mbox{[}MAX\_\-NB\_\-TIMER\mbox{]} = \{\{TIMER\_\-FREE, NULL, NULL, 0, 0, 0\},\}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    25
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    26
TIMEVAL \hyperlink{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{total\_\-sleep\_\-time} = TIMEVAL\_\-MAX
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    27
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    28
TIMER\_\-HANDLE \hyperlink{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{last\_\-timer\_\-raw} = -1
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    29
\end{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    30
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    31
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    32
\subsection{Define Documentation}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    33
\hypertarget{timer_8c_8536312cebeeea3a23dc0027800122c9}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    34
\index{timer.c@{timer.c}!min_val@{min\_\-val}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    35
\index{min_val@{min\_\-val}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    36
\subsubsection[min\_\-val]{\setlength{\rightskip}{0pt plus 5cm}\#define min\_\-val(a, b)~((a$<$b)?a:b)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    37
\label{timer_8c_8536312cebeeea3a23dc0027800122c9}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    38
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    39
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    40
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    41
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    42
Definition at line 35 of file timer.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    43
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    44
\subsection{Function Documentation}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    45
\hypertarget{timer_8c_991b3cfaac2f201b14d5530f75985c21}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    46
\index{timer.c@{timer.c}!DelAlarm@{DelAlarm}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    47
\index{DelAlarm@{DelAlarm}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    48
\subsubsection[DelAlarm]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE Del\-Alarm (TIMER\_\-HANDLE {\em handle})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    49
\label{timer_8c_991b3cfaac2f201b14d5530f75985c21}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    50
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    51
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    52
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    53
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    54
Definition at line 87 of file timer.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    55
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    56
References last\_\-timer\_\-raw, and timers.\hypertarget{timer_8c_11c2616d78f06ed9144ef662f757b128}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    57
\index{timer.c@{timer.c}!SetAlarm@{SetAlarm}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    58
\index{SetAlarm@{SetAlarm}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    59
\subsubsection[SetAlarm]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE Set\-Alarm (CO\_\-Data $\ast$ {\em d}, UNS32 {\em id}, Timer\-Callback\_\-t {\em callback}, TIMEVAL {\em value}, TIMEVAL {\em period})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    60
\label{timer_8c_11c2616d78f06ed9144ef662f757b128}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    61
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    62
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    63
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    64
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    65
Definition at line 38 of file timer.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    66
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    67
References last\_\-timer\_\-raw, and timers.\hypertarget{timer_8c_fa75192a3238525618f8cb83004930cc}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    68
\index{timer.c@{timer.c}!TimeDispatch@{TimeDispatch}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    69
\index{TimeDispatch@{TimeDispatch}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    70
\subsubsection[TimeDispatch]{\setlength{\rightskip}{0pt plus 5cm}void Time\-Dispatch ()}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    71
\label{timer_8c_fa75192a3238525618f8cb83004930cc}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    72
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    73
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    74
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    75
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    76
Definition at line 104 of file timer.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    77
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    78
References last\_\-timer\_\-raw, min\_\-val, timers, and total\_\-sleep\_\-time.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    79
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    80
\subsection{Variable Documentation}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    81
\hypertarget{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    82
\index{timer.c@{timer.c}!last_timer_raw@{last\_\-timer\_\-raw}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    83
\index{last_timer_raw@{last\_\-timer\_\-raw}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    84
\subsubsection[last\_\-timer\_\-raw]{\setlength{\rightskip}{0pt plus 5cm}TIMER\_\-HANDLE \hyperlink{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}{last\_\-timer\_\-raw} = -1}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    85
\label{timer_8c_1dab7b9a29bdee8b1931f8ea90685c6f}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    86
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    87
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    88
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    89
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    90
Definition at line 33 of file timer.c.\hypertarget{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    91
\index{timer.c@{timer.c}!timers@{timers}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    92
\index{timers@{timers}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    93
\subsubsection[timers]{\setlength{\rightskip}{0pt plus 5cm}s\_\-timer\_\-entry \hyperlink{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}{timers}\mbox{[}MAX\_\-NB\_\-TIMER\mbox{]} = \{\{TIMER\_\-FREE, NULL, NULL, 0, 0, 0\},\}}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    94
\label{timer_8c_a74e2cf2504bfd18b12f112c7aaad845}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    95
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    96
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    97
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    98
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    99
Definition at line 30 of file timer.c.\hypertarget{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   100
\index{timer.c@{timer.c}!total_sleep_time@{total\_\-sleep\_\-time}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   101
\index{total_sleep_time@{total\_\-sleep\_\-time}!timer.c@{timer.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   102
\subsubsection[total\_\-sleep\_\-time]{\setlength{\rightskip}{0pt plus 5cm}TIMEVAL \hyperlink{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}{total\_\-sleep\_\-time} = TIMEVAL\_\-MAX}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   103
\label{timer_8c_5e9651eed13d70bcce9bdf3489a72a3d}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   104
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   105
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   106
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   107
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   108
Definition at line 32 of file timer.c.