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