207
|
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/include/timer.h 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="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>
|
|
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 |
<h1>/home/epimerde/documents/tc11/CanFestival-3/include/timer.h File Reference</h1><code>#include <<a class="el" href="win32_2timerscfg_8h-source.html">timerscfg.h</a>></code><br>
|
|
21 |
<code>#include <<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>></code><br>
|
|
22 |
<code>#include "<a class="el" href="data_8h-source.html">data.h</a>"</code><br>
|
|
23 |
|
|
24 |
<p>
|
|
25 |
<a href="timer_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
26 |
<tr><td></td></tr>
|
|
27 |
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
|
|
28 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structstruct__s__timer__entry.html">struct_s_timer_entry</a></td></tr>
|
|
29 |
|
|
30 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
|
31 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#146f546340de2a44ab2f63681d40de95">TIMER_HANDLE</a> INTEGER16</td></tr>
|
|
32 |
|
|
33 |
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
|
|
34 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr>
|
|
35 |
|
|
36 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structstruct__s__timer__entry.html">struct_s_timer_entry</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#da9472124b37d582959f8b16e6d29ffe">s_timer_entry</a></td></tr>
|
|
37 |
|
|
38 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
39 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#11c2616d78f06ed9144ef662f757b128">SetAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id, <a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> callback, TIMEVAL value, TIMEVAL period)</td></tr>
|
|
40 |
|
|
41 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#991b3cfaac2f201b14d5530f75985c21">DelAlarm</a> (TIMER_HANDLE handle)</td></tr>
|
|
42 |
|
|
43 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#9e5fb60f13faab8705899c5806754864">TimeDispatch</a> (void)</td></tr>
|
|
44 |
|
|
45 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#b8d05dee70f04b5c5190ab00e84da106">setTimer</a> (TIMEVAL value)</td></tr>
|
|
46 |
|
|
47 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8h.html#4dccc204d52176bd547ab34d6858f5ba">getElapsedTime</a> (void)</td></tr>
|
|
48 |
|
|
49 |
</table>
|
|
50 |
<hr><h2>Define Documentation</h2>
|
|
51 |
<a class="anchor" name="146f546340de2a44ab2f63681d40de95"></a><!-- doxytag: member="timer.h::TIMER_HANDLE" ref="146f546340de2a44ab2f63681d40de95" args="" -->
|
|
52 |
<div class="memitem">
|
|
53 |
<div class="memproto">
|
|
54 |
<table class="memname">
|
|
55 |
<tr>
|
|
56 |
<td class="memname">#define TIMER_HANDLE INTEGER16 </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_8h-source.html#l00029">29</a> of file <a class="el" href="timer_8h-source.html">timer.h</a>.
|
|
66 |
</div>
|
|
67 |
</div><p>
|
|
68 |
<hr><h2>Typedef Documentation</h2>
|
|
69 |
<a class="anchor" name="da9472124b37d582959f8b16e6d29ffe"></a><!-- doxytag: member="timer.h::s_timer_entry" ref="da9472124b37d582959f8b16e6d29ffe" args="" -->
|
|
70 |
<div class="memitem">
|
|
71 |
<div class="memproto">
|
|
72 |
<table class="memname">
|
|
73 |
<tr>
|
|
74 |
<td class="memname">typedef struct <a class="el" href="structstruct__s__timer__entry.html">struct_s_timer_entry</a> <a class="el" href="structstruct__s__timer__entry.html">s_timer_entry</a> </td>
|
|
75 |
</tr>
|
|
76 |
</table>
|
|
77 |
</div>
|
|
78 |
<div class="memdoc">
|
|
79 |
|
|
80 |
<p>
|
|
81 |
|
|
82 |
<p>
|
|
83 |
Definition at line <a class="el" href="timer_8h-source.html#l00052">52</a> of file <a class="el" href="timer_8h-source.html">timer.h</a>.
|
|
84 |
</div>
|
|
85 |
</div><p>
|
|
86 |
<a class="anchor" name="f7d102e060339d3730ceae5fea03691b"></a><!-- doxytag: member="timer.h::TimerCallback_t" ref="f7d102e060339d3730ceae5fea03691b" args="(CO_Data *d, UNS32 id)" -->
|
|
87 |
<div class="memitem">
|
|
88 |
<div class="memproto">
|
|
89 |
<table class="memname">
|
|
90 |
<tr>
|
|
91 |
<td class="memname">typedef void(*) <a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a>(<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id) </td>
|
|
92 |
</tr>
|
|
93 |
</table>
|
|
94 |
</div>
|
|
95 |
<div class="memdoc">
|
|
96 |
|
|
97 |
<p>
|
|
98 |
|
|
99 |
<p>
|
|
100 |
Definition at line <a class="el" href="timer_8h-source.html#l00041">41</a> of file <a class="el" href="timer_8h-source.html">timer.h</a>.
|
|
101 |
</div>
|
|
102 |
</div><p>
|
|
103 |
<hr><h2>Function Documentation</h2>
|
|
104 |
<a class="anchor" name="991b3cfaac2f201b14d5530f75985c21"></a><!-- doxytag: member="timer.h::DelAlarm" ref="991b3cfaac2f201b14d5530f75985c21" args="(TIMER_HANDLE handle)" -->
|
|
105 |
<div class="memitem">
|
|
106 |
<div class="memproto">
|
|
107 |
<table class="memname">
|
|
108 |
<tr>
|
|
109 |
<td class="memname">TIMER_HANDLE DelAlarm </td>
|
|
110 |
<td>(</td>
|
|
111 |
<td class="paramtype">TIMER_HANDLE </td>
|
|
112 |
<td class="paramname"> <em>handle</em> </td>
|
|
113 |
<td> ) </td>
|
|
114 |
<td width="100%"></td>
|
|
115 |
</tr>
|
|
116 |
</table>
|
|
117 |
</div>
|
|
118 |
<div class="memdoc">
|
|
119 |
|
|
120 |
<p>
|
|
121 |
|
|
122 |
<p>
|
|
123 |
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>.
|
|
124 |
<p>
|
|
125 |
References <a class="el" href="timer_8c-source.html#l00033">last_timer_raw</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="timer_8h-source.html#l00044">struct_s_timer_entry::state</a>, and <a class="el" href="timer_8c-source.html#l00030">timers</a>.
|
|
126 |
</div>
|
|
127 |
</div><p>
|
|
128 |
<a class="anchor" name="4dccc204d52176bd547ab34d6858f5ba"></a><!-- doxytag: member="timer.h::getElapsedTime" ref="4dccc204d52176bd547ab34d6858f5ba" args="(void)" -->
|
|
129 |
<div class="memitem">
|
|
130 |
<div class="memproto">
|
|
131 |
<table class="memname">
|
|
132 |
<tr>
|
|
133 |
<td class="memname">TIMEVAL getElapsedTime </td>
|
|
134 |
<td>(</td>
|
|
135 |
<td class="paramtype">void </td>
|
|
136 |
<td class="paramname"> </td>
|
|
137 |
<td> ) </td>
|
|
138 |
<td width="100%"></td>
|
|
139 |
</tr>
|
|
140 |
</table>
|
|
141 |
</div>
|
|
142 |
<div class="memdoc">
|
|
143 |
|
|
144 |
<p>
|
|
145 |
|
|
146 |
<p>
|
|
147 |
Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00066">66</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>.
|
|
148 |
<p>
|
|
149 |
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>.
|
|
150 |
</div>
|
|
151 |
</div><p>
|
|
152 |
<a class="anchor" name="11c2616d78f06ed9144ef662f757b128"></a><!-- doxytag: member="timer.h::SetAlarm" ref="11c2616d78f06ed9144ef662f757b128" args="(CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)" -->
|
|
153 |
<div class="memitem">
|
|
154 |
<div class="memproto">
|
|
155 |
<table class="memname">
|
|
156 |
<tr>
|
|
157 |
<td class="memname">TIMER_HANDLE SetAlarm </td>
|
|
158 |
<td>(</td>
|
|
159 |
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
|
|
160 |
<td class="paramname"> <em>d</em>, </td>
|
|
161 |
</tr>
|
|
162 |
<tr>
|
|
163 |
<td class="paramkey"></td>
|
|
164 |
<td></td>
|
|
165 |
<td class="paramtype">UNS32 </td>
|
|
166 |
<td class="paramname"> <em>id</em>, </td>
|
|
167 |
</tr>
|
|
168 |
<tr>
|
|
169 |
<td class="paramkey"></td>
|
|
170 |
<td></td>
|
|
171 |
<td class="paramtype"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> </td>
|
|
172 |
<td class="paramname"> <em>callback</em>, </td>
|
|
173 |
</tr>
|
|
174 |
<tr>
|
|
175 |
<td class="paramkey"></td>
|
|
176 |
<td></td>
|
|
177 |
<td class="paramtype">TIMEVAL </td>
|
|
178 |
<td class="paramname"> <em>value</em>, </td>
|
|
179 |
</tr>
|
|
180 |
<tr>
|
|
181 |
<td class="paramkey"></td>
|
|
182 |
<td></td>
|
|
183 |
<td class="paramtype">TIMEVAL </td>
|
|
184 |
<td class="paramname"> <em>period</em></td><td> </td>
|
|
185 |
</tr>
|
|
186 |
<tr>
|
|
187 |
<td></td>
|
|
188 |
<td>)</td>
|
|
189 |
<td></td><td></td><td width="100%"></td>
|
|
190 |
</tr>
|
|
191 |
</table>
|
|
192 |
</div>
|
|
193 |
<div class="memdoc">
|
|
194 |
|
|
195 |
<p>
|
|
196 |
|
|
197 |
<p>
|
|
198 |
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>.
|
|
199 |
<p>
|
|
200 |
References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="timer_8c-source.html#l00033">last_timer_raw</a>, <a class="el" href="config_8h-source.html#l00032">MAX_NB_TIMER</a>, <a class="el" href="timer_8h-source.html#l00029">TIMER_HANDLE</a>, and <a class="el" href="timer_8c-source.html#l00030">timers</a>.
|
|
201 |
</div>
|
|
202 |
</div><p>
|
|
203 |
<a class="anchor" name="b8d05dee70f04b5c5190ab00e84da106"></a><!-- doxytag: member="timer.h::setTimer" ref="b8d05dee70f04b5c5190ab00e84da106" args="(TIMEVAL value)" -->
|
|
204 |
<div class="memitem">
|
|
205 |
<div class="memproto">
|
|
206 |
<table class="memname">
|
|
207 |
<tr>
|
|
208 |
<td class="memname">void setTimer </td>
|
|
209 |
<td>(</td>
|
|
210 |
<td class="paramtype">TIMEVAL </td>
|
|
211 |
<td class="paramname"> <em>value</em> </td>
|
|
212 |
<td> ) </td>
|
|
213 |
<td width="100%"></td>
|
|
214 |
</tr>
|
|
215 |
</table>
|
|
216 |
</div>
|
|
217 |
<div class="memdoc">
|
|
218 |
|
|
219 |
<p>
|
|
220 |
|
|
221 |
<p>
|
|
222 |
Definition at line <a class="el" href="timers__unix_8c-source.html#l00083">83</a> of file <a class="el" href="timers__unix_8c-source.html">timers_unix.c</a>.
|
|
223 |
<p>
|
|
224 |
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>.
|
|
225 |
</div>
|
|
226 |
</div><p>
|
|
227 |
<a class="anchor" name="9e5fb60f13faab8705899c5806754864"></a><!-- doxytag: member="timer.h::TimeDispatch" ref="9e5fb60f13faab8705899c5806754864" args="(void)" -->
|
|
228 |
<div class="memitem">
|
|
229 |
<div class="memproto">
|
|
230 |
<table class="memname">
|
|
231 |
<tr>
|
|
232 |
<td class="memname">void TimeDispatch </td>
|
|
233 |
<td>(</td>
|
|
234 |
<td class="paramtype">void </td>
|
|
235 |
<td class="paramname"> </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="timer_8c-source.html#l00104">104</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
|
|
247 |
<p>
|
|
248 |
References <a class="el" href="canOpenDriver_8c-source.html#l00066">getElapsedTime()</a>, <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_8h-source.html#l00029">TIMER_HANDLE</a>, <a class="el" href="timer_8c-source.html#l00030">timers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00150">TIMEVAL</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00153">TIMEVAL_MAX</a>, and <a class="el" href="timer_8c-source.html#l00032">total_sleep_time</a>.
|
|
249 |
</div>
|
|
250 |
</div><p>
|
|
251 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:08 2007 for CanFestival by
|
|
252 |
<a href="http://www.doxygen.org/index.html">
|
|
253 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
254 |
</body>
|
|
255 |
</html>
|