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/sdo.c File Reference</title> |
3 <title>CanFestival: src/sdo.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/sdo.c File Reference</h1><code>#include "objacces.h"</code><br> |
20 <div class="nav"> |
19 <code>#include "sdo.h"</code><br> |
21 <a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div> |
20 <code>#include "canfestival.h"</code><br> |
22 <h1>sdo.c File Reference</h1><code>#include "<a class="el" href="objacces_8h-source.html">objacces.h</a>"</code><br> |
21 |
23 <code>#include "<a class="el" href="sdo_8h-source.html">sdo.h</a>"</code><br> |
22 <p> |
24 <code>#include "<a class="el" href="win32_2canfestival_8h-source.html">canfestival.h</a>"</code><br> |
23 Include dependency graph for sdo.c:<p><center><img src="sdo_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/sdo.c_map" alt=""></center> |
25 |
|
26 <p> |
|
27 Include dependency graph for sdo.c:<p><center><img src="sdo_8c__incl.png" border="0" usemap="#src/sdo.c_map" alt=""></center> |
|
28 <map name="src/sdo.c_map"> |
|
29 <area href="objacces_8h.html" shape="rect" coords="144,299,238,323" alt=""> |
|
30 <area href="sdo_8h.html" shape="rect" coords="470,496,528,520" alt=""> |
|
31 <area href="win32_2canfestival_8h.html" shape="rect" coords="138,569,244,593" alt=""> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="723,399,811,423" alt=""> |
|
33 <area href="data_8h.html" shape="rect" coords="314,299,378,323" alt=""> |
|
34 <area href="def_8h.html" shape="rect" coords="607,112,663,136" alt=""> |
|
35 <area href="can_8h.html" shape="rect" coords="470,544,528,568" alt=""> |
|
36 <area href="objdictdef_8h.html" shape="rect" coords="448,299,550,323" alt=""> |
|
37 <area href="pdo_8h.html" shape="rect" coords="470,203,528,227" alt=""> |
|
38 <area href="states_8h.html" shape="rect" coords="462,397,536,421" alt=""> |
|
39 <area href="lifegrd_8h.html" shape="rect" coords="460,251,538,275" alt=""> |
|
40 <area href="sync_8h.html" shape="rect" coords="466,107,532,131" alt=""> |
|
41 <area href="nmtMaster_8h.html" shape="rect" coords="446,155,552,179" alt=""> |
|
42 <area href="config_8h.html" shape="rect" coords="730,112,804,136" alt=""> |
|
43 <area href="timer_8h.html" shape="rect" coords="600,471,670,495" alt=""> |
|
44 <area href="win32_2timerscfg_8h.html" shape="rect" coords="718,545,816,569" alt=""> |
|
45 <area href="can__driver_8h.html" shape="rect" coords="294,569,398,593" alt=""> |
|
46 </map> |
24 |
47 |
25 <p> |
48 <p> |
26 <a href="sdo_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
49 <a href="sdo_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
27 <tr><td></td></tr> |
50 <tr><td></td></tr> |
28 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
51 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
53 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#c1e9eb7a28803b958d298b6997cc60ca">StartSDO_TIMER</a>(id)</td></tr> |
76 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#c1e9eb7a28803b958d298b6997cc60ca">StartSDO_TIMER</a>(id)</td></tr> |
54 |
77 |
55 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b3938a9884014e96cafc42aeee743c0f">RestartSDO_TIMER</a>(id)</td></tr> |
78 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b3938a9884014e96cafc42aeee743c0f">RestartSDO_TIMER</a>(id)</td></tr> |
56 |
79 |
57 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
80 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">INLINE UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#3c07605ffe3ea197aa36e583ef87a20a">_writeNetworkDict</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize)</td></tr> |
81 <tr><td class="memItemLeft" nowrap align="right" valign="top">INLINE UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#3c07605ffe3ea197aa36e583ef87a20a">_writeNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback, UNS8 endianize)</td></tr> |
59 |
82 |
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">INLINE UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270">_readNetworkDict</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback)</td></tr> |
83 <tr><td class="memItemLeft" nowrap align="right" valign="top">INLINE UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270">_readNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback)</td></tr> |
61 |
84 |
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#9309025e29b59e09026abcd3b45a5b61">SDOTimeoutAlarm</a> (CO_Data *d, UNS32 id)</td></tr> |
85 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#9309025e29b59e09026abcd3b45a5b61">SDOTimeoutAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
63 |
86 |
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b">resetSDO</a> (CO_Data *d)</td></tr> |
87 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b">resetSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
65 |
88 |
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58">SDOlineToObjdict</a> (CO_Data *d, UNS8 line)</td></tr> |
89 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58">SDOlineToObjdict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr> |
67 |
90 |
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f">objdictToSDOline</a> (CO_Data *d, UNS8 line)</td></tr> |
91 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f">objdictToSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr> |
69 |
92 |
70 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#ad6eb8be03b832ebba4dfb87aaba4065">lineToSDO</a> (CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr> |
93 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#ad6eb8be03b832ebba4dfb87aaba4065">lineToSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr> |
71 |
94 |
72 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694">SDOtoLine</a> (CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr> |
95 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694">SDOtoLine</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr> |
73 |
96 |
74 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2019db2a4d17e6d29c055cbae173e2b9">failedSDO</a> (CO_Data *d, UNS8 nodeId, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr> |
97 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2019db2a4d17e6d29c055cbae173e2b9">failedSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr> |
75 |
98 |
76 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481">resetSDOline</a> (CO_Data *d, UNS8 line)</td></tr> |
99 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481">resetSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr> |
77 |
100 |
78 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d">initSDOline</a> (CO_Data *d, UNS8 line, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 state)</td></tr> |
101 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d">initSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 state)</td></tr> |
79 |
102 |
80 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#58d1f9691977617601beb9e5b4123252">getSDOfreeLine</a> (CO_Data *d, UNS8 whoami, UNS8 *line)</td></tr> |
103 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#58d1f9691977617601beb9e5b4123252">getSDOfreeLine</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, UNS8 *line)</td></tr> |
81 |
104 |
82 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f">getSDOlineOnUse</a> (CO_Data *d, UNS8 nodeId, UNS8 whoami, UNS8 *line)</td></tr> |
105 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f">getSDOlineOnUse</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami, UNS8 *line)</td></tr> |
83 |
106 |
84 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#555a772d3a88a29c495f33513f8b2d58">closeSDOtransfer</a> (CO_Data *d, UNS8 nodeId, UNS8 whoami)</td></tr> |
107 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#555a772d3a88a29c495f33513f8b2d58">closeSDOtransfer</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami)</td></tr> |
85 |
108 |
86 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#acceb714c6e457e98deb9ba164ba2a2f">getSDOlineRestBytes</a> (CO_Data *d, UNS8 line, UNS8 *nbBytes)</td></tr> |
109 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#acceb714c6e457e98deb9ba164ba2a2f">getSDOlineRestBytes</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 *nbBytes)</td></tr> |
87 |
110 |
88 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810">setSDOlineRestBytes</a> (CO_Data *d, UNS8 line, UNS8 nbBytes)</td></tr> |
111 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810">setSDOlineRestBytes</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes)</td></tr> |
89 |
112 |
90 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d">sendSDO</a> (CO_Data *d, UNS8 whoami, s_SDO sdo)</td></tr> |
113 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d">sendSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, <a class="el" href="structstruct__s__SDO.html">s_SDO</a> sdo)</td></tr> |
91 |
114 |
92 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c">sendSDOabort</a> (CO_Data *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr> |
115 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c">sendSDOabort</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr> |
93 |
116 |
94 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2a93a7c780472b1d8666d89aa270f661">proceedSDO</a> (CO_Data *d, Message *m)</td></tr> |
117 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#2a93a7c780472b1d8666d89aa270f661">proceedSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
95 |
118 |
96 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#bc20ed246e00053dcf71faa8f45ee39c">writeNetworkDict</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data)</td></tr> |
119 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#bc20ed246e00053dcf71faa8f45ee39c">writeNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data)</td></tr> |
97 |
120 |
98 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#f4ec05293fb8971a1b282994498ed4f5">writeNetworkDictCallBack</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback)</td></tr> |
121 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#f4ec05293fb8971a1b282994498ed4f5">writeNetworkDictCallBack</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback)</td></tr> |
99 |
122 |
100 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#0e102a0835e4115920cd406e80a8d135">readNetworkDict</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType)</td></tr> |
123 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#0e102a0835e4115920cd406e80a8d135">readNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType)</td></tr> |
101 |
124 |
102 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#542a5cdd20c00aa130a39fe68295e769">readNetworkDictCallback</a> (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback)</td></tr> |
125 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#542a5cdd20c00aa130a39fe68295e769">readNetworkDictCallback</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback)</td></tr> |
103 |
126 |
104 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#05b0c8eee1faee3c7a2f6e2ba3a16533">getReadResultNetworkDict</a> (CO_Data *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)</td></tr> |
127 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#05b0c8eee1faee3c7a2f6e2ba3a16533">getReadResultNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)</td></tr> |
105 |
128 |
106 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#8671e306873f19362c60bb50ab930d1d">getWriteResultNetworkDict</a> (CO_Data *d, UNS8 nodeId, UNS32 *abortCode)</td></tr> |
129 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8c.html#8671e306873f19362c60bb50ab930d1d">getWriteResultNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS32 *abortCode)</td></tr> |
107 |
130 |
108 </table> |
131 </table> |
109 <hr><a name="_details"></a><h2>Detailed Description</h2> |
132 <hr><a name="_details"></a><h2>Detailed Description</h2> |
110 <dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl> |
133 <dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl> |
111 <dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl> |
134 <dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl> |
505 </table> |
528 </table> |
506 </dl> |
529 </dl> |
507 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
530 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
508 |
531 |
509 <p> |
532 <p> |
510 Verify that there is no SDO communication yet.<p> |
|
511 Taking the line ...<p> |
|
512 Check which SDO to use to communicate with the node<p> |
|
513 looking for the nodeId server<p> |
|
514 Send the SDO to the server. Initiate upload, cs=2. |
|
515 <p> |
|
516 Definition at line <a class="el" href="sdo_8c-source.html#l01406">1406</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
533 Definition at line <a class="el" href="sdo_8c-source.html#l01406">1406</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
517 <p> |
534 <p> |
518 References <a class="el" href="sdo_8c-source.html#l00388">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00359">initSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, and <a class="el" href="sdo_8c-source.html#l00498">sendSDO()</a>. |
535 References <a class="el" href="sdo_8h-source.html#l00082">struct_s_SDO::body</a>, <a class="el" href="objdictdef_8h-source.html#l00108">td_indextable::bSubCount</a>, <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00076">BODY::data</a>, <a class="el" href="sdo_8h-source.html#l00057">struct_s_transfer::dataType</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="sdo_8c-source.html#l00388">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00359">initSDOline()</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00081">struct_s_SDO::nodeId</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</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="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="objdictdef_8h-source.html#l00117">s_quick_index::SDO_CLT</a>, <a class="el" href="def_8h-source.html#l00075">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="sdo_8c-source.html#l00498">sendSDO()</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</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>. |
519 <p> |
536 <p> |
520 Referenced by <a class="el" href="sdo_8c-source.html#l01499">readNetworkDict()</a>, and <a class="el" href="sdo_8c-source.html#l01516">readNetworkDictCallback()</a>. |
537 Referenced by <a class="el" href="sdo_8c-source.html#l01499">readNetworkDict()</a>, and <a class="el" href="sdo_8c-source.html#l01516">readNetworkDictCallback()</a>. |
521 <p> |
538 <p> |
522 Here is the call graph for this function:<p><center><img src="sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph.png" border="0" usemap="#sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph_map" alt=""></center> |
539 Here is the call graph for this function:<p><center><img src="sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph.png" border="0" usemap="#sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph_map" alt=""></center> |
523 <map name="sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph_map"> |
540 <map name="sdo_8c_4bb4b3cd35af7e7580cffde23e9d3270_cgraph_map"> |
524 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="205,5,333,29" alt=""> |
541 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="206,5,334,29" alt=""> |
525 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="199,53,340,77" alt=""> |
542 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="199,53,340,77" alt=""> |
526 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="391,128,487,152" alt=""> |
543 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="391,128,487,152" alt=""> |
527 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="215,152,324,176" alt=""> |
544 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="215,152,324,176" alt=""> |
528 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="228,200,311,224" alt=""> |
545 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="228,200,311,224" alt=""> |
|
546 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="399,200,479,224" alt=""> |
|
547 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="538,200,668,224" alt=""> |
529 </map> |
548 </map> |
530 |
549 |
531 </div> |
550 </div> |
532 </div><p> |
551 </div><p> |
533 <a class="anchor" name="3c07605ffe3ea197aa36e583ef87a20a"></a><!-- doxytag: member="sdo.c::_writeNetworkDict" ref="3c07605ffe3ea197aa36e583ef87a20a" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize)" --> |
552 <a class="anchor" name="3c07605ffe3ea197aa36e583ef87a20a"></a><!-- doxytag: member="sdo.c::_writeNetworkDict" ref="3c07605ffe3ea197aa36e583ef87a20a" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize)" --> |
734 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
755 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
735 |
756 |
736 <p> |
757 <p> |
737 Definition at line <a class="el" href="sdo_8c-source.html#l00307">307</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
758 Definition at line <a class="el" href="sdo_8c-source.html#l00307">307</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
738 <p> |
759 <p> |
739 References <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>, and <a class="el" href="sdo_8c-source.html#l00152">StopSDO_TIMER</a>. |
760 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8c-source.html#l00152">StopSDO_TIMER</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
740 <p> |
761 <p> |
741 Referenced by <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>. |
762 Referenced by <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>. |
742 <p> |
763 <p> |
743 Here is the call graph for this function:<p><center><img src="sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph.png" border="0" usemap="#sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph_map" alt=""></center> |
764 Here is the call graph for this function:<p><center><img src="sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph.png" border="0" usemap="#sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph_map" alt=""></center> |
744 <map name="sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph_map"> |
765 <map name="sdo_8c_2019db2a4d17e6d29c055cbae173e2b9_cgraph_map"> |
745 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="145,6,287,30" alt=""> |
766 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="145,6,287,30" alt=""> |
746 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="161,54,271,78" alt=""> |
767 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="161,54,271,78" alt=""> |
747 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="156,102,276,126" alt=""> |
768 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="156,102,276,126" alt=""> |
748 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="337,54,433,78" alt=""> |
769 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="337,54,433,78" alt=""> |
749 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="344,102,427,126" alt=""> |
770 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="344,102,427,126" alt=""> |
|
771 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="484,102,564,126" alt=""> |
|
772 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="615,102,745,126" alt=""> |
750 </map> |
773 </map> |
751 |
774 |
752 </div> |
775 </div> |
753 </div><p> |
776 </div><p> |
754 <a class="anchor" name="05b0c8eee1faee3c7a2f6e2ba3a16533"></a><!-- doxytag: member="sdo.c::getReadResultNetworkDict" ref="05b0c8eee1faee3c7a2f6e2ba3a16533" args="(CO_Data *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)" --> |
777 <a class="anchor" name="05b0c8eee1faee3c7a2f6e2ba3a16533"></a><!-- doxytag: member="sdo.c::getReadResultNetworkDict" ref="05b0c8eee1faee3c7a2f6e2ba3a16533" args="(CO_Data *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)" --> |
917 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
941 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
918 |
942 |
919 <p> |
943 <p> |
920 Definition at line <a class="el" href="sdo_8c-source.html#l00414">414</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
944 Definition at line <a class="el" href="sdo_8c-source.html#l00414">414</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
921 <p> |
945 <p> |
|
946 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00039">struct_s_transfer::nodeId</a>, <a class="el" href="config_8h-source.html#l00029">SDO_MAX_SIMULTANEOUS_TRANSFERTS</a>, <a class="el" href="def_8h-source.html#l00070">SDO_RESET</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="sdo_8h-source.html#l00041">struct_s_transfer::whoami</a>. |
|
947 <p> |
922 Referenced by <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l00439">closeSDOtransfer()</a>, <a class="el" href="sdo_8c-source.html#l00307">failedSDO()</a>, <a class="el" href="sdo_8c-source.html#l01532">getReadResultNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01573">getWriteResultNetworkDict()</a>, and <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>. |
948 Referenced by <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l00439">closeSDOtransfer()</a>, <a class="el" href="sdo_8c-source.html#l00307">failedSDO()</a>, <a class="el" href="sdo_8c-source.html#l01532">getReadResultNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01573">getWriteResultNetworkDict()</a>, and <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>. |
923 </div> |
949 </div> |
924 </div><p> |
950 </div><p> |
925 <a class="anchor" name="acceb714c6e457e98deb9ba164ba2a2f"></a><!-- doxytag: member="sdo.c::getSDOlineRestBytes" ref="acceb714c6e457e98deb9ba164ba2a2f" args="(CO_Data *d, UNS8 line, UNS8 *nbBytes)" --> |
951 <a class="anchor" name="acceb714c6e457e98deb9ba164ba2a2f"></a><!-- doxytag: member="sdo.c::getSDOlineRestBytes" ref="acceb714c6e457e98deb9ba164ba2a2f" args="(CO_Data *d, UNS8 line, UNS8 *nbBytes)" --> |
926 <div class="memitem"> |
952 <div class="memitem"> |
927 <div class="memproto"> |
953 <div class="memproto"> |
928 <table class="memname"> |
954 <table class="memname"> |
929 <tr> |
955 <tr> |
930 <td class="memname">UNS8 getSDOlineRestBytes </td> |
956 <td class="memname">UNS8 getSDOlineRestBytes </td> |
931 <td>(</td> |
957 <td>(</td> |
932 <td class="paramtype">CO_Data * </td> |
958 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
933 <td class="paramname"> <em>d</em>, </td> |
959 <td class="paramname"> <em>d</em>, </td> |
934 </tr> |
960 </tr> |
935 <tr> |
961 <tr> |
936 <td class="paramkey"></td> |
962 <td class="paramkey"></td> |
937 <td></td> |
963 <td></td> |
1231 </table> |
1259 </table> |
1232 </dl> |
1260 </dl> |
1233 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1261 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1234 |
1262 |
1235 <p> |
1263 <p> |
1236 received or to be transmited.<p> |
|
1237 The node from which the SDO is received<p> |
|
1238 node id in 32 bits, for temporary use<p> |
|
1239 SDO_SERVER or SDO_CLIENT.<p> |
|
1240 while reading or writing in the local object dictionary.<p> |
|
1241 SDO to transmit<p> |
|
1242 Looking for the cobId in the object dictionary.<p> |
|
1243 Am-I a server ?<p> |
|
1244 In case of server, the node id of the client may be unknown. So we put the index minus offset<p> |
|
1245 0x1200 where the cobid received is defined.<p> |
|
1246 end while<p> |
|
1247 Am-I client ?<p> |
|
1248 a) Looking for the cobid received.<p> |
|
1249 b) cobid found, so reading the node id of the server.<p> |
|
1250 This SDO was not for us !<p> |
|
1251 Test if the size of the SDO is ok<p> |
|
1252 Testing the command specifier<p> |
|
1253 Allowed : cs = 0, 1, 2, 3, 4. (= all except those for block tranfert).<p> |
|
1254 cs = other : Not allowed -> abort.<p> |
|
1255 I am SERVER<p> |
|
1256 Receiving a download segment data.<p> |
|
1257 A SDO transfert should have been yet initiated.<p> |
|
1258 Reset the wathdog<p> |
|
1259 Toggle test.<p> |
|
1260 Nb of data to be downloaded<p> |
|
1261 Store the data in the transfert structure.<p> |
|
1262 Sending the SDO response, CS = 1<p> |
|
1263 The node id of the server, (here it is the sender).<p> |
|
1264 Inverting the toggle for the next segment.<p> |
|
1265 If it was the last segment,<p> |
|
1266 Transfering line data to object dictionary.<p> |
|
1267 The code does not use the "d" of initiate frame. So it is safe if e=s=0<p> |
|
1268 Release of the line<p> |
|
1269 I am CLIENT<p> |
|
1270 It is a request for a previous upload segment. We should find a line opened for this.<p> |
|
1271 Reset the wathdog<p> |
|
1272 test of the toggle;<p> |
|
1273 nb of data to be uploaded<p> |
|
1274 Storing the data in the line structure.<p> |
|
1275 Inverting the toggle for the next segment.<p> |
|
1276 If it was the last segment,<p> |
|
1277 Put in state finished<p> |
|
1278 The code is safe for the case e=s=0 in initiate frame.<p> |
|
1279 more segments to receive<p> |
|
1280 Sending the request for the next segment.<p> |
|
1281 I am SERVER<p> |
|
1282 Receive of an initiate download<p> |
|
1283 Search if a SDO transfert have been yet initiated<p> |
|
1284 No line on use. Great !<p> |
|
1285 Try to open a new line.<p> |
|
1286 If SDO expedited<p> |
|
1287 nb of data to be downloaded<p> |
|
1288 Storing the data in the line structure.<p> |
|
1289 SDO expedited -> transfert finished. Data can be stored in the dictionary.<p> |
|
1290 The line will be reseted when it is downloading in the dictionary.<p> |
|
1291 Transfering line data to object dictionary.<p> |
|
1292 Release of the line.<p> |
|
1293 So, if it is not an expedited transfert<p> |
|
1294 TODO : if e and s = 0, not reading m->data[4] but put nbBytes = 0<p> |
|
1295 Transfert limited to 255 bytes.<p> |
|
1296 Sending a SDO, cs=3<p> |
|
1297 The node id of the server, (here it is the sender).<p> |
|
1298 I am CLIENT<p> |
|
1299 It is a response for a previous download segment. We should find a line opened for this.<p> |
|
1300 Reset the wathdog<p> |
|
1301 test of the toggle;<p> |
|
1302 End transmission or downloading next segment. We need to know if it will be the last one.<p> |
|
1303 At least one transfer to send.<p> |
|
1304 several segments to download.<p> |
|
1305 code to send the next segment. (cs = 0; c = 0)<p> |
|
1306 Last segment.<p> |
|
1307 code to send the last segment. (cs = 0; c = 1)<p> |
|
1308 end if I am a CLIENT<p> |
|
1309 I am SERVER<p> |
|
1310 Receive of an initiate upload.<p> |
|
1311 Search if a SDO transfert have been yet initiated<p> |
|
1312 No line on use. Great !<p> |
|
1313 Try to open a new line.<p> |
|
1314 Transfer data from dictionary to the line structure.<p> |
|
1315 Preparing the response.<p> |
|
1316 Nb bytes to transfer ?<p> |
|
1317 The server node Id;<p> |
1264 The server node Id;<p> |
1318 normal transfert. (segmented).<p> |
1265 The server node Id; |
1319 code to send the initiate upload response. (cs = 2)<p> |
|
1320 It takes too much memory to upgrate to 2^32 because the size of data is also coded<p> |
|
1321 in the object dictionary, at every index and subindex.<p> |
|
1322 Expedited upload. (cs = 2 ; e = 1)<p> |
|
1323 Release the line.<p> |
|
1324 end if I am SERVER<p> |
|
1325 I am CLIENT<p> |
|
1326 It is the response for the previous initiate upload request.<p> |
|
1327 We should find a line opened for this.<p> |
|
1328 Reset the wathdog<p> |
|
1329 nb of data to be uploaded<p> |
|
1330 Storing the data in the line structure.<p> |
|
1331 SDO expedited -> transfert finished. data are available via <a class="el" href="sdo_8c.html#05b0c8eee1faee3c7a2f6e2ba3a16533">getReadResultNetworkDict()</a>.<p> |
|
1332 So, if it is not an expedited transfert<p> |
|
1333 Storing the nb of data to receive.<p> |
|
1334 Remember the limitation to 255 bytes to transfert<p> |
|
1335 Requesting next segment. (cs = 3)<p> |
|
1336 End if CLIENT<p> |
|
1337 I am SERVER<p> |
|
1338 Receiving a upload segment.<p> |
|
1339 A SDO transfert should have been yet initiated.<p> |
|
1340 Reset the wathdog<p> |
|
1341 Toggle test.<p> |
|
1342 Uploading next segment. We need to know if it will be the last one.<p> |
|
1343 The segment to transfer is not the last one.<p> |
|
1344 code to send the next segment. (cs = 0; c = 0)<p> |
|
1345 Inverting the toggle for the next tranfert.<p> |
|
1346 Last segment.<p> |
|
1347 code to send the last segment. (cs = 0; c = 1)<p> |
|
1348 The server node Id;<p> |
|
1349 Release the line<p> |
|
1350 I am CLIENT<p> |
|
1351 It is the response for the previous initiate download request.<p> |
|
1352 We should find a line opened for this.<p> |
|
1353 Reset the watchdog<p> |
|
1354 more than one request to send<p> |
|
1355 code to send the next segment. (cs = 0; c = 0)<p> |
|
1356 The server node Id;<p> |
|
1357 Last segment.<p> |
|
1358 code to send the last segment. (cs = 0; c = 1)<p> |
|
1359 The server node Id;<p> |
|
1360 Received SDO abort.<p> |
|
1361 Looking for the line concerned.<p> |
|
1362 Tips : The end user has no way to know that the server node has received an abort SDO.<p> |
|
1363 Its is ok, I think.<p> |
|
1364 If I am CLIENT<p> |
|
1365 The line *must* be released by the core program.<p> |
|
1366 Error : Unknown cs |
|
1367 <p> |
1266 <p> |
1368 Definition at line <a class="el" href="sdo_8c-source.html#l00608">608</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1267 Definition at line <a class="el" href="sdo_8c-source.html#l00608">608</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1369 <p> |
1268 <p> |
1370 References <a class="el" href="sdo_8c-source.html#l00307">failedSDO()</a>, <a class="el" href="sdo_8c-source.html#l00109">getSDOc</a>, <a class="el" href="sdo_8c-source.html#l00089">getSDOcs</a>, <a class="el" href="sdo_8c-source.html#l00101">getSDOe</a>, <a class="el" href="sdo_8c-source.html#l00388">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00117">getSDOindex</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00461">getSDOlineRestBytes()</a>, <a class="el" href="sdo_8c-source.html#l00093">getSDOn2</a>, <a class="el" href="sdo_8c-source.html#l00097">getSDOn3</a>, <a class="el" href="sdo_8c-source.html#l00105">getSDOs</a>, <a class="el" href="sdo_8c-source.html#l00121">getSDOsubIndex</a>, <a class="el" href="sdo_8c-source.html#l00113">getSDOt</a>, <a class="el" href="sdo_8c-source.html#l00359">initSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00250">lineToSDO()</a>, <a class="el" href="sdo_8c-source.html#l00209">objdictToSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00160">RestartSDO_TIMER</a>, <a class="el" href="sdo_8c-source.html#l00186">SDOlineToObjdict()</a>, <a class="el" href="sdo_8c-source.html#l00279">SDOtoLine()</a>, <a class="el" href="sdo_8c-source.html#l00498">sendSDO()</a>, <a class="el" href="sdo_8c-source.html#l00479">setSDOlineRestBytes()</a>, and <a class="el" href="sdo_8c-source.html#l00152">StopSDO_TIMER</a>. |
1269 References <a class="el" href="sdo_8h-source.html#l00044">struct_s_transfer::abortCode</a>, <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="sdo_8h-source.html#l00082">struct_s_SDO::body</a>, <a class="el" href="objdictdef_8h-source.html#l00108">td_indextable::bSubCount</a>, <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</a>, <a class="el" href="sdo_8h-source.html#l00049">struct_s_transfer::count</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="sdo_8h-source.html#l00076">BODY::data</a>, <a class="el" href="sdo_8c-source.html#l00307">failedSDO()</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="sdo_8c-source.html#l00109">getSDOc</a>, <a class="el" href="sdo_8c-source.html#l00089">getSDOcs</a>, <a class="el" href="sdo_8c-source.html#l00101">getSDOe</a>, <a class="el" href="sdo_8c-source.html#l00388">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00117">getSDOindex</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00461">getSDOlineRestBytes()</a>, <a class="el" href="sdo_8c-source.html#l00093">getSDOn2</a>, <a class="el" href="sdo_8c-source.html#l00097">getSDOn3</a>, <a class="el" href="sdo_8c-source.html#l00105">getSDOs</a>, <a class="el" href="sdo_8c-source.html#l00121">getSDOsubIndex</a>, <a class="el" href="sdo_8c-source.html#l00113">getSDOt</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="sdo_8c-source.html#l00359">initSDOline()</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="sdo_8c-source.html#l00250">lineToSDO()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00081">struct_s_SDO::nodeId</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="sdo_8c-source.html#l00209">objdictToSDOline()</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="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00160">RestartSDO_TIMER</a>, <a class="el" href="def_8h-source.html#l00072">SDO_ABORTED_RCV</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="objdictdef_8h-source.html#l00117">s_quick_index::SDO_CLT</a>, <a class="el" href="def_8h-source.html#l00074">SDO_DOWNLOAD_IN_PROGRESS</a>, <a class="el" href="def_8h-source.html#l00071">SDO_FINISHED</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="objdictdef_8h-source.html#l00116">s_quick_index::SDO_SVR</a>, <a class="el" href="def_8h-source.html#l00080">SDO_UNKNOWN</a>, <a class="el" href="def_8h-source.html#l00075">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="def_8h-source.html#l00045">SDOABT_GENERAL_ERROR</a>, <a class="el" href="def_8h-source.html#l00046">SDOABT_LOCAL_CTRL_ERROR</a>, <a class="el" href="def_8h-source.html#l00042">SDOABT_TOGGLE_NOT_ALTERNED</a>, <a class="el" href="sdo_8c-source.html#l00186">SDOlineToObjdict()</a>, <a class="el" href="sdo_8c-source.html#l00279">SDOtoLine()</a>, <a class="el" href="sdo_8c-source.html#l00498">sendSDO()</a>, <a class="el" href="sdo_8c-source.html#l00479">setSDOlineRestBytes()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8c-source.html#l00152">StopSDO_TIMER</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="sdo_8h-source.html#l00043">struct_s_transfer::toggle</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</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>. |
1371 <p> |
1270 <p> |
1372 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
1271 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
1373 <p> |
1272 <p> |
1374 Here is the call graph for this function:<p><center><img src="sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph.png" border="0" usemap="#sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph_map" alt=""></center> |
1273 Here is the call graph for this function:<p><center><img src="sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph.png" border="0" usemap="#sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph_map" alt=""></center> |
1375 <map name="sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph_map"> |
1274 <map name="sdo_8c_2a93a7c780472b1d8666d89aa270f661_cgraph_map"> |
1384 <area href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f" shape="rect" coords="175,434,311,458" alt=""> |
1283 <area href="sdo_8c.html#29427a80fd1aeabff30bf0602fbc220f" shape="rect" coords="175,434,311,458" alt=""> |
1385 <area href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58" shape="rect" coords="174,482,312,506" alt=""> |
1284 <area href="sdo_8c.html#2eb5309dca3a7363da5e5e7230b85d58" shape="rect" coords="174,482,312,506" alt=""> |
1386 <area href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694" shape="rect" coords="196,530,290,554" alt=""> |
1285 <area href="sdo_8c.html#18b6f7e9c9441640a88ffef1e8720694" shape="rect" coords="196,530,290,554" alt=""> |
1387 <area href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810" shape="rect" coords="162,578,324,602" alt=""> |
1286 <area href="sdo_8c.html#601a837ecb5f21bf4c66b058c5ae7810" shape="rect" coords="162,578,324,602" alt=""> |
1388 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="386,140,506,164" alt=""> |
1287 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="386,140,506,164" alt=""> |
|
1288 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="768,191,848,215" alt=""> |
1389 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="396,434,495,458" alt=""> |
1289 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="396,434,495,458" alt=""> |
1390 <area href="objacces_8c.html#49e9444c8c8d39906a40a153366ed09c" shape="rect" coords="567,434,674,458" alt=""> |
1290 <area href="objacces_8c.html#49e9444c8c8d39906a40a153366ed09c" shape="rect" coords="567,434,674,458" alt=""> |
1391 <area href="objacces_8c.html#75d39b2dadcdb48f7321c6f3766aad26" shape="rect" coords="724,458,892,482" alt=""> |
1291 <area href="objacces_8c.html#75d39b2dadcdb48f7321c6f3766aad26" shape="rect" coords="724,458,892,482" alt=""> |
1392 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="396,482,495,506" alt=""> |
1292 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="396,482,495,506" alt=""> |
1393 <area href="objacces_8c.html#72f69950be4a1352fc78648c71454820" shape="rect" coords="567,482,674,506" alt=""> |
1293 <area href="objacces_8c.html#72f69950be4a1352fc78648c71454820" shape="rect" coords="567,482,674,506" alt=""> |
1451 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1351 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1452 |
1352 |
1453 <p> |
1353 <p> |
1454 Definition at line <a class="el" href="sdo_8c-source.html#l01499">1499</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1354 Definition at line <a class="el" href="sdo_8c-source.html#l01499">1499</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1455 <p> |
1355 <p> |
1456 References <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>. |
1356 References <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>. |
|
1357 <p> |
|
1358 Referenced by <a class="el" href="main_8c-source.html#l00057">ReadSDO()</a>, and <a class="el" href="Master_8c-source.html#l00173">TestMaster_post_TPDO()</a>. |
1457 <p> |
1359 <p> |
1458 Here is the call graph for this function:<p><center><img src="sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph.png" border="0" usemap="#sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph_map" alt=""></center> |
1360 Here is the call graph for this function:<p><center><img src="sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph.png" border="0" usemap="#sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph_map" alt=""></center> |
1459 <map name="sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph_map"> |
1361 <map name="sdo_8c_0e102a0835e4115920cd406e80a8d135_cgraph_map"> |
1460 <area href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270" shape="rect" coords="191,103,332,127" alt=""> |
1362 <area href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270" shape="rect" coords="191,103,332,127" alt=""> |
1461 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="389,5,517,29" alt=""> |
1363 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="390,5,518,29" alt=""> |
1462 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="383,53,524,77" alt=""> |
1364 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="383,53,524,77" alt=""> |
1463 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="575,128,671,152" alt=""> |
1365 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="575,128,671,152" alt=""> |
1464 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="399,152,508,176" alt=""> |
1366 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="399,152,508,176" alt=""> |
1465 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="412,200,495,224" alt=""> |
1367 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="412,200,495,224" alt=""> |
|
1368 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="583,200,663,224" alt=""> |
|
1369 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="722,200,852,224" alt=""> |
1466 </map> |
1370 </map> |
1467 |
1371 |
1468 </div> |
1372 </div> |
1469 </div><p> |
1373 </div><p> |
1470 <a class="anchor" name="542a5cdd20c00aa130a39fe68295e769"></a><!-- doxytag: member="sdo.c::readNetworkDictCallback" ref="542a5cdd20c00aa130a39fe68295e769" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback)" --> |
1374 <a class="anchor" name="542a5cdd20c00aa130a39fe68295e769"></a><!-- doxytag: member="sdo.c::readNetworkDictCallback" ref="542a5cdd20c00aa130a39fe68295e769" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback)" --> |
1530 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1434 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1531 |
1435 |
1532 <p> |
1436 <p> |
1533 Definition at line <a class="el" href="sdo_8c-source.html#l01516">1516</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1437 Definition at line <a class="el" href="sdo_8c-source.html#l01516">1516</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1534 <p> |
1438 <p> |
1535 References <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>. |
1439 References <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>. |
1536 <p> |
1440 <p> |
1537 Here is the call graph for this function:<p><center><img src="sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph.png" border="0" usemap="#sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph_map" alt=""></center> |
1441 Here is the call graph for this function:<p><center><img src="sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph.png" border="0" usemap="#sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph_map" alt=""></center> |
1538 <map name="sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph_map"> |
1442 <map name="sdo_8c_542a5cdd20c00aa130a39fe68295e769_cgraph_map"> |
1539 <area href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270" shape="rect" coords="247,103,388,127" alt=""> |
1443 <area href="sdo_8c.html#4bb4b3cd35af7e7580cffde23e9d3270" shape="rect" coords="247,103,388,127" alt=""> |
1540 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="445,5,573,29" alt=""> |
1444 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="446,5,574,29" alt=""> |
1541 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="439,53,580,77" alt=""> |
1445 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="439,53,580,77" alt=""> |
1542 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="631,128,727,152" alt=""> |
1446 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="631,128,727,152" alt=""> |
1543 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="455,152,564,176" alt=""> |
1447 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="455,152,564,176" alt=""> |
1544 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="468,200,551,224" alt=""> |
1448 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="468,200,551,224" alt=""> |
|
1449 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="639,200,719,224" alt=""> |
|
1450 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="778,200,908,224" alt=""> |
1545 </map> |
1451 </map> |
1546 |
1452 |
1547 </div> |
1453 </div> |
1548 </div><p> |
1454 </div><p> |
1549 <a class="anchor" name="1f4f07eccc4890a11ccf4f632da7740b"></a><!-- doxytag: member="sdo.c::resetSDO" ref="1f4f07eccc4890a11ccf4f632da7740b" args="(CO_Data *d)" --> |
1455 <a class="anchor" name="1f4f07eccc4890a11ccf4f632da7740b"></a><!-- doxytag: member="sdo.c::resetSDO" ref="1f4f07eccc4890a11ccf4f632da7740b" args="(CO_Data *d)" --> |
1718 </dl> |
1622 </dl> |
1719 |
1623 |
1720 <p> |
1624 <p> |
1721 Definition at line <a class="el" href="sdo_8c-source.html#l00129">129</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1625 Definition at line <a class="el" href="sdo_8c-source.html#l00129">129</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1722 <p> |
1626 <p> |
1723 References <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, and <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>. |
1627 References <a class="el" href="sdo_8h-source.html#l00044">struct_s_transfer::abortCode</a>, <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00039">struct_s_transfer::nodeId</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="def_8h-source.html#l00043">SDOABT_TIMED_OUT</a>, <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="sdo_8h-source.html#l00061">struct_s_transfer::timer</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="sdo_8h-source.html#l00041">struct_s_transfer::whoami</a>. |
1724 <p> |
1628 <p> |
1725 Here is the call graph for this function:<p><center><img src="sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph.png" border="0" usemap="#sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph_map" alt=""></center> |
1629 Here is the call graph for this function:<p><center><img src="sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph.png" border="0" usemap="#sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph_map" alt=""></center> |
1726 <map name="sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph_map"> |
1630 <map name="sdo_8c_9309025e29b59e09026abcd3b45a5b61_cgraph_map"> |
1727 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="205,6,315,30" alt=""> |
1631 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="205,6,315,30" alt=""> |
1728 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="200,54,320,78" alt=""> |
1632 <area href="sdo_8c.html#b26c3f2fb63d81055809d6ccaa785b7c" shape="rect" coords="200,54,320,78" alt=""> |
1729 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="369,6,465,30" alt=""> |
1633 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="369,6,465,30" alt=""> |
1730 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="376,54,459,78" alt=""> |
1634 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="376,54,459,78" alt=""> |
|
1635 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="516,54,596,78" alt=""> |
|
1636 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="647,54,777,78" alt=""> |
1731 </map> |
1637 </map> |
1732 |
1638 |
1733 </div> |
1639 </div> |
1734 </div><p> |
1640 </div><p> |
1735 <a class="anchor" name="18b6f7e9c9441640a88ffef1e8720694"></a><!-- doxytag: member="sdo.c::SDOtoLine" ref="18b6f7e9c9441640a88ffef1e8720694" args="(CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)" --> |
1641 <a class="anchor" name="18b6f7e9c9441640a88ffef1e8720694"></a><!-- doxytag: member="sdo.c::SDOtoLine" ref="18b6f7e9c9441640a88ffef1e8720694" args="(CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)" --> |
1826 </table> |
1734 </table> |
1827 </dl> |
1735 </dl> |
1828 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1736 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1829 |
1737 |
1830 <p> |
1738 <p> |
1831 get the server->client cobid<p> |
|
1832 case server. Easy because today only one server SDO is authorized in CanFestival<p> |
|
1833 case client<p> |
|
1834 Get the client->server cobid.<p> |
|
1835 First, have to find at the index where is defined the communication with the server node<p> |
|
1836 Second, read the cobid client->server<p> |
|
1837 message copy for sending<p> |
|
1838 the length of SDO must be 8 |
|
1839 <p> |
|
1840 Definition at line <a class="el" href="sdo_8c-source.html#l00498">498</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1739 Definition at line <a class="el" href="sdo_8c-source.html#l00498">498</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1841 <p> |
1740 <p> |
|
1741 References <a class="el" href="sdo_8h-source.html#l00082">struct_s_SDO::body</a>, <a class="el" href="objdictdef_8h-source.html#l00108">td_indextable::bSubCount</a>, <a class="el" href="data_8h-source.html#l00090">struct_CO_Data::canHandle</a>, <a class="el" href="canOpenDriver_8c-source.html#l00505">canSend()</a>, <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="sdo_8h-source.html#l00076">BODY::data</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="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00081">struct_s_SDO::nodeId</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="def_8h-source.html#l00055">NOT_A_REQUEST</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7">Pre_operational</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="objdictdef_8h-source.html#l00117">s_quick_index::SDO_CLT</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</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>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
|
1742 <p> |
1842 Referenced by <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>, and <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>. |
1743 Referenced by <a class="el" href="sdo_8c-source.html#l01406">_readNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>, and <a class="el" href="sdo_8c-source.html#l00578">sendSDOabort()</a>. |
|
1744 <p> |
|
1745 Here is the call graph for this function:<p><center><img src="sdo_8c_c6b5d7d1439d537da992a96644a1ca5d_cgraph.png" border="0" usemap="#sdo_8c_c6b5d7d1439d537da992a96644a1ca5d_cgraph_map" alt=""></center> |
|
1746 <map name="sdo_8c_c6b5d7d1439d537da992a96644a1ca5d_cgraph_map"> |
|
1747 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="140,6,220,30" alt=""> |
|
1748 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="271,6,401,30" alt=""> |
|
1749 </map> |
|
1750 |
1843 </div> |
1751 </div> |
1844 </div><p> |
1752 </div><p> |
1845 <a class="anchor" name="b26c3f2fb63d81055809d6ccaa785b7c"></a><!-- doxytag: member="sdo.c::sendSDOabort" ref="b26c3f2fb63d81055809d6ccaa785b7c" args="(CO_Data *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)" --> |
1753 <a class="anchor" name="b26c3f2fb63d81055809d6ccaa785b7c"></a><!-- doxytag: member="sdo.c::sendSDOabort" ref="b26c3f2fb63d81055809d6ccaa785b7c" args="(CO_Data *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)" --> |
1846 <div class="memitem"> |
1754 <div class="memitem"> |
1847 <div class="memproto"> |
1755 <div class="memproto"> |
1848 <table class="memname"> |
1756 <table class="memname"> |
1849 <tr> |
1757 <tr> |
1850 <td class="memname">UNS8 sendSDOabort </td> |
1758 <td class="memname">UNS8 sendSDOabort </td> |
1851 <td>(</td> |
1759 <td>(</td> |
1852 <td class="paramtype">CO_Data * </td> |
1760 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
1853 <td class="paramname"> <em>d</em>, </td> |
1761 <td class="paramname"> <em>d</em>, </td> |
1854 </tr> |
1762 </tr> |
1855 <tr> |
1763 <tr> |
1856 <td class="paramkey"></td> |
1764 <td class="paramkey"></td> |
1857 <td></td> |
1765 <td></td> |
2028 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
1940 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
2029 |
1941 |
2030 <p> |
1942 <p> |
2031 Definition at line <a class="el" href="sdo_8c-source.html#l01368">1368</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
1943 Definition at line <a class="el" href="sdo_8c-source.html#l01368">1368</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
2032 <p> |
1944 <p> |
2033 References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>. |
1945 References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>. |
2034 <p> |
1946 <p> |
2035 Here is the call graph for this function:<p><center><img src="sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph.png" border="0" usemap="#sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph_map" alt=""></center> |
1947 Here is the call graph for this function:<p><center><img src="sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph.png" border="0" usemap="#sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph_map" alt=""></center> |
2036 <map name="sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph_map"> |
1948 <map name="sdo_8c_bc20ed246e00053dcf71faa8f45ee39c_cgraph_map"> |
2037 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="192,103,339,127" alt=""> |
1949 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="192,103,339,127" alt=""> |
2038 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="395,5,523,29" alt=""> |
1950 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="395,5,523,29" alt=""> |
2039 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="388,53,530,77" alt=""> |
1951 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="388,53,529,77" alt=""> |
2040 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="580,128,676,152" alt=""> |
1952 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="580,128,676,152" alt=""> |
2041 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="404,152,514,176" alt=""> |
1953 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="404,152,513,176" alt=""> |
2042 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="418,200,500,224" alt=""> |
1954 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="417,200,500,224" alt=""> |
|
1955 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="588,200,668,224" alt=""> |
|
1956 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="727,200,857,224" alt=""> |
2043 </map> |
1957 </map> |
2044 |
1958 |
2045 </div> |
1959 </div> |
2046 </div><p> |
1960 </div><p> |
2047 <a class="anchor" name="f4ec05293fb8971a1b282994498ed4f5"></a><!-- doxytag: member="sdo.c::writeNetworkDictCallBack" ref="f4ec05293fb8971a1b282994498ed4f5" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback)" --> |
1961 <a class="anchor" name="f4ec05293fb8971a1b282994498ed4f5"></a><!-- doxytag: member="sdo.c::writeNetworkDictCallBack" ref="f4ec05293fb8971a1b282994498ed4f5" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback)" --> |
2121 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
2035 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
2122 |
2036 |
2123 <p> |
2037 <p> |
2124 Definition at line <a class="el" href="sdo_8c-source.html#l01388">1388</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
2038 Definition at line <a class="el" href="sdo_8c-source.html#l01388">1388</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>. |
2125 <p> |
2039 <p> |
2126 References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>. |
2040 References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>. |
2127 <p> |
2041 <p> |
2128 Here is the call graph for this function:<p><center><img src="sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph.png" border="0" usemap="#sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph_map" alt=""></center> |
2042 Here is the call graph for this function:<p><center><img src="sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph.png" border="0" usemap="#sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph_map" alt=""></center> |
2129 <map name="sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph_map"> |
2043 <map name="sdo_8c_f4ec05293fb8971a1b282994498ed4f5_cgraph_map"> |
2130 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="251,103,397,127" alt=""> |
2044 <area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="251,103,398,127" alt=""> |
2131 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="453,5,581,29" alt=""> |
2045 <area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="454,5,582,29" alt=""> |
2132 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="447,53,588,77" alt=""> |
2046 <area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="447,53,588,77" alt=""> |
2133 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="639,128,735,152" alt=""> |
2047 <area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="639,128,735,152" alt=""> |
2134 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="463,152,572,176" alt=""> |
2048 <area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="463,152,572,176" alt=""> |
2135 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="476,200,559,224" alt=""> |
2049 <area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="476,200,559,224" alt=""> |
|
2050 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="647,200,727,224" alt=""> |
|
2051 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="786,200,916,224" alt=""> |
2136 </map> |
2052 </map> |
2137 |
2053 |
2138 </div> |
2054 </div> |
2139 </div><p> |
2055 </div><p> |
2140 <hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:09 2007 for CanFestival by |
2056 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:14 2007 for CanFestival by |
2141 <a href="http://www.doxygen.org/index.html"> |
2057 <a href="http://www.doxygen.org/index.html"> |
2142 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
2058 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
2143 </body> |
2059 </body> |
2144 </html> |
2060 </html> |