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_65dd258ff9b9ef4cd7bd0d22f5e58dba.html">drivers</a> » <a class="el" href="dir_b3944654cff8658babe25b47a3a522e3.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="744,195,819,221" alt=""> |
|
33 <area href="can__driver_8h.html" shape="rect" coords="509,271,597,297" alt=""> |
|
34 <area href="timer_8h.html" shape="rect" coords="401,169,460,196" alt=""> |
|
35 <area href="timers__driver_8h.html" shape="rect" coords="249,119,351,145" alt=""> |
|
36 <area href="can_8h.html" shape="rect" coords="647,271,695,297" alt=""> |
|
37 <area href="win32_2timerscfg_8h.html" shape="rect" coords="513,119,593,145" alt=""> |
|
38 <area href="data_8h.html" shape="rect" coords="527,220,580,247" alt=""> |
|
39 </map> |
|
40 |
|
41 <p> |
|
42 <a href="timers__win32_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
43 <tr><td></td></tr> |
|
44 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> |
|
45 <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> |
|
46 |
|
47 <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> |
|
48 |
|
49 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#aa3c568288a54a9398524255602bbce8">EnterMutex</a> (void)</td></tr> |
|
51 |
|
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#887d197b991c23bc11f626ae688abec7">LeaveMutex</a> (void)</td></tr> |
|
53 |
|
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#ae6d0bd37de8ee577d755d89ae99e931">CreateReceiveTask</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> fd0, TASK_HANDLE *Thread, void *ReceiveLoopPtr)</td></tr> |
|
55 |
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#b21b041545f4dfc5660514fbc3c2f89c">WaitReceiveTaskEnd</a> (TASK_HANDLE Thread)</td></tr> |
|
57 |
|
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#dd08f21a7c3fcbcd53a2c41b00879fdd">StartTimerLoop</a> (<a class="el" href="timer_8h.html#c8436e7543fa1329b00e570246071313">TimerCallback_t</a> init_callback)</td></tr> |
|
59 |
|
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#8d52f2db8b505e53ace5dd1c2a789d94">StopTimerLoop</a> (void)</td></tr> |
|
61 |
|
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#7996006c628d2df030b9684d7a86acd1">setTimer</a> (TIMEVAL value)</td></tr> |
|
63 |
|
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timers__win32_8cpp.html#75efe30105165658d05d871255f8c0a2">getElapsedTime</a> (void)</td></tr> |
|
65 |
|
66 </table> |
|
67 <hr><h2>Function Documentation</h2> |
|
68 <a class="anchor" name="ae6d0bd37de8ee577d755d89ae99e931"></a><!-- doxytag: member="timers_win32.cpp::CreateReceiveTask" ref="ae6d0bd37de8ee577d755d89ae99e931" args="(CAN_HANDLE fd0, TASK_HANDLE *Thread, void *ReceiveLoopPtr)" --> |
|
69 <div class="memitem"> |
|
70 <div class="memproto"> |
|
71 <table class="memname"> |
|
72 <tr> |
|
73 <td class="memname">void CreateReceiveTask </td> |
|
74 <td>(</td> |
|
75 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
|
76 <td class="paramname"> <em>fd0</em>, </td> |
|
77 </tr> |
|
78 <tr> |
|
79 <td class="paramkey"></td> |
|
80 <td></td> |
|
81 <td class="paramtype">TASK_HANDLE * </td> |
|
82 <td class="paramname"> <em>Thread</em>, </td> |
|
83 </tr> |
|
84 <tr> |
|
85 <td class="paramkey"></td> |
|
86 <td></td> |
|
87 <td class="paramtype">void * </td> |
|
88 <td class="paramname"> <em>ReceiveLoopPtr</em></td><td> </td> |
|
89 </tr> |
|
90 <tr> |
|
91 <td></td> |
|
92 <td>)</td> |
|
93 <td></td><td></td><td width="100%"></td> |
|
94 </tr> |
|
95 </table> |
|
96 </div> |
|
97 <div class="memdoc"> |
|
98 |
|
99 <p> |
|
100 |
|
101 <p> |
|
102 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>. |
|
103 </div> |
|
104 </div><p> |
|
105 <a class="anchor" name="aa3c568288a54a9398524255602bbce8"></a><!-- doxytag: member="timers_win32.cpp::EnterMutex" ref="aa3c568288a54a9398524255602bbce8" args="(void)" --> |
|
106 <div class="memitem"> |
|
107 <div class="memproto"> |
|
108 <table class="memname"> |
|
109 <tr> |
|
110 <td class="memname">void EnterMutex </td> |
|
111 <td>(</td> |
|
112 <td class="paramtype">void </td> |
|
113 <td class="paramname"> </td> |
|
114 <td> ) </td> |
|
115 <td width="100%"></td> |
|
116 </tr> |
|
117 </table> |
|
118 </div> |
|
119 <div class="memdoc"> |
|
120 |
|
121 <p> |
|
122 |
|
123 <p> |
|
124 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>. |
|
125 <p> |
|
126 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>. |
|
127 <p> |
|
128 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_aa3c568288a54a9398524255602bbce8_cgraph.png" border="0" usemap="#timers__win32_8cpp_aa3c568288a54a9398524255602bbce8_cgraph_map" alt=""></center> |
|
129 <map name="timers__win32_8cpp_aa3c568288a54a9398524255602bbce8_cgraph_map"> |
|
130 <area href="classccritical__section.html#17e0ee402444af5d8832a009180f5889" shape="rect" coords="140,5,281,32" alt=""> |
|
131 </map> |
|
132 |
|
133 </div> |
|
134 </div><p> |
|
135 <a class="anchor" name="75efe30105165658d05d871255f8c0a2"></a><!-- doxytag: member="timers_win32.cpp::getElapsedTime" ref="75efe30105165658d05d871255f8c0a2" args="(void)" --> |
|
136 <div class="memitem"> |
|
137 <div class="memproto"> |
|
138 <table class="memname"> |
|
139 <tr> |
|
140 <td class="memname">TIMEVAL getElapsedTime </td> |
|
141 <td>(</td> |
|
142 <td class="paramtype">void </td> |
|
143 <td class="paramname"> </td> |
|
144 <td> ) </td> |
|
145 <td width="100%"></td> |
|
146 </tr> |
|
147 </table> |
|
148 </div> |
|
149 <div class="memdoc"> |
|
150 |
|
151 <p> |
|
152 |
|
153 <p> |
|
154 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>. |
|
155 <p> |
|
156 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>. |
|
157 <p> |
|
158 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_75efe30105165658d05d871255f8c0a2_cgraph.png" border="0" usemap="#timers__win32_8cpp_75efe30105165658d05d871255f8c0a2_cgraph_map" alt=""></center> |
|
159 <map name="timers__win32_8cpp_75efe30105165658d05d871255f8c0a2_cgraph_map"> |
|
160 <area href="classclass__timers.html#25c83088f9f63dfd9b1c79c471edf1ef" shape="rect" coords="164,5,351,32" alt=""> |
|
161 <area href="classclass__timers.html#0c90706e338a7167cfd38a5e8c3e03d6" shape="rect" coords="401,5,545,32" alt=""> |
|
162 </map> |
|
163 |
|
164 </div> |
|
165 </div><p> |
|
166 <a class="anchor" name="887d197b991c23bc11f626ae688abec7"></a><!-- doxytag: member="timers_win32.cpp::LeaveMutex" ref="887d197b991c23bc11f626ae688abec7" args="(void)" --> |
|
167 <div class="memitem"> |
|
168 <div class="memproto"> |
|
169 <table class="memname"> |
|
170 <tr> |
|
171 <td class="memname">void LeaveMutex </td> |
|
172 <td>(</td> |
|
173 <td class="paramtype">void </td> |
|
174 <td class="paramname"> </td> |
|
175 <td> ) </td> |
|
176 <td width="100%"></td> |
|
177 </tr> |
|
178 </table> |
|
179 </div> |
|
180 <div class="memdoc"> |
|
181 |
|
182 <p> |
|
183 |
|
184 <p> |
|
185 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>. |
|
186 <p> |
|
187 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>. |
|
188 <p> |
|
189 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_887d197b991c23bc11f626ae688abec7_cgraph.png" border="0" usemap="#timers__win32_8cpp_887d197b991c23bc11f626ae688abec7_cgraph_map" alt=""></center> |
|
190 <map name="timers__win32_8cpp_887d197b991c23bc11f626ae688abec7_cgraph_map"> |
|
191 <area href="classccritical__section.html#19dfa90f87f31c901c6e476221100724" shape="rect" coords="144,5,288,32" alt=""> |
|
192 </map> |
|
193 |
|
194 </div> |
|
195 </div><p> |
|
196 <a class="anchor" name="7996006c628d2df030b9684d7a86acd1"></a><!-- doxytag: member="timers_win32.cpp::setTimer" ref="7996006c628d2df030b9684d7a86acd1" args="(TIMEVAL value)" --> |
|
197 <div class="memitem"> |
|
198 <div class="memproto"> |
|
199 <table class="memname"> |
|
200 <tr> |
|
201 <td class="memname">void setTimer </td> |
|
202 <td>(</td> |
|
203 <td class="paramtype">TIMEVAL </td> |
|
204 <td class="paramname"> <em>value</em> </td> |
|
205 <td> ) </td> |
|
206 <td width="100%"></td> |
|
207 </tr> |
|
208 </table> |
|
209 </div> |
|
210 <div class="memdoc"> |
|
211 |
|
212 <p> |
|
213 |
|
214 <p> |
|
215 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>. |
|
216 <p> |
|
217 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>. |
|
218 <p> |
|
219 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_7996006c628d2df030b9684d7a86acd1_cgraph.png" border="0" usemap="#timers__win32_8cpp_7996006c628d2df030b9684d7a86acd1_cgraph_map" alt=""></center> |
|
220 <map name="timers__win32_8cpp_7996006c628d2df030b9684d7a86acd1_cgraph_map"> |
|
221 <area href="classclass__timers.html#1f14efc280b93b373f5831cc9123ab63" shape="rect" coords="123,5,267,32" alt=""> |
|
222 <area href="classclass__timers.html#0c90706e338a7167cfd38a5e8c3e03d6" shape="rect" coords="316,5,460,32" alt=""> |
|
223 </map> |
|
224 |
|
225 </div> |
|
226 </div><p> |
|
227 <a class="anchor" name="dd08f21a7c3fcbcd53a2c41b00879fdd"></a><!-- doxytag: member="timers_win32.cpp::StartTimerLoop" ref="dd08f21a7c3fcbcd53a2c41b00879fdd" args="(TimerCallback_t init_callback)" --> |
|
228 <div class="memitem"> |
|
229 <div class="memproto"> |
|
230 <table class="memname"> |
|
231 <tr> |
|
232 <td class="memname">void StartTimerLoop </td> |
|
233 <td>(</td> |
|
234 <td class="paramtype"><a class="el" href="timer_8h.html#c8436e7543fa1329b00e570246071313">TimerCallback_t</a> </td> |
|
235 <td class="paramname"> <em>init_callback</em> </td> |
|
236 <td> ) </td> |
|
237 <td width="100%"></td> |
|
238 </tr> |
|
239 </table> |
|
240 </div> |
|
241 <div class="memdoc"> |
|
242 |
|
243 <p> |
|
244 |
|
245 <p> |
|
246 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>. |
|
247 <p> |
|
248 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>. |
|
249 <p> |
|
250 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_dd08f21a7c3fcbcd53a2c41b00879fdd_cgraph.png" border="0" usemap="#timers__win32_8cpp_dd08f21a7c3fcbcd53a2c41b00879fdd_cgraph_map" alt=""></center> |
|
251 <map name="timers__win32_8cpp_dd08f21a7c3fcbcd53a2c41b00879fdd_cgraph_map"> |
|
252 <area href="timers__unix_8c.html#aa3c568288a54a9398524255602bbce8" shape="rect" coords="719,12,804,39" alt=""> |
|
253 <area href="canOpenDriver_8c.html#607bd2711b85a87fce51334bb36bad1a" shape="rect" coords="228,215,300,241" alt=""> |
|
254 <area href="timers__unix_8c.html#887d197b991c23bc11f626ae688abec7" shape="rect" coords="717,164,805,191" alt=""> |
|
255 <area href="classclass__timers.html#04b480308ab6441248d5890997740cd5" shape="rect" coords="160,265,368,292" alt=""> |
|
256 <area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="228,316,300,343" alt=""> |
|
257 <area href="classclass__timers.html#f126a78002e4ac8c105ae782b7a1efbf" shape="rect" coords="168,113,360,140" alt=""> |
|
258 <area href="classclass__timers.html#0c90706e338a7167cfd38a5e8c3e03d6" shape="rect" coords="689,113,833,140" alt=""> |
|
259 <area href="classclass__timers.html#e54913c9e9072df64466d314b5505bc7" shape="rect" coords="416,63,640,89" alt=""> |
|
260 <area href="timer_8c.html#7a5a515821c2e4fb2f66bac72389da00" shape="rect" coords="713,63,809,89" alt=""> |
|
261 <area href="canOpenDriver_8c.html#38b23a8ee3748bca3415967b90df1e15" shape="rect" coords="884,63,991,89" alt=""> |
|
262 </map> |
|
263 |
|
264 </div> |
|
265 </div><p> |
|
266 <a class="anchor" name="8d52f2db8b505e53ace5dd1c2a789d94"></a><!-- doxytag: member="timers_win32.cpp::StopTimerLoop" ref="8d52f2db8b505e53ace5dd1c2a789d94" args="(void)" --> |
|
267 <div class="memitem"> |
|
268 <div class="memproto"> |
|
269 <table class="memname"> |
|
270 <tr> |
|
271 <td class="memname">void StopTimerLoop </td> |
|
272 <td>(</td> |
|
273 <td class="paramtype">void </td> |
|
274 <td class="paramname"> </td> |
|
275 <td> ) </td> |
|
276 <td width="100%"></td> |
|
277 </tr> |
|
278 </table> |
|
279 </div> |
|
280 <div class="memdoc"> |
|
281 |
|
282 <p> |
|
283 |
|
284 <p> |
|
285 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>. |
|
286 <p> |
|
287 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>. |
|
288 <p> |
|
289 Here is the call graph for this function:<p><center><img src="timers__win32_8cpp_8d52f2db8b505e53ace5dd1c2a789d94_cgraph.png" border="0" usemap="#timers__win32_8cpp_8d52f2db8b505e53ace5dd1c2a789d94_cgraph_map" alt=""></center> |
|
290 <map name="timers__win32_8cpp_8d52f2db8b505e53ace5dd1c2a789d94_cgraph_map"> |
|
291 <area href="timers__unix_8c.html#aa3c568288a54a9398524255602bbce8" shape="rect" coords="213,5,299,32" alt=""> |
|
292 <area href="timers__unix_8c.html#887d197b991c23bc11f626ae688abec7" shape="rect" coords="212,56,300,83" alt=""> |
|
293 <area href="classclass__timers.html#afe8ebe1021bb60687f8cab05a18d34a" shape="rect" coords="160,107,352,133" alt=""> |
|
294 </map> |
|
295 |
|
296 </div> |
|
297 </div><p> |
|
298 <a class="anchor" name="b21b041545f4dfc5660514fbc3c2f89c"></a><!-- doxytag: member="timers_win32.cpp::WaitReceiveTaskEnd" ref="b21b041545f4dfc5660514fbc3c2f89c" args="(TASK_HANDLE Thread)" --> |
|
299 <div class="memitem"> |
|
300 <div class="memproto"> |
|
301 <table class="memname"> |
|
302 <tr> |
|
303 <td class="memname">void WaitReceiveTaskEnd </td> |
|
304 <td>(</td> |
|
305 <td class="paramtype">TASK_HANDLE </td> |
|
306 <td class="paramname"> <em>Thread</em> </td> |
|
307 <td> ) </td> |
|
308 <td width="100%"></td> |
|
309 </tr> |
|
310 </table> |
|
311 </div> |
|
312 <div class="memdoc"> |
|
313 |
|
314 <p> |
|
315 |
|
316 <p> |
|
317 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>. |
|
318 </div> |
|
319 </div><p> |
|
320 <hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:20 2007 for CanFestival by |
|
321 <a href="http://www.doxygen.org/index.html"> |
|
322 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
323 </body> |
|
324 </html> |
|