1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
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"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/states.c File Reference</title> |
3 <title>CanFestival: src/states.c File Reference</title> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
6 </head><body> |
6 </head><body> |
7 <!-- Generated by Doxygen 1.5.1 --> |
7 <!-- Generated by Doxygen 1.5.1 --> |
8 <div class="tabs"> |
8 <div class="tabs"> |
9 <ul> |
9 <ul> |
10 <li><a href="main.html"><span>Main Page</span></a></li> |
10 <li><a href="main.html"><span>Main Page</span></a></li> |
|
11 <li><a href="annotated.html"><span>Data Structures</span></a></li> |
11 <li id="current"><a href="files.html"><span>Files</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> |
12 </ul></div> |
14 </ul></div> |
13 <div class="tabs"> |
15 <div class="tabs"> |
14 <ul> |
16 <ul> |
15 <li><a href="files.html"><span>File List</span></a></li> |
17 <li><a href="files.html"><span>File List</span></a></li> |
16 <li><a href="globals.html"><span>Globals</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
17 </ul></div> |
19 </ul></div> |
18 <h1>/home/epimerde/documents/tc11/CanFestival-3/src/states.c File Reference</h1><code>#include "states.h"</code><br> |
20 <div class="nav"> |
19 <code>#include "def.h"</code><br> |
21 <a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div> |
20 <code>#include "dcf.h"</code><br> |
22 <h1>states.c File Reference</h1><code>#include "<a class="el" href="states_8h-source.html">states.h</a>"</code><br> |
21 <code>#include "nmtSlave.h"</code><br> |
23 <code>#include "<a class="el" href="def_8h-source.html">def.h</a>"</code><br> |
22 |
24 <code>#include "<a class="el" href="dcf_8h-source.html">dcf.h</a>"</code><br> |
23 <p> |
25 <code>#include "<a class="el" href="nmtSlave_8h-source.html">nmtSlave.h</a>"</code><br> |
24 Include dependency graph for states.c:<p><center><img src="states_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/states.c_map" alt=""></center> |
26 |
|
27 <p> |
|
28 Include dependency graph for states.c:<p><center><img src="states_8c__incl.png" border="0" usemap="#src/states.c_map" alt=""></center> |
|
29 <map name="src/states.c_map"> |
|
30 <area href="states_8h.html" shape="rect" coords="164,419,239,443" alt=""> |
|
31 <area href="def_8h.html" shape="rect" coords="575,639,631,663" alt=""> |
|
32 <area href="dcf_8h.html" shape="rect" coords="175,739,228,763" alt=""> |
|
33 <area href="nmtSlave_8h.html" shape="rect" coords="152,371,251,395" alt=""> |
|
34 <area href="win32_2applicfg_8h.html" shape="rect" coords="691,392,779,416" alt=""> |
|
35 <area href="data_8h.html" shape="rect" coords="300,419,364,443" alt=""> |
|
36 <area href="can_8h.html" shape="rect" coords="574,392,632,416" alt=""> |
|
37 <area href="objdictdef_8h.html" shape="rect" coords="416,197,518,221" alt=""> |
|
38 <area href="objacces_8h.html" shape="rect" coords="420,443,514,467" alt=""> |
|
39 <area href="sdo_8h.html" shape="rect" coords="438,491,496,515" alt=""> |
|
40 <area href="pdo_8h.html" shape="rect" coords="438,589,496,613" alt=""> |
|
41 <area href="lifegrd_8h.html" shape="rect" coords="428,149,506,173" alt=""> |
|
42 <area href="sync_8h.html" shape="rect" coords="434,245,500,269" alt=""> |
|
43 <area href="nmtMaster_8h.html" shape="rect" coords="414,293,520,317" alt=""> |
|
44 <area href="config_8h.html" shape="rect" coords="698,639,772,663" alt=""> |
|
45 <area href="timer_8h.html" shape="rect" coords="568,491,638,515" alt=""> |
|
46 <area href="win32_2timerscfg_8h.html" shape="rect" coords="686,484,784,508" alt=""> |
|
47 </map> |
25 |
48 |
26 <p> |
49 <p> |
27 <a href="states_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
50 <a href="states_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
28 <tr><td></td></tr> |
51 <tr><td></td></tr> |
29 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
52 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3a7cf0c586b1e467e6215396e9a439ae">StartOrStop</a>(CommType, FuncStart, FuncStop)</td></tr> |
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3a7cf0c586b1e467e6215396e9a439ae">StartOrStop</a>(CommType, FuncStart, FuncStop)</td></tr> |
31 |
54 |
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#f4e8bc2d192090ff502229b33c24a389">None</a></td></tr> |
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#f4e8bc2d192090ff502229b33c24a389">None</a></td></tr> |
33 |
56 |
34 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
57 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
35 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03">switchCommunicationState</a> (CO_Data *d, s_state_communication *newCommunicationState)</td></tr> |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03">switchCommunicationState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structs__state__communication.html">s_state_communication</a> *newCommunicationState)</td></tr> |
36 |
59 |
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">e_nodeState </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#95d835785ba564bf6d92e3224c5e3848">getState</a> (CO_Data *d)</td></tr> |
60 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#95d835785ba564bf6d92e3224c5e3848">getState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
38 |
61 |
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3f8975650604cc23582f19a43fd4e518">canDispatch</a> (CO_Data *d, Message *m)</td></tr> |
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3f8975650604cc23582f19a43fd4e518">canDispatch</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
40 |
63 |
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#0a5004efd1dedbee82a4f21ec5c44fb5">setState</a> (CO_Data *d, e_nodeState newState)</td></tr> |
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#0a5004efd1dedbee82a4f21ec5c44fb5">setState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a> newState)</td></tr> |
42 |
65 |
43 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3020f2e5762f6e389a21382ec827b6a6">getNodeId</a> (CO_Data *d)</td></tr> |
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#3020f2e5762f6e389a21382ec827b6a6">getNodeId</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
44 |
67 |
45 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#d47a53979b9311a374d029f7923abbe1">setNodeId</a> (CO_Data *d, UNS8 nodeId)</td></tr> |
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#d47a53979b9311a374d029f7923abbe1">setNodeId</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr> |
46 |
69 |
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#1ee4d5c3d5dc6f39607d414b7bf9bcc9">_initialisation</a> ()</td></tr> |
70 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#1ee4d5c3d5dc6f39607d414b7bf9bcc9">_initialisation</a> ()</td></tr> |
48 |
71 |
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#00113c22ed3366ee552f77862241d317">_preOperational</a> ()</td></tr> |
72 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#00113c22ed3366ee552f77862241d317">_preOperational</a> ()</td></tr> |
50 |
73 |
234 <tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr> |
261 <tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr> |
235 </table> |
262 </table> |
236 </dl> |
263 </dl> |
237 |
264 |
238 <p> |
265 <p> |
239 case TIME_STAMP: |
|
240 <p> |
|
241 Definition at line <a class="el" href="states_8c-source.html#l00065">65</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
266 Definition at line <a class="el" href="states_8c-source.html#l00065">65</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
242 <p> |
267 <p> |
243 References <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>, and <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>. |
268 References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="states_8h-source.html#l00054">s_state_communication::csHeartbeat</a>, <a class="el" href="states_8h-source.html#l00055">s_state_communication::csPDO</a>, <a class="el" href="states_8h-source.html#l00051">s_state_communication::csSDO</a>, <a class="el" href="states_8h-source.html#l00053">s_state_communication::csSYNC</a>, <a class="el" href="data_8h-source.html#l00062">struct_CO_Data::CurrentCommunicationState</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00053">struct_CO_Data::iam_a_slave</a>, <a class="el" href="def_8h-source.html#l00086">NMT</a>, <a class="el" href="def_8h-source.html#l00099">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00090">PDO1rx</a>, <a class="el" href="def_8h-source.html#l00089">PDO1tx</a>, <a class="el" href="def_8h-source.html#l00092">PDO2rx</a>, <a class="el" href="def_8h-source.html#l00091">PDO2tx</a>, <a class="el" href="def_8h-source.html#l00094">PDO3rx</a>, <a class="el" href="def_8h-source.html#l00093">PDO3tx</a>, <a class="el" href="def_8h-source.html#l00096">PDO4rx</a>, <a class="el" href="def_8h-source.html#l00095">PDO4tx</a>, <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>, <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>, <a class="el" href="def_8h-source.html#l00098">SDOrx</a>, <a class="el" href="def_8h-source.html#l00097">SDOtx</a>, <a class="el" href="def_8h-source.html#l00087">SYNC</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
|
269 <p> |
|
270 Referenced by <a class="el" href="unix_8c-source.html#l00132">canReceiveLoop()</a>, and <a class="el" href="appli_8c-source.html#l00383">main()</a>. |
244 <p> |
271 <p> |
245 Here is the call graph for this function:<p><center><img src="states_8c_3f8975650604cc23582f19a43fd4e518_cgraph.png" border="0" usemap="#states_8c_3f8975650604cc23582f19a43fd4e518_cgraph_map" alt=""></center> |
272 Here is the call graph for this function:<p><center><img src="states_8c_3f8975650604cc23582f19a43fd4e518_cgraph.png" border="0" usemap="#states_8c_3f8975650604cc23582f19a43fd4e518_cgraph_map" alt=""></center> |
246 <map name="states_8c_3f8975650604cc23582f19a43fd4e518_cgraph_map"> |
273 <map name="states_8c_3f8975650604cc23582f19a43fd4e518_cgraph_map"> |
247 <area href="nmtSlave_8c.html#97d175ea168c149c99b01dcde0989743" shape="rect" coords="162,65,351,89" alt=""> |
274 <area href="nmtSlave_8c.html#97d175ea168c149c99b01dcde0989743" shape="rect" coords="162,153,351,177" alt=""> |
248 <area href="lifegrd_8c.html#b3248945e06e8b05518beddf665f174d" shape="rect" coords="171,148,342,172" alt=""> |
275 <area href="lifegrd_8c.html#b3248945e06e8b05518beddf665f174d" shape="rect" coords="171,736,342,760" alt=""> |
249 <area href="pdo_8c.html#ae7d661cd3ef7adf93a0d08fdb15b7f2" shape="rect" coords="446,269,550,293" alt=""> |
276 <area href="pdo_8c.html#ae7d661cd3ef7adf93a0d08fdb15b7f2" shape="rect" coords="446,688,550,712" alt=""> |
250 <area href="sdo_8c.html#2a93a7c780472b1d8666d89aa270f661" shape="rect" coords="203,557,310,581" alt=""> |
277 <area href="sdo_8c.html#2a93a7c780472b1d8666d89aa270f661" shape="rect" coords="203,349,310,373" alt=""> |
251 <area href="sync_8c.html#80cadcba23dc859db8a8d3f52789d6d1" shape="rect" coords="442,221,554,245" alt=""> |
278 <area href="sync_8c.html#80cadcba23dc859db8a8d3f52789d6d1" shape="rect" coords="442,880,554,904" alt=""> |
252 <area href="states_8c.html#0a5004efd1dedbee82a4f21ec5c44fb5" shape="rect" coords="459,29,536,53" alt=""> |
279 <area href="states_8c.html#0a5004efd1dedbee82a4f21ec5c44fb5" shape="rect" coords="459,5,536,29" alt=""> |
253 <area href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d" shape="rect" coords="691,53,803,77" alt=""> |
280 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="675,543,755,567" alt=""> |
254 <area href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03" shape="rect" coords="644,5,850,29" alt=""> |
281 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="402,736,594,760" alt=""> |
255 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="402,77,594,101" alt=""> |
282 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="456,784,539,808" alt=""> |
256 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="456,125,539,149" alt=""> |
283 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="456,832,539,856" alt=""> |
257 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="456,173,539,197" alt=""> |
284 <area href="pdo_8c.html#e468510c9f77f502207d961d26389918" shape="rect" coords="675,760,755,784" alt=""> |
258 <area href="pdo_8c.html#e468510c9f77f502207d961d26389918" shape="rect" coords="707,221,787,245" alt=""> |
285 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="666,688,764,712" alt=""> |
259 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="698,317,796,341" alt=""> |
286 <area href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a" shape="rect" coords="674,856,756,880" alt=""> |
260 <area href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a" shape="rect" coords="706,269,788,293" alt=""> |
287 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="666,591,764,615" alt=""> |
261 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="698,413,796,437" alt=""> |
288 <area href="sdo_8c.html#2019db2a4d17e6d29c055cbae173e2b9" shape="rect" coords="454,251,542,275" alt=""> |
262 <area href="objacces_8c.html#72f69950be4a1352fc78648c71454820" shape="rect" coords="899,413,1006,437" alt=""> |
289 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="644,276,786,300" alt=""> |
263 <area href="sdo_8c.html#2019db2a4d17e6d29c055cbae173e2b9" shape="rect" coords="454,707,542,731" alt=""> |
290 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="660,201,770,225" alt=""> |
264 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="676,657,818,681" alt=""> |
291 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="836,176,932,200" alt=""> |
265 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="692,756,802,780" alt=""> |
292 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="434,397,562,421" alt=""> |
266 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="904,805,1000,829" alt=""> |
293 <area href="sdo_8c.html#acceb714c6e457e98deb9ba164ba2a2f" shape="rect" coords="415,445,580,469" alt=""> |
267 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="911,656,994,680" alt=""> |
294 <area href="sdo_8c.html#ad6eb8be03b832ebba4dfb87aaba4065" shape="rect" coords="452,493,543,517" alt=""> |
268 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="434,805,562,829" alt=""> |
295 <area href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f" shape="rect" coords="430,640,566,664" alt=""> |
269 <area href="sdo_8c.html#acceb714c6e457e98deb9ba164ba2a2f" shape="rect" coords="415,365,580,389" alt=""> |
296 <area href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58" shape="rect" coords="428,541,567,565" alt=""> |
270 <area href="sdo_8c.html#ad6eb8be03b832ebba4dfb87aaba4065" shape="rect" coords="452,413,543,437" alt=""> |
297 <area href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694" shape="rect" coords="451,53,544,77" alt=""> |
271 <area href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f" shape="rect" coords="430,317,566,341" alt=""> |
298 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="456,349,539,373" alt=""> |
272 <area href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58" shape="rect" coords="428,461,567,485" alt=""> |
299 <area href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810" shape="rect" coords="416,101,579,125" alt=""> |
273 <area href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694" shape="rect" coords="451,509,544,533" alt=""> |
|
274 <area href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810" shape="rect" coords="416,557,579,581" alt=""> |
|
275 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="687,705,807,729" alt=""> |
|
276 </map> |
300 </map> |
277 |
301 |
278 </div> |
302 </div> |
279 </div><p> |
303 </div><p> |
280 <a class="anchor" name="3020f2e5762f6e389a21382ec827b6a6"></a><!-- doxytag: member="states.c::getNodeId" ref="3020f2e5762f6e389a21382ec827b6a6" args="(CO_Data *d)" --> |
304 <a class="anchor" name="3020f2e5762f6e389a21382ec827b6a6"></a><!-- doxytag: member="states.c::getNodeId" ref="3020f2e5762f6e389a21382ec827b6a6" args="(CO_Data *d)" --> |
365 <tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr> |
395 <tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr> |
366 </table> |
396 </table> |
367 </dl> |
397 </dl> |
368 |
398 |
369 <p> |
399 <p> |
370 cob_id_client = 0x600 + nodeId;<p> |
|
371 cob_id_server = 0x580 + nodeId;<p> |
|
372 node Id client. As we do not know the value, we put the node Id Server<p> |
|
373 *(UNS8*)d->objdict[offset].pSubindex[3].pObject = nodeId;<p> |
|
374 Initialize the server(s) SDO parameters Remember that only one SDO server is allowed, defined at index 0x1200<p> |
|
375 Initialize the client(s) SDO parameters Nothing to initialize (no default values required by the DS 401) Initialize the receive PDO communication parameters. Only for 0x1400 to 0x1403<p> |
|
376 bDeviceNodeId is defined in the object dictionary. |
|
377 <p> |
|
378 Definition at line <a class="el" href="states_8c-source.html#l00235">235</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
400 Definition at line <a class="el" href="states_8c-source.html#l00235">235</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
401 <p> |
|
402 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="objdictdef_8h-source.html#l00118">s_quick_index::PDO_RCV</a>, <a class="el" href="objdictdef_8h-source.html#l00120">s_quick_index::PDO_TRS</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="objdictdef_8h-source.html#l00116">s_quick_index::SDO_SVR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
|
403 <p> |
|
404 Referenced by <a class="el" href="TestMasterMicroMod_8c-source.html#l00382">InitNodes()</a>, <a class="el" href="appli_8c-source.html#l00170">initSensor()</a>, and <a class="el" href="main_8c-source.html#l00079">main()</a>. |
379 </div> |
405 </div> |
380 </div><p> |
406 </div><p> |
381 <a class="anchor" name="0a5004efd1dedbee82a4f21ec5c44fb5"></a><!-- doxytag: member="states.c::setState" ref="0a5004efd1dedbee82a4f21ec5c44fb5" args="(CO_Data *d, e_nodeState newState)" --> |
407 <a class="anchor" name="0a5004efd1dedbee82a4f21ec5c44fb5"></a><!-- doxytag: member="states.c::setState" ref="0a5004efd1dedbee82a4f21ec5c44fb5" args="(CO_Data *d, e_nodeState newState)" --> |
382 <div class="memitem"> |
408 <div class="memitem"> |
383 <div class="memproto"> |
409 <div class="memproto"> |
384 <table class="memname"> |
410 <table class="memname"> |
385 <tr> |
411 <tr> |
386 <td class="memname">UNS8 setState </td> |
412 <td class="memname">UNS8 setState </td> |
387 <td>(</td> |
413 <td>(</td> |
388 <td class="paramtype">CO_Data * </td> |
414 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
389 <td class="paramname"> <em>d</em>, </td> |
415 <td class="paramname"> <em>d</em>, </td> |
390 </tr> |
416 </tr> |
391 <tr> |
417 <tr> |
392 <td class="paramkey"></td> |
418 <td class="paramkey"></td> |
393 <td></td> |
419 <td></td> |
394 <td class="paramtype">e_nodeState </td> |
420 <td class="paramtype"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a> </td> |
395 <td class="paramname"> <em>newState</em></td><td> </td> |
421 <td class="paramname"> <em>newState</em></td><td> </td> |
396 </tr> |
422 </tr> |
397 <tr> |
423 <tr> |
398 <td></td> |
424 <td></td> |
399 <td>)</td> |
425 <td>)</td> |
411 </table> |
437 </table> |
412 </dl> |
438 </dl> |
413 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
439 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
414 |
440 |
415 <p> |
441 <p> |
416 This will force a second loop for the state switch<p> |
|
417 call user app related state func.<p> |
|
418 end switch case |
|
419 <p> |
|
420 Definition at line <a class="el" href="states_8c-source.html#l00138">138</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
442 Definition at line <a class="el" href="states_8c-source.html#l00138">138</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
421 <p> |
443 <p> |
422 References <a class="el" href="dcf_8c-source.html#l00087">decompo_dcf()</a>, <a class="el" href="dcf_8c-source.html#l00057">ptrTable</a>, and <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>. |
444 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="dcf_8c-source.html#l00075">decompo_dcf()</a>, <a class="el" href="data_8h-source.html#l00053">struct_CO_Data::iam_a_slave</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5">Initialisation</a>, <a class="el" href="data_8h-source.html#l00063">struct_CO_Data::initialisation</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a>, <a class="el" href="data_8h-source.html#l00065">struct_CO_Data::operational</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7">Pre_operational</a>, <a class="el" href="data_8h-source.html#l00064">struct_CO_Data::preOperational</a>, <a class="el" href="dcf_8c-source.html#l00045">ptrTable</a>, <a class="el" href="data_8h-source.html#l00091">struct_CO_Data::scanIndexOD</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec686464d049c6d45e08a294523df186ad77a75">Stopped</a>, <a class="el" href="data_8h-source.html#l00066">struct_CO_Data::stopped</a>, <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>. |
423 <p> |
445 <p> |
424 Referenced by <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>. |
446 Referenced by <a class="el" href="TestMasterMicroMod_8c-source.html#l00382">InitNodes()</a>, <a class="el" href="appli_8c-source.html#l00383">main()</a>, and <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>. |
425 <p> |
447 <p> |
426 Here is the call graph for this function:<p><center><img src="states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph.png" border="0" usemap="#states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph_map" alt=""></center> |
448 Here is the call graph for this function:<p><center><img src="states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph.png" border="0" usemap="#states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph_map" alt=""></center> |
427 <map name="states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph_map"> |
449 <map name="states_8c_0a5004efd1dedbee82a4f21ec5c44fb5_cgraph_map"> |
428 <area href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d" shape="rect" coords="181,153,293,177" alt=""> |
450 <area href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d" shape="rect" coords="181,226,293,250" alt=""> |
429 <area href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03" shape="rect" coords="135,249,340,273" alt=""> |
451 <area href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03" shape="rect" coords="135,347,340,371" alt=""> |
430 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="389,104,536,128" alt=""> |
452 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="389,152,536,176" alt=""> |
431 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="629,104,757,128" alt=""> |
453 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="629,104,757,128" alt=""> |
432 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="623,152,764,176" alt=""> |
454 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="623,6,764,30" alt=""> |
433 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="863,104,959,128" alt=""> |
455 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="863,128,959,152" alt=""> |
434 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="639,200,748,224" alt=""> |
456 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="639,200,748,224" alt=""> |
435 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="652,56,735,80" alt=""> |
457 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="652,152,735,176" alt=""> |
436 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="408,347,517,371" alt=""> |
458 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="871,250,951,274" alt=""> |
437 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="852,273,969,297" alt=""> |
459 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="408,539,517,563" alt=""> |
|
460 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="852,659,969,683" alt=""> |
438 <area href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b" shape="rect" coords="420,200,505,224" alt=""> |
461 <area href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b" shape="rect" coords="420,200,505,224" alt=""> |
439 <area href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5" shape="rect" coords="392,152,533,176" alt=""> |
462 <area href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5" shape="rect" coords="392,274,533,298" alt=""> |
440 <area href="sync_8c.html#2e0bf669f5b40dfbdda0f12a5ae3631a" shape="rect" coords="419,539,507,563" alt=""> |
463 <area href="sync_8c.html#2e0bf669f5b40dfbdda0f12a5ae3631a" shape="rect" coords="419,347,507,371" alt=""> |
441 <area href="sync_8c.html#41c47dbd59d22bf9bab6cd288cf27164" shape="rect" coords="649,635,737,659" alt=""> |
464 <area href="sync_8c.html#41c47dbd59d22bf9bab6cd288cf27164" shape="rect" coords="649,395,737,419" alt=""> |
442 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="597,395,789,419" alt=""> |
465 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="597,587,789,611" alt=""> |
443 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="585,299,801,323" alt=""> |
466 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="585,635,801,659" alt=""> |
444 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="601,347,785,371" alt=""> |
467 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="601,539,785,563" alt=""> |
445 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="587,443,800,467" alt=""> |
468 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="587,491,800,515" alt=""> |
446 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="652,491,735,515" alt=""> |
469 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="652,443,735,467" alt=""> |
447 <area href="sync_8c.html#82595787f641ab85980d83522f1158b0" shape="rect" coords="604,539,783,563" alt=""> |
470 <area href="sync_8c.html#82595787f641ab85980d83522f1158b0" shape="rect" coords="604,299,783,323" alt=""> |
448 <area href="sync_8c.html#bbcce7b549414c7bc1aa72fa66258b45" shape="rect" coords="647,587,740,611" alt=""> |
471 <area href="sync_8c.html#bbcce7b549414c7bc1aa72fa66258b45" shape="rect" coords="647,347,740,371" alt=""> |
449 </map> |
472 </map> |
450 |
473 |
451 </div> |
474 </div> |
452 </div><p> |
475 </div><p> |
453 <a class="anchor" name="915991eebf7c2ac6c929c6c9cfbd7d03"></a><!-- doxytag: member="states.c::switchCommunicationState" ref="915991eebf7c2ac6c929c6c9cfbd7d03" args="(CO_Data *d, s_state_communication *newCommunicationState)" --> |
476 <a class="anchor" name="915991eebf7c2ac6c929c6c9cfbd7d03"></a><!-- doxytag: member="states.c::switchCommunicationState" ref="915991eebf7c2ac6c929c6c9cfbd7d03" args="(CO_Data *d, s_state_communication *newCommunicationState)" --> |
484 </dl> |
507 </dl> |
485 |
508 |
486 <p> |
509 <p> |
487 Definition at line <a class="el" href="states_8c-source.html#l00120">120</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
510 Definition at line <a class="el" href="states_8c-source.html#l00120">120</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
488 <p> |
511 <p> |
489 References <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>, <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>, <a class="el" href="states_8c-source.html#l00112">None</a>, <a class="el" href="sdo_8c-source.html#l00169">resetSDO()</a>, <a class="el" href="nmtSlave_8c-source.html#l00097">slaveSendBootUp()</a>, <a class="el" href="states_8c-source.html#l00102">StartOrStop</a>, <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>, and <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>. |
512 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>, <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>, <a class="el" href="states_8c-source.html#l00112">None</a>, <a class="el" href="sdo_8c-source.html#l00169">resetSDO()</a>, <a class="el" href="nmtSlave_8c-source.html#l00097">slaveSendBootUp()</a>, <a class="el" href="states_8c-source.html#l00102">StartOrStop</a>, <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>, and <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>. |
490 <p> |
513 <p> |
491 Referenced by <a class="el" href="states_8c-source.html#l00138">setState()</a>. |
514 Referenced by <a class="el" href="states_8c-source.html#l00138">setState()</a>. |
492 <p> |
515 <p> |
493 Here is the call graph for this function:<p><center><img src="states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph.png" border="0" usemap="#states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph_map" alt=""></center> |
516 Here is the call graph for this function:<p><center><img src="states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph.png" border="0" usemap="#states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph_map" alt=""></center> |
494 <map name="states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph_map"> |
517 <map name="states_8c_915991eebf7c2ac6c929c6c9cfbd7d03_cgraph_map"> |
495 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="278,152,387,176" alt=""> |
518 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="278,203,387,227" alt=""> |
496 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="719,56,836,80" alt=""> |
519 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="719,57,836,81" alt=""> |
497 <area href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b" shape="rect" coords="290,395,375,419" alt=""> |
520 <area href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b" shape="rect" coords="290,479,375,503" alt=""> |
498 <area href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5" shape="rect" coords="262,443,403,467" alt=""> |
521 <area href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5" shape="rect" coords="262,105,403,129" alt=""> |
499 <area href="sync_8c.html#2e0bf669f5b40dfbdda0f12a5ae3631a" shape="rect" coords="288,296,376,320" alt=""> |
522 <area href="sync_8c.html#2e0bf669f5b40dfbdda0f12a5ae3631a" shape="rect" coords="288,347,376,371" alt=""> |
500 <area href="sync_8c.html#41c47dbd59d22bf9bab6cd288cf27164" shape="rect" coords="516,392,604,416" alt=""> |
523 <area href="sync_8c.html#41c47dbd59d22bf9bab6cd288cf27164" shape="rect" coords="516,443,604,467" alt=""> |
501 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="464,56,656,80" alt=""> |
524 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="464,155,656,179" alt=""> |
502 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="452,104,668,128" alt=""> |
525 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="452,107,668,131" alt=""> |
503 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="468,152,652,176" alt=""> |
526 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="468,203,652,227" alt=""> |
504 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="454,200,667,224" alt=""> |
527 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="454,299,667,323" alt=""> |
505 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="519,248,602,272" alt=""> |
528 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="519,251,602,275" alt=""> |
506 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="506,440,615,464" alt=""> |
529 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="738,129,818,153" alt=""> |
507 <area href="sync_8c.html#82595787f641ab85980d83522f1158b0" shape="rect" coords="471,296,650,320" alt=""> |
530 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="506,491,615,515" alt=""> |
508 <area href="sync_8c.html#bbcce7b549414c7bc1aa72fa66258b45" shape="rect" coords="514,344,607,368" alt=""> |
531 <area href="sync_8c.html#82595787f641ab85980d83522f1158b0" shape="rect" coords="471,395,650,419" alt=""> |
|
532 <area href="sync_8c.html#bbcce7b549414c7bc1aa72fa66258b45" shape="rect" coords="514,347,607,371" alt=""> |
509 </map> |
533 </map> |
510 |
534 |
511 </div> |
535 </div> |
512 </div><p> |
536 </div><p> |
513 <hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:10 2007 for CanFestival by |
537 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:15 2007 for CanFestival by |
514 <a href="http://www.doxygen.org/index.html"> |
538 <a href="http://www.doxygen.org/index.html"> |
515 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
539 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
516 </body> |
540 </body> |
517 </html> |
541 </html> |