|
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: drivers/win32/timers_win32.cpp 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><a href="annotated.html"><span>Data Structures</span></a></li> |
|
12 <li id="current"><a href="files.html"><span>Files</span></a></li> |
|
13 <li><a href="dirs.html"><span>Directories</span></a></li> |
|
14 </ul></div> |
|
15 <div class="tabs"> |
|
16 <ul> |
|
17 <li><a href="files.html"><span>File List</span></a></li> |
|
18 <li><a href="globals.html"><span>Globals</span></a></li> |
|
19 </ul></div> |
|
20 <div class="nav"> |
|
21 <a class="el" href="dir_d58fb241e647de6212c31ecccf9cbace.html">drivers</a> » <a class="el" href="dir_e67188945a11754d0713bc6f89228027.html">win32</a></div> |
|
22 <h1>timers_win32.cpp File Reference</h1><code>#include <windows.h></code><br> |
|
23 <code>#include <stdlib.h></code><br> |
|
24 <code>#include "<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>"</code><br> |
|
25 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
|
26 <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br> |
|
27 <code>#include "<a class="el" href="timers__driver_8h-source.html">timers_driver.h</a>"</code><br> |
|
28 |
|
29 <p> |
|
30 Include dependency graph for timers_win32.cpp:<p><center><img src="timers__win32_8cpp__incl.png" border="0" usemap="#drivers/win32/timers_win32.cpp_map" alt=""></center> |
|
31 <map name="drivers/win32/timers_win32.cpp_map"> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="615,133,703,157" alt=""> |
|
33 <area href="can__driver_8h.html" shape="rect" coords="462,157,566,181" alt=""> |
|
34 <area href="timer_8h.html" shape="rect" coords="479,209,548,233" alt=""> |
|
35 <area href="timers__driver_8h.html" shape="rect" coords="291,259,414,283" alt=""> |
|
36 </map> |
|
37 |
|
38 <p> |
|
39 <a href="timers__win32_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
40 <tr><td></td></tr> |
|
41 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> |
|
42 <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classccritical__section.html">ccritical_section</a></td></tr> |
|
43 |
|
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classclass__timers.html">class_timers</a></td></tr> |
|
45 |
|
46 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#d7fee43b8a44cf8b7036853593044037">EnterMutex</a> (void)</td></tr> |
|
48 |
|
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#73d9a4eb941fb20cf6b597840510394b">LeaveMutex</a> (void)</td></tr> |
|
50 |
|
51 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#998a8436651e6990d3922ebdc3eebf8b">CreateReceiveTask</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0, TASK_HANDLE *Thread, void *ReceiveLoopPtr)</td></tr> |
|
52 |
|
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#4b2486891ee01e06e2deead4cf963727">WaitReceiveTaskEnd</a> (TASK_HANDLE Thread)</td></tr> |
|
54 |
|
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#c9e1731843825eb55e7a94894e6a8ec5">StartTimerLoop</a> (<a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> init_callback)</td></tr> |
|
56 |
|
57 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#8758484f3cebb0cd44bb247c3f23d5e3">StopTimerLoop</a> (void)</td></tr> |
|
58 |
|
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#b8d05dee70f04b5c5190ab00e84da106">setTimer</a> (TIMEVAL value)</td></tr> |
|
60 |
|
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#4dccc204d52176bd547ab34d6858f5ba">getElapsedTime</a> (void)</td></tr> |
|
62 |
|
63 </table> |
|
64 <hr><h2>Function Documentation</h2> |
|
65 <a class="anchor" name="998a8436651e6990d3922ebdc3eebf8b"></a><!-- doxytag: member="timers_win32.cpp::CreateReceiveTask" ref="998a8436651e6990d3922ebdc3eebf8b" args="(CAN_HANDLE fd0, TASK_HANDLE *Thread, void *ReceiveLoopPtr)" --> |
|
66 <div class="memitem"> |
|
67 <div class="memproto"> |
|
68 <table class="memname"> |
|
69 <tr> |
|
70 <td class="memname">void CreateReceiveTask </td> |
|
71 <td>(</td> |
|
72 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
73 <td class="paramname"> <em>fd0</em>, </td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td class="paramkey"></td> |
|
77 <td></td> |
|
78 <td class="paramtype">TASK_HANDLE * </td> |
|
79 <td class="paramname"> <em>Thread</em>, </td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td class="paramkey"></td> |
|
83 <td></td> |
|
84 <td class="paramtype">void * </td> |
|
85 <td class="paramname"> <em>ReceiveLoopPtr</em></td><td> </td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td></td> |
|
89 <td>)</td> |
|
90 <td></td><td></td><td width="100%"></td> |
|
91 </tr> |
|
92 </table> |
|
93 </div> |
|
94 <div class="memdoc"> |
|
95 |
|
96 <p> |
|
97 |
|
98 <p> |
|
99 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00078">78</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
100 </div> |
|
101 </div><p> |
|
102 <a class="anchor" name="d7fee43b8a44cf8b7036853593044037"></a><!-- doxytag: member="timers_win32.cpp::EnterMutex" ref="d7fee43b8a44cf8b7036853593044037" args="(void)" --> |
|
103 <div class="memitem"> |
|
104 <div class="memproto"> |
|
105 <table class="memname"> |
|
106 <tr> |
|
107 <td class="memname">void EnterMutex </td> |
|
108 <td>(</td> |
|
109 <td class="paramtype">void </td> |
|
110 <td class="paramname"> </td> |
|
111 <td> ) </td> |
|
112 <td width="100%"></td> |
|
113 </tr> |
|
114 </table> |
|
115 </div> |
|
116 <div class="memdoc"> |
|
117 |
|
118 <p> |
|
119 |
|
120 <p> |
|
121 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00064">64</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
122 <p> |
|
123 References <a class="el" href="timers__unix_8c-source.html#l00010">CanFestival_mutex</a>, and <a class="el" href="timers__win32_8cpp-source.html#l00049">ccritical_section::enter()</a>. |
|
124 <p> |
|
125 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037_cgraph.png" border="0" usemap="#timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037_cgraph_map" alt=""></center> |
|
126 <map name="timers__win32_8cpp_d7fee43b8a44cf8b7036853593044037_cgraph_map"> |
|
127 <area href="classccritical__section.html#94af8f7f73229ecc82a303be7e2b0ad0" shape="rect" coords="156,6,329,30" alt=""> |
|
128 </map> |
|
129 |
|
130 </div> |
|
131 </div><p> |
|
132 <a class="anchor" name="4dccc204d52176bd547ab34d6858f5ba"></a><!-- doxytag: member="timers_win32.cpp::getElapsedTime" ref="4dccc204d52176bd547ab34d6858f5ba" args="(void)" --> |
|
133 <div class="memitem"> |
|
134 <div class="memproto"> |
|
135 <table class="memname"> |
|
136 <tr> |
|
137 <td class="memname">TIMEVAL getElapsedTime </td> |
|
138 <td>(</td> |
|
139 <td class="paramtype">void </td> |
|
140 <td class="paramname"> </td> |
|
141 <td> ) </td> |
|
142 <td width="100%"></td> |
|
143 </tr> |
|
144 </table> |
|
145 </div> |
|
146 <div class="memdoc"> |
|
147 |
|
148 <p> |
|
149 |
|
150 <p> |
|
151 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00238">238</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
152 <p> |
|
153 References <a class="el" href="timers__win32_8cpp-source.html#l00210">class_timers::get_elapsed_time()</a>, <a class="el" href="portsaccess_8h-source.html#l00046">IO_PORTS_16</a>, and <a class="el" href="ports__def_8h-source.html#l00119">TC4H</a>. |
|
154 <p> |
|
155 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba_cgraph.png" border="0" usemap="#timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba_cgraph_map" alt=""></center> |
|
156 <map name="timers__win32_8cpp_4dccc204d52176bd547ab34d6858f5ba_cgraph_map"> |
|
157 <area href="classclass__timers.html#0fa5bd5d1d4012bf9eef3ffabe990dfb" shape="rect" coords="186,6,418,30" alt=""> |
|
158 <area href="classclass__timers.html#e4fe19b5b56b72ce2601d74f6519bd0b" shape="rect" coords="467,6,646,30" alt=""> |
|
159 </map> |
|
160 |
|
161 </div> |
|
162 </div><p> |
|
163 <a class="anchor" name="73d9a4eb941fb20cf6b597840510394b"></a><!-- doxytag: member="timers_win32.cpp::LeaveMutex" ref="73d9a4eb941fb20cf6b597840510394b" args="(void)" --> |
|
164 <div class="memitem"> |
|
165 <div class="memproto"> |
|
166 <table class="memname"> |
|
167 <tr> |
|
168 <td class="memname">void LeaveMutex </td> |
|
169 <td>(</td> |
|
170 <td class="paramtype">void </td> |
|
171 <td class="paramname"> </td> |
|
172 <td> ) </td> |
|
173 <td width="100%"></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="timers__win32_8cpp-source.html#l00069">69</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
183 <p> |
|
184 References <a class="el" href="timers__unix_8c-source.html#l00010">CanFestival_mutex</a>, and <a class="el" href="timers__win32_8cpp-source.html#l00053">ccritical_section::leave()</a>. |
|
185 <p> |
|
186 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b_cgraph.png" border="0" usemap="#timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b_cgraph_map" alt=""></center> |
|
187 <map name="timers__win32_8cpp_73d9a4eb941fb20cf6b597840510394b_cgraph_map"> |
|
188 <area href="classccritical__section.html#e1f542404005a2f0696ced6c52a8ce3b" shape="rect" coords="158,6,334,30" alt=""> |
|
189 </map> |
|
190 |
|
191 </div> |
|
192 </div><p> |
|
193 <a class="anchor" name="b8d05dee70f04b5c5190ab00e84da106"></a><!-- doxytag: member="timers_win32.cpp::setTimer" ref="b8d05dee70f04b5c5190ab00e84da106" args="(TIMEVAL value)" --> |
|
194 <div class="memitem"> |
|
195 <div class="memproto"> |
|
196 <table class="memname"> |
|
197 <tr> |
|
198 <td class="memname">void setTimer </td> |
|
199 <td>(</td> |
|
200 <td class="paramtype">TIMEVAL </td> |
|
201 <td class="paramname"> <em>value</em> </td> |
|
202 <td> ) </td> |
|
203 <td width="100%"></td> |
|
204 </tr> |
|
205 </table> |
|
206 </div> |
|
207 <div class="memdoc"> |
|
208 |
|
209 <p> |
|
210 |
|
211 <p> |
|
212 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00233">233</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
213 <p> |
|
214 References <a class="el" href="timers__unix_8c-source.html#l00082">maxval</a>, <a class="el" href="timers__win32_8cpp-source.html#l00204">class_timers::set_timer()</a>, and <a class="el" href="timers__unix_8c-source.html#l00018">timer</a>. |
|
215 <p> |
|
216 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106_cgraph.png" border="0" usemap="#timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106_cgraph_map" alt=""></center> |
|
217 <map name="timers__win32_8cpp_b8d05dee70f04b5c5190ab00e84da106_cgraph_map"> |
|
218 <area href="classclass__timers.html#a27df6346a38fb25acc394cb7998a3f8" shape="rect" coords="138,6,314,30" alt=""> |
|
219 <area href="classclass__timers.html#e4fe19b5b56b72ce2601d74f6519bd0b" shape="rect" coords="363,6,542,30" alt=""> |
|
220 </map> |
|
221 |
|
222 </div> |
|
223 </div><p> |
|
224 <a class="anchor" name="c9e1731843825eb55e7a94894e6a8ec5"></a><!-- doxytag: member="timers_win32.cpp::StartTimerLoop" ref="c9e1731843825eb55e7a94894e6a8ec5" args="(TimerCallback_t init_callback)" --> |
|
225 <div class="memitem"> |
|
226 <div class="memproto"> |
|
227 <table class="memname"> |
|
228 <tr> |
|
229 <td class="memname">void StartTimerLoop </td> |
|
230 <td>(</td> |
|
231 <td class="paramtype"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> </td> |
|
232 <td class="paramname"> <em>init_callback</em> </td> |
|
233 <td> ) </td> |
|
234 <td width="100%"></td> |
|
235 </tr> |
|
236 </table> |
|
237 </div> |
|
238 <div class="memdoc"> |
|
239 |
|
240 <p> |
|
241 |
|
242 <p> |
|
243 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00219">219</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
244 <p> |
|
245 References <a class="el" href="timers__unix_8c-source.html#l00020">EnterMutex()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00079">initTimer()</a>, <a class="el" href="timers__unix_8c-source.html#l00025">LeaveMutex()</a>, <a class="el" href="timers__win32_8cpp-source.html#l00184">class_timers::resume_timer_thread()</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, <a class="el" href="timers__win32_8cpp-source.html#l00173">class_timers::start_timer_thread()</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00150">TIMEVAL</a>. |
|
246 <p> |
|
247 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5_cgraph.png" border="0" usemap="#timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5_cgraph_map" alt=""></center> |
|
248 <map name="timers__win32_8cpp_c9e1731843825eb55e7a94894e6a8ec5_cgraph_map"> |
|
249 <area href="timers__unix_8c.html#d7fee43b8a44cf8b7036853593044037" shape="rect" coords="848,27,947,51" alt=""> |
|
250 <area href="canOpenDriver_8c.html#02922529b60419a94afe8f369dda070b" shape="rect" coords="267,224,349,248" alt=""> |
|
251 <area href="timers__unix_8c.html#73d9a4eb941fb20cf6b597840510394b" shape="rect" coords="845,173,949,197" alt=""> |
|
252 <area href="classclass__timers.html#e0066fac671c6adb997d6c075487af89" shape="rect" coords="179,272,437,296" alt=""> |
|
253 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="267,320,349,344" alt=""> |
|
254 <area href="classclass__timers.html#d857a63670354f41759f68d4ea29a0f5" shape="rect" coords="189,124,427,148" alt=""> |
|
255 <area href="classclass__timers.html#e4fe19b5b56b72ce2601d74f6519bd0b" shape="rect" coords="808,124,987,148" alt=""> |
|
256 <area href="classclass__timers.html#a68dd5b6225b3519b4bc2a0280683c87" shape="rect" coords="487,75,759,99" alt=""> |
|
257 <area href="timer_8c.html#fa75192a3238525618f8cb83004930cc" shape="rect" coords="840,75,955,99" alt=""> |
|
258 </map> |
|
259 |
|
260 </div> |
|
261 </div><p> |
|
262 <a class="anchor" name="8758484f3cebb0cd44bb247c3f23d5e3"></a><!-- doxytag: member="timers_win32.cpp::StopTimerLoop" ref="8758484f3cebb0cd44bb247c3f23d5e3" args="(void)" --> |
|
263 <div class="memitem"> |
|
264 <div class="memproto"> |
|
265 <table class="memname"> |
|
266 <tr> |
|
267 <td class="memname">void StopTimerLoop </td> |
|
268 <td>(</td> |
|
269 <td class="paramtype">void </td> |
|
270 <td class="paramname"> </td> |
|
271 <td> ) </td> |
|
272 <td width="100%"></td> |
|
273 </tr> |
|
274 </table> |
|
275 </div> |
|
276 <div class="memdoc"> |
|
277 |
|
278 <p> |
|
279 |
|
280 <p> |
|
281 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00228">228</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
282 <p> |
|
283 References <a class="el" href="timers__unix_8c-source.html#l00020">EnterMutex()</a>, <a class="el" href="timers__unix_8c-source.html#l00025">LeaveMutex()</a>, <a class="el" href="timers__win32_8cpp-source.html#l00193">class_timers::stop_timer_thread()</a>, and <a class="el" href="timers__unix_8c-source.html#l00018">timer</a>. |
|
284 <p> |
|
285 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3_cgraph.png" border="0" usemap="#timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3_cgraph_map" alt=""></center> |
|
286 <map name="timers__win32_8cpp_8758484f3cebb0cd44bb247c3f23d5e3_cgraph_map"> |
|
287 <area href="timers__unix_8c.html#d7fee43b8a44cf8b7036853593044037" shape="rect" coords="248,6,347,30" alt=""> |
|
288 <area href="timers__unix_8c.html#73d9a4eb941fb20cf6b597840510394b" shape="rect" coords="245,54,349,78" alt=""> |
|
289 <area href="classclass__timers.html#a78d9f5ab159ec6b11b4dc4c8f351697" shape="rect" coords="179,102,416,126" alt=""> |
|
290 </map> |
|
291 |
|
292 </div> |
|
293 </div><p> |
|
294 <a class="anchor" name="4b2486891ee01e06e2deead4cf963727"></a><!-- doxytag: member="timers_win32.cpp::WaitReceiveTaskEnd" ref="4b2486891ee01e06e2deead4cf963727" args="(TASK_HANDLE Thread)" --> |
|
295 <div class="memitem"> |
|
296 <div class="memproto"> |
|
297 <table class="memname"> |
|
298 <tr> |
|
299 <td class="memname">void WaitReceiveTaskEnd </td> |
|
300 <td>(</td> |
|
301 <td class="paramtype">TASK_HANDLE </td> |
|
302 <td class="paramname"> <em>Thread</em> </td> |
|
303 <td> ) </td> |
|
304 <td width="100%"></td> |
|
305 </tr> |
|
306 </table> |
|
307 </div> |
|
308 <div class="memdoc"> |
|
309 |
|
310 <p> |
|
311 |
|
312 <p> |
|
313 Definition at line <a class="el" href="timers__win32_8cpp-source.html#l00084">84</a> of file <a class="el" href="timers__win32_8cpp-source.html">timers_win32.cpp</a>. |
|
314 </div> |
|
315 </div><p> |
|
316 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:45 2007 for CanFestival by |
|
317 <a href="http://www.doxygen.org/index.html"> |
|
318 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
319 </body> |
|
320 </html> |