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/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">
7 <!-- Generated by Doxygen 1.5.1 -->
10 <li><a href="main.html"><span>Main Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Data Structures</span></a></li>
13 <li id="current"><a href="files.html"><span>Files</span></a></li>
17 <li><a href="files.html"><span>File List</span></a></li>
18 <li><a href="globals.html"><span>Globals</span></a></li>
20 <h1>/home/epimerde/documents/tc11/CanFestival-3/drivers/win32/timers_win32.cpp File Reference</h1><code>#include <windows.h></code><br>
21 <code>#include <stdlib.h></code><br>
22 <code>#include "<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>"</code><br>
23 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br>
24 <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br>
25 <code>#include "<a class="el" href="timers__driver_8h-source.html">timers_driver.h</a>"</code><br>
28 <a href="timers__win32_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
30 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
31 <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>
33 <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>
35 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
36 <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>
38 <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>
40 <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>
42 <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>
44 <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>
46 <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>
48 <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>
50 <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>
53 <hr><h2>Function Documentation</h2>
54 <a class="anchor" name="998a8436651e6990d3922ebdc3eebf8b"></a><!-- doxytag: member="timers_win32.cpp::CreateReceiveTask" ref="998a8436651e6990d3922ebdc3eebf8b" args="(CAN_HANDLE fd0, TASK_HANDLE *Thread, void *ReceiveLoopPtr)" -->
56 <div class="memproto">
57 <table class="memname">
59 <td class="memname">void CreateReceiveTask </td>
61 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
62 <td class="paramname"> <em>fd0</em>, </td>
65 <td class="paramkey"></td>
67 <td class="paramtype">TASK_HANDLE * </td>
68 <td class="paramname"> <em>Thread</em>, </td>
71 <td class="paramkey"></td>
73 <td class="paramtype">void * </td>
74 <td class="paramname"> <em>ReceiveLoopPtr</em></td><td> </td>
79 <td></td><td></td><td width="100%"></td>
88 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>.
91 <a class="anchor" name="d7fee43b8a44cf8b7036853593044037"></a><!-- doxytag: member="timers_win32.cpp::EnterMutex" ref="d7fee43b8a44cf8b7036853593044037" args="(void)" -->
93 <div class="memproto">
94 <table class="memname">
96 <td class="memname">void EnterMutex </td>
98 <td class="paramtype">void </td>
99 <td class="paramname"> </td>
100 <td> ) </td>
101 <td width="100%"></td>
110 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>.
112 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>.
115 <a class="anchor" name="4dccc204d52176bd547ab34d6858f5ba"></a><!-- doxytag: member="timers_win32.cpp::getElapsedTime" ref="4dccc204d52176bd547ab34d6858f5ba" args="(void)" -->
116 <div class="memitem">
117 <div class="memproto">
118 <table class="memname">
120 <td class="memname">TIMEVAL getElapsedTime </td>
122 <td class="paramtype">void </td>
123 <td class="paramname"> </td>
124 <td> ) </td>
125 <td width="100%"></td>
134 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>.
136 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>.
139 <a class="anchor" name="73d9a4eb941fb20cf6b597840510394b"></a><!-- doxytag: member="timers_win32.cpp::LeaveMutex" ref="73d9a4eb941fb20cf6b597840510394b" args="(void)" -->
140 <div class="memitem">
141 <div class="memproto">
142 <table class="memname">
144 <td class="memname">void LeaveMutex </td>
146 <td class="paramtype">void </td>
147 <td class="paramname"> </td>
148 <td> ) </td>
149 <td width="100%"></td>
158 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>.
160 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>.
163 <a class="anchor" name="b8d05dee70f04b5c5190ab00e84da106"></a><!-- doxytag: member="timers_win32.cpp::setTimer" ref="b8d05dee70f04b5c5190ab00e84da106" args="(TIMEVAL value)" -->
164 <div class="memitem">
165 <div class="memproto">
166 <table class="memname">
168 <td class="memname">void setTimer </td>
170 <td class="paramtype">TIMEVAL </td>
171 <td class="paramname"> <em>value</em> </td>
172 <td> ) </td>
173 <td width="100%"></td>
182 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>.
184 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>.
187 <a class="anchor" name="c9e1731843825eb55e7a94894e6a8ec5"></a><!-- doxytag: member="timers_win32.cpp::StartTimerLoop" ref="c9e1731843825eb55e7a94894e6a8ec5" args="(TimerCallback_t init_callback)" -->
188 <div class="memitem">
189 <div class="memproto">
190 <table class="memname">
192 <td class="memname">void StartTimerLoop </td>
194 <td class="paramtype"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> </td>
195 <td class="paramname"> <em>init_callback</em> </td>
196 <td> ) </td>
197 <td width="100%"></td>
206 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>.
208 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#l00038">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>.
211 <a class="anchor" name="8758484f3cebb0cd44bb247c3f23d5e3"></a><!-- doxytag: member="timers_win32.cpp::StopTimerLoop" ref="8758484f3cebb0cd44bb247c3f23d5e3" args="(void)" -->
212 <div class="memitem">
213 <div class="memproto">
214 <table class="memname">
216 <td class="memname">void StopTimerLoop </td>
218 <td class="paramtype">void </td>
219 <td class="paramname"> </td>
220 <td> ) </td>
221 <td width="100%"></td>
230 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>.
232 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>.
235 <a class="anchor" name="4b2486891ee01e06e2deead4cf963727"></a><!-- doxytag: member="timers_win32.cpp::WaitReceiveTaskEnd" ref="4b2486891ee01e06e2deead4cf963727" args="(TASK_HANDLE Thread)" -->
236 <div class="memitem">
237 <div class="memproto">
238 <table class="memname">
240 <td class="memname">void WaitReceiveTaskEnd </td>
242 <td class="paramtype">TASK_HANDLE </td>
243 <td class="paramname"> <em>Thread</em> </td>
244 <td> ) </td>
245 <td width="100%"></td>
254 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>.
257 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by
258 <a href="http://www.doxygen.org/index.html">
259 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>