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/TestMasterMicroMod/TestMasterMicroMod.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/TestMasterMicroMod/TestMasterMicroMod.c File Reference</h1><code>#include <unistd.h></code><br> |
|
21 <code>#include <stdio.h></code><br> |
|
22 <code>#include <string.h></code><br> |
|
23 <code>#include <stdlib.h></code><br> |
|
24 <code>#include <signal.h></code><br> |
|
25 <code>#include "<a class="el" href="win32_2canfestival_8h.html">canfestival.h</a>"</code><br> |
|
26 <code>#include "<a class="el" href="TestMasterMicroMod_8h.html">TestMasterMicroMod.h</a>"</code><br> |
|
27 <code>#include "<a class="el" href="TestMasterMicroMod_2TestMaster_8h.html">TestMaster.h</a>"</code><br> |
|
28 <table border="0" cellpadding="0" cellspacing="0"> |
|
29 <tr><td></td></tr> |
|
30 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
31 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#47eb45e75b4db150fb465fcf171ef4b4">TestMaster_heartbeatError</a> (UNS8 heartbeatID)</td></tr> |
|
32 |
|
33 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#e08dfb379eebaa62524fac5bba2196d5">TestMaster_initialisation</a> ()</td></tr> |
|
34 |
|
35 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#89903ebdfe78bc9cc97e0d142da9b820">ConfigureSlaveNode</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr> |
|
36 |
|
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#030d780d48bec13bd56374f0c4be26b6">CheckSDOAndContinue</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr> |
|
38 |
|
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#8fe2bae5bb407a3a71ee5fa5ea5d617f">TestMaster_preOperational</a> ()</td></tr> |
|
40 |
|
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#81c297f2b4b9676e906286bf46541fc1">TestMaster_operational</a> ()</td></tr> |
|
42 |
|
43 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#897d573cafc13ac80abbc207c0ee41b0">TestMaster_stopped</a> ()</td></tr> |
|
44 |
|
45 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#9a8f72cab7f649481ca84ab2222dd179">TestMaster_post_sync</a> ()</td></tr> |
|
46 |
|
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#5e466aa03eae00c269cf20359a7ee074">TestMaster_post_TPDO</a> ()</td></tr> |
|
48 |
|
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#f2dc378d0481adcc49b61efb98493a9b">catch_signal</a> (int sig)</td></tr> |
|
50 |
|
51 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#97ee70a8770dc30d06c744b24eb2fcfc">help</a> ()</td></tr> |
|
52 |
|
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#8a51032f7610fe37c131376e5a392fd5">InitNodes</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
|
54 |
|
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr> |
|
56 |
|
57 <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
|
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#65effe41fa5288e7ab03a431d0c42b31">slavenodeid</a></td></tr> |
|
59 |
|
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#ef9c66a2e9f5ef9f6475282320a1ebe9">init_step</a> = 0</td></tr> |
|
61 |
|
62 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterMicroMod_8c.html#460b5e3b15bb47df23119998ea0fbd31">MasterBoard</a> = {"32", "125K"}</td></tr> |
|
63 |
|
64 </table> |
|
65 <hr><h2>Function Documentation</h2> |
|
66 <a class="anchor" name="f2dc378d0481adcc49b61efb98493a9b"></a><!-- doxytag: member="TestMasterMicroMod.c::catch_signal" ref="f2dc378d0481adcc49b61efb98493a9b" args="(int sig)" --> |
|
67 <div class="memitem"> |
|
68 <div class="memproto"> |
|
69 <table class="memname"> |
|
70 <tr> |
|
71 <td class="memname">void catch_signal </td> |
|
72 <td>(</td> |
|
73 <td class="paramtype">int </td> |
|
74 <td class="paramname"> <em>sig</em> </td> |
|
75 <td> ) </td> |
|
76 <td width="100%"></td> |
|
77 </tr> |
|
78 </table> |
|
79 </div> |
|
80 <div class="memdoc"> |
|
81 |
|
82 <p> |
|
83 |
|
84 </div> |
|
85 </div><p> |
|
86 <a class="anchor" name="030d780d48bec13bd56374f0c4be26b6"></a><!-- doxytag: member="TestMasterMicroMod.c::CheckSDOAndContinue" ref="030d780d48bec13bd56374f0c4be26b6" args="(CO_Data *d, UNS8 nodeId)" --> |
|
87 <div class="memitem"> |
|
88 <div class="memproto"> |
|
89 <table class="memname"> |
|
90 <tr> |
|
91 <td class="memname">static void CheckSDOAndContinue </td> |
|
92 <td>(</td> |
|
93 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
94 <td class="paramname"> <em>d</em>, </td> |
|
95 </tr> |
|
96 <tr> |
|
97 <td class="paramkey"></td> |
|
98 <td></td> |
|
99 <td class="paramtype">UNS8 </td> |
|
100 <td class="paramname"> <em>nodeId</em></td><td> </td> |
|
101 </tr> |
|
102 <tr> |
|
103 <td></td> |
|
104 <td>)</td> |
|
105 <td></td><td></td><td width="100%"><code> [static]</code></td> |
|
106 </tr> |
|
107 </table> |
|
108 </div> |
|
109 <div class="memdoc"> |
|
110 |
|
111 <p> |
|
112 |
|
113 </div> |
|
114 </div><p> |
|
115 <a class="anchor" name="89903ebdfe78bc9cc97e0d142da9b820"></a><!-- doxytag: member="TestMasterMicroMod.c::ConfigureSlaveNode" ref="89903ebdfe78bc9cc97e0d142da9b820" args="(CO_Data *d, UNS8 nodeId)" --> |
|
116 <div class="memitem"> |
|
117 <div class="memproto"> |
|
118 <table class="memname"> |
|
119 <tr> |
|
120 <td class="memname">static void ConfigureSlaveNode </td> |
|
121 <td>(</td> |
|
122 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
123 <td class="paramname"> <em>d</em>, </td> |
|
124 </tr> |
|
125 <tr> |
|
126 <td class="paramkey"></td> |
|
127 <td></td> |
|
128 <td class="paramtype">UNS8 </td> |
|
129 <td class="paramname"> <em>nodeId</em></td><td> </td> |
|
130 </tr> |
|
131 <tr> |
|
132 <td></td> |
|
133 <td>)</td> |
|
134 <td></td><td></td><td width="100%"><code> [static]</code></td> |
|
135 </tr> |
|
136 </table> |
|
137 </div> |
|
138 <div class="memdoc"> |
|
139 |
|
140 <p> |
|
141 |
|
142 </div> |
|
143 </div><p> |
|
144 <a class="anchor" name="97ee70a8770dc30d06c744b24eb2fcfc"></a><!-- doxytag: member="TestMasterMicroMod.c::help" ref="97ee70a8770dc30d06c744b24eb2fcfc" args="()" --> |
|
145 <div class="memitem"> |
|
146 <div class="memproto"> |
|
147 <table class="memname"> |
|
148 <tr> |
|
149 <td class="memname">void help </td> |
|
150 <td>(</td> |
|
151 <td class="paramname"> </td> |
|
152 <td> ) </td> |
|
153 <td width="100%"></td> |
|
154 </tr> |
|
155 </table> |
|
156 </div> |
|
157 <div class="memdoc"> |
|
158 |
|
159 <p> |
|
160 |
|
161 </div> |
|
162 </div><p> |
|
163 <a class="anchor" name="8a51032f7610fe37c131376e5a392fd5"></a><!-- doxytag: member="TestMasterMicroMod.c::InitNodes" ref="8a51032f7610fe37c131376e5a392fd5" args="(CO_Data *d, UNS32 id)" --> |
|
164 <div class="memitem"> |
|
165 <div class="memproto"> |
|
166 <table class="memname"> |
|
167 <tr> |
|
168 <td class="memname">void InitNodes </td> |
|
169 <td>(</td> |
|
170 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
171 <td class="paramname"> <em>d</em>, </td> |
|
172 </tr> |
|
173 <tr> |
|
174 <td class="paramkey"></td> |
|
175 <td></td> |
|
176 <td class="paramtype">UNS32 </td> |
|
177 <td class="paramname"> <em>id</em></td><td> </td> |
|
178 </tr> |
|
179 <tr> |
|
180 <td></td> |
|
181 <td>)</td> |
|
182 <td></td><td></td><td width="100%"></td> |
|
183 </tr> |
|
184 </table> |
|
185 </div> |
|
186 <div class="memdoc"> |
|
187 |
|
188 <p> |
|
189 |
|
190 </div> |
|
191 </div><p> |
|
192 <a class="anchor" name="3c04138a5bfe5d72780bb7e82a18e627"></a><!-- doxytag: member="TestMasterMicroMod.c::main" ref="3c04138a5bfe5d72780bb7e82a18e627" args="(int argc, char **argv)" --> |
|
193 <div class="memitem"> |
|
194 <div class="memproto"> |
|
195 <table class="memname"> |
|
196 <tr> |
|
197 <td class="memname">int main </td> |
|
198 <td>(</td> |
|
199 <td class="paramtype">int </td> |
|
200 <td class="paramname"> <em>argc</em>, </td> |
|
201 </tr> |
|
202 <tr> |
|
203 <td class="paramkey"></td> |
|
204 <td></td> |
|
205 <td class="paramtype">char ** </td> |
|
206 <td class="paramname"> <em>argv</em></td><td> </td> |
|
207 </tr> |
|
208 <tr> |
|
209 <td></td> |
|
210 <td>)</td> |
|
211 <td></td><td></td><td width="100%"></td> |
|
212 </tr> |
|
213 </table> |
|
214 </div> |
|
215 <div class="memdoc"> |
|
216 |
|
217 <p> |
|
218 |
|
219 </div> |
|
220 </div><p> |
|
221 <a class="anchor" name="47eb45e75b4db150fb465fcf171ef4b4"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_heartbeatError" ref="47eb45e75b4db150fb465fcf171ef4b4" args="(UNS8 heartbeatID)" --> |
|
222 <div class="memitem"> |
|
223 <div class="memproto"> |
|
224 <table class="memname"> |
|
225 <tr> |
|
226 <td class="memname">void TestMaster_heartbeatError </td> |
|
227 <td>(</td> |
|
228 <td class="paramtype">UNS8 </td> |
|
229 <td class="paramname"> <em>heartbeatID</em> </td> |
|
230 <td> ) </td> |
|
231 <td width="100%"></td> |
|
232 </tr> |
|
233 </table> |
|
234 </div> |
|
235 <div class="memdoc"> |
|
236 |
|
237 <p> |
|
238 |
|
239 </div> |
|
240 </div><p> |
|
241 <a class="anchor" name="e08dfb379eebaa62524fac5bba2196d5"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_initialisation" ref="e08dfb379eebaa62524fac5bba2196d5" args="()" --> |
|
242 <div class="memitem"> |
|
243 <div class="memproto"> |
|
244 <table class="memname"> |
|
245 <tr> |
|
246 <td class="memname">void TestMaster_initialisation </td> |
|
247 <td>(</td> |
|
248 <td class="paramtype">void </td> |
|
249 <td class="paramname"> </td> |
|
250 <td> ) </td> |
|
251 <td width="100%"></td> |
|
252 </tr> |
|
253 </table> |
|
254 </div> |
|
255 <div class="memdoc"> |
|
256 |
|
257 <p> |
|
258 |
|
259 </div> |
|
260 </div><p> |
|
261 <a class="anchor" name="81c297f2b4b9676e906286bf46541fc1"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_operational" ref="81c297f2b4b9676e906286bf46541fc1" args="()" --> |
|
262 <div class="memitem"> |
|
263 <div class="memproto"> |
|
264 <table class="memname"> |
|
265 <tr> |
|
266 <td class="memname">void TestMaster_operational </td> |
|
267 <td>(</td> |
|
268 <td class="paramtype">void </td> |
|
269 <td class="paramname"> </td> |
|
270 <td> ) </td> |
|
271 <td width="100%"></td> |
|
272 </tr> |
|
273 </table> |
|
274 </div> |
|
275 <div class="memdoc"> |
|
276 |
|
277 <p> |
|
278 |
|
279 </div> |
|
280 </div><p> |
|
281 <a class="anchor" name="9a8f72cab7f649481ca84ab2222dd179"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_post_sync" ref="9a8f72cab7f649481ca84ab2222dd179" args="()" --> |
|
282 <div class="memitem"> |
|
283 <div class="memproto"> |
|
284 <table class="memname"> |
|
285 <tr> |
|
286 <td class="memname">void TestMaster_post_sync </td> |
|
287 <td>(</td> |
|
288 <td class="paramtype">void </td> |
|
289 <td class="paramname"> </td> |
|
290 <td> ) </td> |
|
291 <td width="100%"></td> |
|
292 </tr> |
|
293 </table> |
|
294 </div> |
|
295 <div class="memdoc"> |
|
296 |
|
297 <p> |
|
298 |
|
299 </div> |
|
300 </div><p> |
|
301 <a class="anchor" name="5e466aa03eae00c269cf20359a7ee074"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_post_TPDO" ref="5e466aa03eae00c269cf20359a7ee074" args="()" --> |
|
302 <div class="memitem"> |
|
303 <div class="memproto"> |
|
304 <table class="memname"> |
|
305 <tr> |
|
306 <td class="memname">void TestMaster_post_TPDO </td> |
|
307 <td>(</td> |
|
308 <td class="paramtype">void </td> |
|
309 <td class="paramname"> </td> |
|
310 <td> ) </td> |
|
311 <td width="100%"></td> |
|
312 </tr> |
|
313 </table> |
|
314 </div> |
|
315 <div class="memdoc"> |
|
316 |
|
317 <p> |
|
318 |
|
319 </div> |
|
320 </div><p> |
|
321 <a class="anchor" name="8fe2bae5bb407a3a71ee5fa5ea5d617f"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_preOperational" ref="8fe2bae5bb407a3a71ee5fa5ea5d617f" args="()" --> |
|
322 <div class="memitem"> |
|
323 <div class="memproto"> |
|
324 <table class="memname"> |
|
325 <tr> |
|
326 <td class="memname">void TestMaster_preOperational </td> |
|
327 <td>(</td> |
|
328 <td class="paramtype">void </td> |
|
329 <td class="paramname"> </td> |
|
330 <td> ) </td> |
|
331 <td width="100%"></td> |
|
332 </tr> |
|
333 </table> |
|
334 </div> |
|
335 <div class="memdoc"> |
|
336 |
|
337 <p> |
|
338 |
|
339 </div> |
|
340 </div><p> |
|
341 <a class="anchor" name="897d573cafc13ac80abbc207c0ee41b0"></a><!-- doxytag: member="TestMasterMicroMod.c::TestMaster_stopped" ref="897d573cafc13ac80abbc207c0ee41b0" args="()" --> |
|
342 <div class="memitem"> |
|
343 <div class="memproto"> |
|
344 <table class="memname"> |
|
345 <tr> |
|
346 <td class="memname">void TestMaster_stopped </td> |
|
347 <td>(</td> |
|
348 <td class="paramtype">void </td> |
|
349 <td class="paramname"> </td> |
|
350 <td> ) </td> |
|
351 <td width="100%"></td> |
|
352 </tr> |
|
353 </table> |
|
354 </div> |
|
355 <div class="memdoc"> |
|
356 |
|
357 <p> |
|
358 |
|
359 </div> |
|
360 </div><p> |
|
361 <hr><h2>Variable Documentation</h2> |
|
362 <a class="anchor" name="ef9c66a2e9f5ef9f6475282320a1ebe9"></a><!-- doxytag: member="TestMasterMicroMod.c::init_step" ref="ef9c66a2e9f5ef9f6475282320a1ebe9" args="" --> |
|
363 <div class="memitem"> |
|
364 <div class="memproto"> |
|
365 <table class="memname"> |
|
366 <tr> |
|
367 <td class="memname"><a class="el" href="Master_8c.html#ef9c66a2e9f5ef9f6475282320a1ebe9">init_step</a> = 0<code> [static]</code> </td> |
|
368 </tr> |
|
369 </table> |
|
370 </div> |
|
371 <div class="memdoc"> |
|
372 |
|
373 <p> |
|
374 |
|
375 </div> |
|
376 </div><p> |
|
377 <a class="anchor" name="460b5e3b15bb47df23119998ea0fbd31"></a><!-- doxytag: member="TestMasterMicroMod.c::MasterBoard" ref="460b5e3b15bb47df23119998ea0fbd31" args="" --> |
|
378 <div class="memitem"> |
|
379 <div class="memproto"> |
|
380 <table class="memname"> |
|
381 <tr> |
|
382 <td class="memname"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> <a class="el" href="TestMasterSlave_8c.html#460b5e3b15bb47df23119998ea0fbd31">MasterBoard</a> = {"32", "125K"} </td> |
|
383 </tr> |
|
384 </table> |
|
385 </div> |
|
386 <div class="memdoc"> |
|
387 |
|
388 <p> |
|
389 |
|
390 </div> |
|
391 </div><p> |
|
392 <a class="anchor" name="65effe41fa5288e7ab03a431d0c42b31"></a><!-- doxytag: member="TestMasterMicroMod.c::slavenodeid" ref="65effe41fa5288e7ab03a431d0c42b31" args="" --> |
|
393 <div class="memitem"> |
|
394 <div class="memproto"> |
|
395 <table class="memname"> |
|
396 <tr> |
|
397 <td class="memname">UNS8 <a class="el" href="TestMasterMicroMod_8c.html#65effe41fa5288e7ab03a431d0c42b31">slavenodeid</a> </td> |
|
398 </tr> |
|
399 </table> |
|
400 </div> |
|
401 <div class="memdoc"> |
|
402 |
|
403 <p> |
|
404 |
|
405 </div> |
|
406 </div><p> |
|
407 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 15:50:45 2007 for CanFestival by |
|
408 <a href="http://www.doxygen.org/index.html"> |
|
409 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
410 </body> |
|
411 </html> |
|