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: examples/gene_SYNC_HCS12/appli.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><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>examples/gene_SYNC_HCS12/appli.c File Reference</h1><code>#include <stddef.h></code><br>
|
|
21 |
<code>#include <<a class="el" href="portsaccess_8h.html">asm-m68hc12/portsaccess.h</a>></code><br>
|
|
22 |
<code>#include <<a class="el" href="ports__def_8h.html">asm-m68hc12/ports_def.h</a>></code><br>
|
|
23 |
<code>#include <<a class="el" href="ports_8h.html">asm-m68hc12/ports.h</a>></code><br>
|
|
24 |
<code>#include <<a class="el" href="interrupt_8h.html">interrupt.h</a>></code><br>
|
|
25 |
<code>#include "../include/data.h"</code><br>
|
|
26 |
<code>#include <<a class="el" href="win32_2applicfg_8h.html">applicfg.h</a>></code><br>
|
|
27 |
<code>#include "../include/hcs12/candriver.h"</code><br>
|
|
28 |
<code>#include "../include/hcs12/canOpenDriver.h"</code><br>
|
|
29 |
<code>#include "../include/def.h"</code><br>
|
|
30 |
<code>#include "../include/can.h"</code><br>
|
|
31 |
<code>#include "../include/objdictdef.h"</code><br>
|
|
32 |
<code>#include "../include/objacces.h"</code><br>
|
|
33 |
<code>#include "../include/sdo.h"</code><br>
|
|
34 |
<code>#include "../include/pdo.h"</code><br>
|
|
35 |
<code>#include "../include/timer.h"</code><br>
|
|
36 |
<code>#include "../include/lifegrd.h"</code><br>
|
|
37 |
<code>#include "../include/sync.h"</code><br>
|
|
38 |
<code>#include "../include/nmtSlave.h"</code><br>
|
|
39 |
<code>#include "<a class="el" href="objdict_8h.html">objdict.h</a>"</code><br>
|
|
40 |
<table border="0" cellpadding="0" cellspacing="0">
|
|
41 |
<tr><td></td></tr>
|
|
42 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
|
43 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#4f52c00ab0d519e2965ebaa533975904">DEBUG_WAR_CONSOLE_ON</a></td></tr>
|
|
44 |
|
|
45 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#bb416887a32f7e4333e095356774f07f">DEBUG_ERR_CONSOLE_ON</a></td></tr>
|
|
46 |
|
|
47 |
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
|
|
48 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#a5385c49943465978358d459b4fc430f">E_CanBaudrate</a> { <a class="el" href="appli_8c.html#a5385c49943465978358d459b4fc430f8d90575842d76640697deb1398f7023c">CAN_BAUDRATE_250K</a>,
|
|
49 |
<a class="el" href="appli_8c.html#a5385c49943465978358d459b4fc430f07239165beed5e840aed12e7f46af89b">CAN_BAUDRATE_500K</a>,
|
|
50 |
<a class="el" href="appli_8c.html#a5385c49943465978358d459b4fc430ff84d248d0fb707925b35c9ec18624809">CAN_BAUDRATE_1M</a>
|
|
51 |
}</td></tr>
|
|
52 |
|
|
53 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
54 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#8d772d897083e5a5c5f41878cfea50b8">initCanopencapteur</a> (void)</td></tr>
|
|
55 |
|
|
56 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#ff8c2bab7ede63d3529f62b4fa3aca8c">initSensor</a> (void)</td></tr>
|
|
57 |
|
|
58 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#c17a18fa3b7965bf6e850effaba7179a">initPortB</a> (void)</td></tr>
|
|
59 |
|
|
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#b7c33a91e5101b8d7371482fcfd6111d">initPortH</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="appli_8c.html#07f58b5c2d6a07142f3e6e695798646b">gene_SYNC_heartbeatError</a> (UNS8 heartbeatID)</td></tr>
|
|
63 |
|
|
64 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#5249682c125c7e4ad9583bf63c20b5fa">gene_SYNC_initialisation</a> ()</td></tr>
|
|
65 |
|
|
66 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#ccd49c1b2614c38aeac93733ede6cd91">gene_SYNC_preOperational</a> ()</td></tr>
|
|
67 |
|
|
68 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#688e52d5ec8da35ad5c61b4337df495d">gene_SYNC_operational</a> ()</td></tr>
|
|
69 |
|
|
70 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#00e6a6d0f2186f329263023a7f1de155">gene_SYNC_stopped</a> ()</td></tr>
|
|
71 |
|
|
72 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#ef83014be811ae964a5ef7f0af7b46a2">main</a> (void)</td></tr>
|
|
73 |
|
|
74 |
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
75 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="structcanBusTime.html">canBusTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="appli_8c.html#43fd1d8fc333eddd19554acb6cc2baf8">CAN_Baudrates</a> []</td></tr>
|
|
76 |
|
|
77 |
</table>
|
|
78 |
<hr><h2>Define Documentation</h2>
|
|
79 |
<a class="anchor" name="bb416887a32f7e4333e095356774f07f"></a><!-- doxytag: member="appli.c::DEBUG_ERR_CONSOLE_ON" ref="bb416887a32f7e4333e095356774f07f" args="" -->
|
|
80 |
<div class="memitem">
|
|
81 |
<div class="memproto">
|
|
82 |
<table class="memname">
|
|
83 |
<tr>
|
|
84 |
<td class="memname">#define DEBUG_ERR_CONSOLE_ON </td>
|
|
85 |
</tr>
|
|
86 |
</table>
|
|
87 |
</div>
|
|
88 |
<div class="memdoc">
|
|
89 |
|
|
90 |
<p>
|
|
91 |
|
|
92 |
</div>
|
|
93 |
</div><p>
|
|
94 |
<a class="anchor" name="4f52c00ab0d519e2965ebaa533975904"></a><!-- doxytag: member="appli.c::DEBUG_WAR_CONSOLE_ON" ref="4f52c00ab0d519e2965ebaa533975904" args="" -->
|
|
95 |
<div class="memitem">
|
|
96 |
<div class="memproto">
|
|
97 |
<table class="memname">
|
|
98 |
<tr>
|
|
99 |
<td class="memname">#define DEBUG_WAR_CONSOLE_ON </td>
|
|
100 |
</tr>
|
|
101 |
</table>
|
|
102 |
</div>
|
|
103 |
<div class="memdoc">
|
|
104 |
|
|
105 |
<p>
|
|
106 |
|
|
107 |
</div>
|
|
108 |
</div><p>
|
|
109 |
<hr><h2>Enumeration Type Documentation</h2>
|
|
110 |
<a class="anchor" name="a5385c49943465978358d459b4fc430f"></a><!-- doxytag: member="appli.c::E_CanBaudrate" ref="a5385c49943465978358d459b4fc430f" args="" -->
|
|
111 |
<div class="memitem">
|
|
112 |
<div class="memproto">
|
|
113 |
<table class="memname">
|
|
114 |
<tr>
|
|
115 |
<td class="memname">enum <a class="el" href="appli_8c.html#a5385c49943465978358d459b4fc430f">E_CanBaudrate</a> </td>
|
|
116 |
</tr>
|
|
117 |
</table>
|
|
118 |
</div>
|
|
119 |
<div class="memdoc">
|
|
120 |
|
|
121 |
<p>
|
|
122 |
<dl compact><dt><b>Enumerator: </b></dt><dd>
|
|
123 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
124 |
<tr><td valign="top"><em><a class="anchor" name="a5385c49943465978358d459b4fc430f8d90575842d76640697deb1398f7023c"></a><!-- doxytag: member="CAN_BAUDRATE_250K" ref="a5385c49943465978358d459b4fc430f8d90575842d76640697deb1398f7023c" args="" -->CAN_BAUDRATE_250K</em> </td><td>
|
|
125 |
</td></tr>
|
|
126 |
<tr><td valign="top"><em><a class="anchor" name="a5385c49943465978358d459b4fc430f07239165beed5e840aed12e7f46af89b"></a><!-- doxytag: member="CAN_BAUDRATE_500K" ref="a5385c49943465978358d459b4fc430f07239165beed5e840aed12e7f46af89b" args="" -->CAN_BAUDRATE_500K</em> </td><td>
|
|
127 |
</td></tr>
|
|
128 |
<tr><td valign="top"><em><a class="anchor" name="a5385c49943465978358d459b4fc430ff84d248d0fb707925b35c9ec18624809"></a><!-- doxytag: member="CAN_BAUDRATE_1M" ref="a5385c49943465978358d459b4fc430ff84d248d0fb707925b35c9ec18624809" args="" -->CAN_BAUDRATE_1M</em> </td><td>
|
|
129 |
</td></tr>
|
|
130 |
</table>
|
|
131 |
</dl>
|
|
132 |
|
|
133 |
</div>
|
|
134 |
</div><p>
|
|
135 |
<hr><h2>Function Documentation</h2>
|
|
136 |
<a class="anchor" name="07f58b5c2d6a07142f3e6e695798646b"></a><!-- doxytag: member="appli.c::gene_SYNC_heartbeatError" ref="07f58b5c2d6a07142f3e6e695798646b" args="(UNS8 heartbeatID)" -->
|
|
137 |
<div class="memitem">
|
|
138 |
<div class="memproto">
|
|
139 |
<table class="memname">
|
|
140 |
<tr>
|
|
141 |
<td class="memname">void gene_SYNC_heartbeatError </td>
|
|
142 |
<td>(</td>
|
|
143 |
<td class="paramtype">UNS8 </td>
|
|
144 |
<td class="paramname"> <em>heartbeatID</em> </td>
|
|
145 |
<td> ) </td>
|
|
146 |
<td width="100%"></td>
|
|
147 |
</tr>
|
|
148 |
</table>
|
|
149 |
</div>
|
|
150 |
<div class="memdoc">
|
|
151 |
|
|
152 |
<p>
|
|
153 |
|
|
154 |
</div>
|
|
155 |
</div><p>
|
|
156 |
<a class="anchor" name="5249682c125c7e4ad9583bf63c20b5fa"></a><!-- doxytag: member="appli.c::gene_SYNC_initialisation" ref="5249682c125c7e4ad9583bf63c20b5fa" args="()" -->
|
|
157 |
<div class="memitem">
|
|
158 |
<div class="memproto">
|
|
159 |
<table class="memname">
|
|
160 |
<tr>
|
|
161 |
<td class="memname">void gene_SYNC_initialisation </td>
|
|
162 |
<td>(</td>
|
|
163 |
<td class="paramtype">void </td>
|
|
164 |
<td class="paramname"> </td>
|
|
165 |
<td> ) </td>
|
|
166 |
<td width="100%"></td>
|
|
167 |
</tr>
|
|
168 |
</table>
|
|
169 |
</div>
|
|
170 |
<div class="memdoc">
|
|
171 |
|
|
172 |
<p>
|
|
173 |
|
|
174 |
</div>
|
|
175 |
</div><p>
|
|
176 |
<a class="anchor" name="688e52d5ec8da35ad5c61b4337df495d"></a><!-- doxytag: member="appli.c::gene_SYNC_operational" ref="688e52d5ec8da35ad5c61b4337df495d" args="()" -->
|
|
177 |
<div class="memitem">
|
|
178 |
<div class="memproto">
|
|
179 |
<table class="memname">
|
|
180 |
<tr>
|
|
181 |
<td class="memname">void gene_SYNC_operational </td>
|
|
182 |
<td>(</td>
|
|
183 |
<td class="paramtype">void </td>
|
|
184 |
<td class="paramname"> </td>
|
|
185 |
<td> ) </td>
|
|
186 |
<td width="100%"></td>
|
|
187 |
</tr>
|
|
188 |
</table>
|
|
189 |
</div>
|
|
190 |
<div class="memdoc">
|
|
191 |
|
|
192 |
<p>
|
|
193 |
|
|
194 |
</div>
|
|
195 |
</div><p>
|
|
196 |
<a class="anchor" name="ccd49c1b2614c38aeac93733ede6cd91"></a><!-- doxytag: member="appli.c::gene_SYNC_preOperational" ref="ccd49c1b2614c38aeac93733ede6cd91" args="()" -->
|
|
197 |
<div class="memitem">
|
|
198 |
<div class="memproto">
|
|
199 |
<table class="memname">
|
|
200 |
<tr>
|
|
201 |
<td class="memname">void gene_SYNC_preOperational </td>
|
|
202 |
<td>(</td>
|
|
203 |
<td class="paramtype">void </td>
|
|
204 |
<td class="paramname"> </td>
|
|
205 |
<td> ) </td>
|
|
206 |
<td width="100%"></td>
|
|
207 |
</tr>
|
|
208 |
</table>
|
|
209 |
</div>
|
|
210 |
<div class="memdoc">
|
|
211 |
|
|
212 |
<p>
|
|
213 |
|
|
214 |
</div>
|
|
215 |
</div><p>
|
|
216 |
<a class="anchor" name="00e6a6d0f2186f329263023a7f1de155"></a><!-- doxytag: member="appli.c::gene_SYNC_stopped" ref="00e6a6d0f2186f329263023a7f1de155" args="()" -->
|
|
217 |
<div class="memitem">
|
|
218 |
<div class="memproto">
|
|
219 |
<table class="memname">
|
|
220 |
<tr>
|
|
221 |
<td class="memname">void gene_SYNC_stopped </td>
|
|
222 |
<td>(</td>
|
|
223 |
<td class="paramtype">void </td>
|
|
224 |
<td class="paramname"> </td>
|
|
225 |
<td> ) </td>
|
|
226 |
<td width="100%"></td>
|
|
227 |
</tr>
|
|
228 |
</table>
|
|
229 |
</div>
|
|
230 |
<div class="memdoc">
|
|
231 |
|
|
232 |
<p>
|
|
233 |
|
|
234 |
</div>
|
|
235 |
</div><p>
|
|
236 |
<a class="anchor" name="8d772d897083e5a5c5f41878cfea50b8"></a><!-- doxytag: member="appli.c::initCanopencapteur" ref="8d772d897083e5a5c5f41878cfea50b8" args="(void)" -->
|
|
237 |
<div class="memitem">
|
|
238 |
<div class="memproto">
|
|
239 |
<table class="memname">
|
|
240 |
<tr>
|
|
241 |
<td class="memname">void initCanopencapteur </td>
|
|
242 |
<td>(</td>
|
|
243 |
<td class="paramtype">void </td>
|
|
244 |
<td class="paramname"> </td>
|
|
245 |
<td> ) </td>
|
|
246 |
<td width="100%"></td>
|
|
247 |
</tr>
|
|
248 |
</table>
|
|
249 |
</div>
|
|
250 |
<div class="memdoc">
|
|
251 |
|
|
252 |
<p>
|
|
253 |
|
|
254 |
</div>
|
|
255 |
</div><p>
|
|
256 |
<a class="anchor" name="c17a18fa3b7965bf6e850effaba7179a"></a><!-- doxytag: member="appli.c::initPortB" ref="c17a18fa3b7965bf6e850effaba7179a" args="(void)" -->
|
|
257 |
<div class="memitem">
|
|
258 |
<div class="memproto">
|
|
259 |
<table class="memname">
|
|
260 |
<tr>
|
|
261 |
<td class="memname">void initPortB </td>
|
|
262 |
<td>(</td>
|
|
263 |
<td class="paramtype">void </td>
|
|
264 |
<td class="paramname"> </td>
|
|
265 |
<td> ) </td>
|
|
266 |
<td width="100%"></td>
|
|
267 |
</tr>
|
|
268 |
</table>
|
|
269 |
</div>
|
|
270 |
<div class="memdoc">
|
|
271 |
|
|
272 |
<p>
|
|
273 |
|
|
274 |
</div>
|
|
275 |
</div><p>
|
|
276 |
<a class="anchor" name="b7c33a91e5101b8d7371482fcfd6111d"></a><!-- doxytag: member="appli.c::initPortH" ref="b7c33a91e5101b8d7371482fcfd6111d" args="(void)" -->
|
|
277 |
<div class="memitem">
|
|
278 |
<div class="memproto">
|
|
279 |
<table class="memname">
|
|
280 |
<tr>
|
|
281 |
<td class="memname">void initPortH </td>
|
|
282 |
<td>(</td>
|
|
283 |
<td class="paramtype">void </td>
|
|
284 |
<td class="paramname"> </td>
|
|
285 |
<td> ) </td>
|
|
286 |
<td width="100%"></td>
|
|
287 |
</tr>
|
|
288 |
</table>
|
|
289 |
</div>
|
|
290 |
<div class="memdoc">
|
|
291 |
|
|
292 |
<p>
|
|
293 |
|
|
294 |
</div>
|
|
295 |
</div><p>
|
|
296 |
<a class="anchor" name="ff8c2bab7ede63d3529f62b4fa3aca8c"></a><!-- doxytag: member="appli.c::initSensor" ref="ff8c2bab7ede63d3529f62b4fa3aca8c" args="(void)" -->
|
|
297 |
<div class="memitem">
|
|
298 |
<div class="memproto">
|
|
299 |
<table class="memname">
|
|
300 |
<tr>
|
|
301 |
<td class="memname">void initSensor </td>
|
|
302 |
<td>(</td>
|
|
303 |
<td class="paramtype">void </td>
|
|
304 |
<td class="paramname"> </td>
|
|
305 |
<td> ) </td>
|
|
306 |
<td width="100%"></td>
|
|
307 |
</tr>
|
|
308 |
</table>
|
|
309 |
</div>
|
|
310 |
<div class="memdoc">
|
|
311 |
|
|
312 |
<p>
|
|
313 |
|
|
314 |
</div>
|
|
315 |
</div><p>
|
|
316 |
<a class="anchor" name="ef83014be811ae964a5ef7f0af7b46a2"></a><!-- doxytag: member="appli.c::main" ref="ef83014be811ae964a5ef7f0af7b46a2" args="(void)" -->
|
|
317 |
<div class="memitem">
|
|
318 |
<div class="memproto">
|
|
319 |
<table class="memname">
|
|
320 |
<tr>
|
|
321 |
<td class="memname">UNS8 main </td>
|
|
322 |
<td>(</td>
|
|
323 |
<td class="paramtype">void </td>
|
|
324 |
<td class="paramname"> </td>
|
|
325 |
<td> ) </td>
|
|
326 |
<td width="100%"></td>
|
|
327 |
</tr>
|
|
328 |
</table>
|
|
329 |
</div>
|
|
330 |
<div class="memdoc">
|
|
331 |
|
|
332 |
<p>
|
|
333 |
|
|
334 |
</div>
|
|
335 |
</div><p>
|
|
336 |
<hr><h2>Variable Documentation</h2>
|
|
337 |
<a class="anchor" name="43fd1d8fc333eddd19554acb6cc2baf8"></a><!-- doxytag: member="appli.c::CAN_Baudrates" ref="43fd1d8fc333eddd19554acb6cc2baf8" args="[]" -->
|
|
338 |
<div class="memitem">
|
|
339 |
<div class="memproto">
|
|
340 |
<table class="memname">
|
|
341 |
<tr>
|
|
342 |
<td class="memname">const <a class="el" href="structcanBusTime.html">canBusTime</a> <a class="el" href="appli_8c.html#43fd1d8fc333eddd19554acb6cc2baf8">CAN_Baudrates</a>[] </td>
|
|
343 |
</tr>
|
|
344 |
</table>
|
|
345 |
</div>
|
|
346 |
<div class="memdoc">
|
|
347 |
|
|
348 |
<p>
|
|
349 |
|
|
350 |
</div>
|
|
351 |
</div><p>
|
|
352 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 15:50:45 2007 for CanFestival by
|
|
353 |
<a href="http://www.doxygen.org/index.html">
|
|
354 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
355 |
</body>
|
|
356 |
</html>
|