|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
|
3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/timer.c File Reference</title> |
|
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
|
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
|
6 </head><body> |
|
7 <!-- Generated by Doxygen 1.5.1 --> |
|
8 <div class="tabs"> |
|
9 <ul> |
|
10 <li><a href="main.html"><span>Main Page</span></a></li> |
|
11 <li id="current"><a href="files.html"><span>Files</span></a></li> |
|
12 </ul></div> |
|
13 <div class="tabs"> |
|
14 <ul> |
|
15 <li><a href="files.html"><span>File List</span></a></li> |
|
16 <li><a href="globals.html"><span>Globals</span></a></li> |
|
17 </ul></div> |
|
18 <h1>/home/epimerde/documents/tc11/CanFestival-3/src/timer.c File Reference</h1><code>#include <applicfg.h></code><br> |
|
19 <code>#include "timer.h"</code><br> |
|
20 |
|
21 <p> |
|
22 <a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
23 <tr><td></td></tr> |
|
24 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
|
25 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#8536312cebeeea3a23dc0027800122c9">min_val</a>(a, b) ((a<b)?a:b)</td></tr> |
|
26 |
|
27 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#11c2616d78f06ed9144ef662f757b128">SetAlarm</a> (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)</td></tr> |
|
29 |
|
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21">DelAlarm</a> (TIMER_HANDLE handle)</td></tr> |
|
31 |
|
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#fa75192a3238525618f8cb83004930cc">TimeDispatch</a> ()</td></tr> |
|
33 |
|
34 <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
|
35 <tr><td class="memItemLeft" nowrap align="right" valign="top">s_timer_entry </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a74e2cf2504bfd18b12f112c7aaad845">timers</a> [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}</td></tr> |
|
36 |
|
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#5e9651eed13d70bcce9bdf3489a72a3d">total_sleep_time</a> = TIMEVAL_MAX</td></tr> |
|
38 |
|
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1</td></tr> |
|
40 |
|
41 </table> |
|
42 <hr><h2>Define Documentation</h2> |
|
43 <a class="anchor" name="8536312cebeeea3a23dc0027800122c9"></a><!-- doxytag: member="timer.c::min_val" ref="8536312cebeeea3a23dc0027800122c9" args="(a, b)" --> |
|
44 <div class="memitem"> |
|
45 <div class="memproto"> |
|
46 <table class="memname"> |
|
47 <tr> |
|
48 <td class="memname">#define min_val </td> |
|
49 <td>(</td> |
|
50 <td class="paramtype">a, <tr> |
|
51 <td class="paramkey"></td> |
|
52 <td></td> |
|
53 <td class="paramtype">b </td> |
|
54 <td class="paramname"> </td> |
|
55 <td> ) </td> |
|
56 <td width="100%"> ((a<b)?a:b)</td> |
|
57 </tr> |
|
58 </table> |
|
59 </div> |
|
60 <div class="memdoc"> |
|
61 |
|
62 <p> |
|
63 |
|
64 <p> |
|
65 Definition at line <a class="el" href="timer_8c-source.html#l00035">35</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
66 </div> |
|
67 </div><p> |
|
68 <hr><h2>Function Documentation</h2> |
|
69 <a class="anchor" name="991b3cfaac2f201b14d5530f75985c21"></a><!-- doxytag: member="timer.c::DelAlarm" ref="991b3cfaac2f201b14d5530f75985c21" args="(TIMER_HANDLE handle)" --> |
|
70 <div class="memitem"> |
|
71 <div class="memproto"> |
|
72 <table class="memname"> |
|
73 <tr> |
|
74 <td class="memname">TIMER_HANDLE DelAlarm </td> |
|
75 <td>(</td> |
|
76 <td class="paramtype">TIMER_HANDLE </td> |
|
77 <td class="paramname"> <em>handle</em> </td> |
|
78 <td> ) </td> |
|
79 <td width="100%"></td> |
|
80 </tr> |
|
81 </table> |
|
82 </div> |
|
83 <div class="memdoc"> |
|
84 |
|
85 <p> |
|
86 |
|
87 <p> |
|
88 Definition at line <a class="el" href="timer_8c-source.html#l00087">87</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
89 <p> |
|
90 References <a class="el" href="timer_8c-source.html#l00033">last_timer_raw</a>, and <a class="el" href="timer_8c-source.html#l00030">timers</a>. |
|
91 </div> |
|
92 </div><p> |
|
93 <a class="anchor" name="11c2616d78f06ed9144ef662f757b128"></a><!-- doxytag: member="timer.c::SetAlarm" ref="11c2616d78f06ed9144ef662f757b128" args="(CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)" --> |
|
94 <div class="memitem"> |
|
95 <div class="memproto"> |
|
96 <table class="memname"> |
|
97 <tr> |
|
98 <td class="memname">TIMER_HANDLE SetAlarm </td> |
|
99 <td>(</td> |
|
100 <td class="paramtype">CO_Data * </td> |
|
101 <td class="paramname"> <em>d</em>, </td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td class="paramkey"></td> |
|
105 <td></td> |
|
106 <td class="paramtype">UNS32 </td> |
|
107 <td class="paramname"> <em>id</em>, </td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td class="paramkey"></td> |
|
111 <td></td> |
|
112 <td class="paramtype">TimerCallback_t </td> |
|
113 <td class="paramname"> <em>callback</em>, </td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td class="paramkey"></td> |
|
117 <td></td> |
|
118 <td class="paramtype">TIMEVAL </td> |
|
119 <td class="paramname"> <em>value</em>, </td> |
|
120 </tr> |
|
121 <tr> |
|
122 <td class="paramkey"></td> |
|
123 <td></td> |
|
124 <td class="paramtype">TIMEVAL </td> |
|
125 <td class="paramname"> <em>period</em></td><td> </td> |
|
126 </tr> |
|
127 <tr> |
|
128 <td></td> |
|
129 <td>)</td> |
|
130 <td></td><td></td><td width="100%"></td> |
|
131 </tr> |
|
132 </table> |
|
133 </div> |
|
134 <div class="memdoc"> |
|
135 |
|
136 <p> |
|
137 |
|
138 <p> |
|
139 Definition at line <a class="el" href="timer_8c-source.html#l00038">38</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
140 <p> |
|
141 References <a class="el" href="timer_8c-source.html#l00033">last_timer_raw</a>, and <a class="el" href="timer_8c-source.html#l00030">timers</a>. |
|
142 </div> |
|
143 </div><p> |
|
144 <a class="anchor" name="fa75192a3238525618f8cb83004930cc"></a><!-- doxytag: member="timer.c::TimeDispatch" ref="fa75192a3238525618f8cb83004930cc" args="()" --> |
|
145 <div class="memitem"> |
|
146 <div class="memproto"> |
|
147 <table class="memname"> |
|
148 <tr> |
|
149 <td class="memname">void TimeDispatch </td> |
|
150 <td>(</td> |
|
151 <td class="paramname"> </td> |
|
152 <td> ) </td> |
|
153 <td width="100%"></td> |
|
154 </tr> |
|
155 </table> |
|
156 </div> |
|
157 <div class="memdoc"> |
|
158 |
|
159 <p> |
|
160 |
|
161 <p> |
|
162 Definition at line <a class="el" href="timer_8c-source.html#l00104">104</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
163 <p> |
|
164 References <a class="el" href="timer_8c-source.html#l00033">last_timer_raw</a>, <a class="el" href="timer_8c-source.html#l00035">min_val</a>, <a class="el" href="timer_8c-source.html#l00030">timers</a>, and <a class="el" href="timer_8c-source.html#l00032">total_sleep_time</a>. |
|
165 </div> |
|
166 </div><p> |
|
167 <hr><h2>Variable Documentation</h2> |
|
168 <a class="anchor" name="1dab7b9a29bdee8b1931f8ea90685c6f"></a><!-- doxytag: member="timer.c::last_timer_raw" ref="1dab7b9a29bdee8b1931f8ea90685c6f" args="" --> |
|
169 <div class="memitem"> |
|
170 <div class="memproto"> |
|
171 <table class="memname"> |
|
172 <tr> |
|
173 <td class="memname">TIMER_HANDLE <a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1 </td> |
|
174 </tr> |
|
175 </table> |
|
176 </div> |
|
177 <div class="memdoc"> |
|
178 |
|
179 <p> |
|
180 |
|
181 <p> |
|
182 Definition at line <a class="el" href="timer_8c-source.html#l00033">33</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
183 </div> |
|
184 </div><p> |
|
185 <a class="anchor" name="a74e2cf2504bfd18b12f112c7aaad845"></a><!-- doxytag: member="timer.c::timers" ref="a74e2cf2504bfd18b12f112c7aaad845" args="[MAX_NB_TIMER]" --> |
|
186 <div class="memitem"> |
|
187 <div class="memproto"> |
|
188 <table class="memname"> |
|
189 <tr> |
|
190 <td class="memname">s_timer_entry <a class="el" href="timer_8c.html#a74e2cf2504bfd18b12f112c7aaad845">timers</a>[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},} </td> |
|
191 </tr> |
|
192 </table> |
|
193 </div> |
|
194 <div class="memdoc"> |
|
195 |
|
196 <p> |
|
197 |
|
198 <p> |
|
199 Definition at line <a class="el" href="timer_8c-source.html#l00030">30</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
200 </div> |
|
201 </div><p> |
|
202 <a class="anchor" name="5e9651eed13d70bcce9bdf3489a72a3d"></a><!-- doxytag: member="timer.c::total_sleep_time" ref="5e9651eed13d70bcce9bdf3489a72a3d" args="" --> |
|
203 <div class="memitem"> |
|
204 <div class="memproto"> |
|
205 <table class="memname"> |
|
206 <tr> |
|
207 <td class="memname">TIMEVAL <a class="el" href="timer_8c.html#5e9651eed13d70bcce9bdf3489a72a3d">total_sleep_time</a> = TIMEVAL_MAX </td> |
|
208 </tr> |
|
209 </table> |
|
210 </div> |
|
211 <div class="memdoc"> |
|
212 |
|
213 <p> |
|
214 |
|
215 <p> |
|
216 Definition at line <a class="el" href="timer_8c-source.html#l00032">32</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. |
|
217 </div> |
|
218 </div><p> |
|
219 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 17:09:27 2007 for CanFestival by |
|
220 <a href="http://www.doxygen.org/index.html"> |
|
221 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
222 </body> |
|
223 </html> |