207
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
3 |
<title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/dcf.c File Reference</title>
|
|
4 |
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
5 |
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
6 |
</head><body>
|
|
7 |
<!-- Generated by Doxygen 1.5.1 -->
|
|
8 |
<div class="tabs">
|
|
9 |
<ul>
|
|
10 |
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
11 |
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
|
12 |
</ul></div>
|
|
13 |
<div class="tabs">
|
|
14 |
<ul>
|
|
15 |
<li><a href="files.html"><span>File List</span></a></li>
|
|
16 |
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
17 |
</ul></div>
|
210
|
18 |
<h1>/home/epimerde/documents/tc11/CanFestival-3/src/dcf.c File Reference</h1>EXEMPLE OF SOMMARY. <a href="#_details">More...</a>
|
|
19 |
<p>
|
|
20 |
<code>#include "objacces.h"</code><br>
|
207
|
21 |
<code>#include "sdo.h"</code><br>
|
|
22 |
<code>#include "dcf.h"</code><br>
|
|
23 |
<code>#include "sysdep.h"</code><br>
|
|
24 |
|
|
25 |
<p>
|
210
|
26 |
Include dependency graph for dcf.c:<p><center><img src="dcf_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/dcf.c_map" alt=""></center>
|
|
27 |
|
|
28 |
<p>
|
207
|
29 |
<a href="dcf_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
30 |
<tr><td></td></tr>
|
|
31 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
32 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="dcf_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>
|
|
33 |
|
|
34 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d">decompo_dcf</a> (CO_Data *d, UNS8 nodeId)</td></tr>
|
|
35 |
|
|
36 |
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
37 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">const indextable * </td><td class="memItemRight" valign="bottom"><a class="el" href="dcf_8c.html#8bddcdce84393146515136d33d063060">ptrTable</a></td></tr>
|
|
38 |
|
|
39 |
</table>
|
210
|
40 |
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
41 |
EXEMPLE OF SOMMARY.
|
|
42 |
<p>
|
|
43 |
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl>
|
|
44 |
<dl class="date" compact><dt><b>Date:</b></dt><dd>Mon Jun 4 17:06:12 2007 </dd></dl>
|
|
45 |
|
|
46 |
<p>
|
|
47 |
Definition in file <a class="el" href="dcf_8c-source.html">dcf.c</a>.<hr><h2>Function Documentation</h2>
|
207
|
48 |
<a class="anchor" name="3c07605ffe3ea197aa36e583ef87a20a"></a><!-- doxytag: member="dcf.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)" -->
|
|
49 |
<div class="memitem">
|
|
50 |
<div class="memproto">
|
|
51 |
<table class="memname">
|
|
52 |
<tr>
|
|
53 |
<td class="memname">INLINE UNS8 _writeNetworkDict </td>
|
|
54 |
<td>(</td>
|
|
55 |
<td class="paramtype">CO_Data * </td>
|
|
56 |
<td class="paramname"> <em>d</em>, </td>
|
|
57 |
</tr>
|
|
58 |
<tr>
|
|
59 |
<td class="paramkey"></td>
|
|
60 |
<td></td>
|
|
61 |
<td class="paramtype">UNS8 </td>
|
|
62 |
<td class="paramname"> <em>nodeId</em>, </td>
|
|
63 |
</tr>
|
|
64 |
<tr>
|
|
65 |
<td class="paramkey"></td>
|
|
66 |
<td></td>
|
|
67 |
<td class="paramtype">UNS16 </td>
|
|
68 |
<td class="paramname"> <em>index</em>, </td>
|
|
69 |
</tr>
|
|
70 |
<tr>
|
|
71 |
<td class="paramkey"></td>
|
|
72 |
<td></td>
|
|
73 |
<td class="paramtype">UNS8 </td>
|
|
74 |
<td class="paramname"> <em>subIndex</em>, </td>
|
|
75 |
</tr>
|
|
76 |
<tr>
|
|
77 |
<td class="paramkey"></td>
|
|
78 |
<td></td>
|
|
79 |
<td class="paramtype">UNS8 </td>
|
|
80 |
<td class="paramname"> <em>count</em>, </td>
|
|
81 |
</tr>
|
|
82 |
<tr>
|
|
83 |
<td class="paramkey"></td>
|
|
84 |
<td></td>
|
|
85 |
<td class="paramtype">UNS8 </td>
|
|
86 |
<td class="paramname"> <em>dataType</em>, </td>
|
|
87 |
</tr>
|
|
88 |
<tr>
|
|
89 |
<td class="paramkey"></td>
|
|
90 |
<td></td>
|
|
91 |
<td class="paramtype">void * </td>
|
|
92 |
<td class="paramname"> <em>data</em>, </td>
|
|
93 |
</tr>
|
|
94 |
<tr>
|
|
95 |
<td class="paramkey"></td>
|
|
96 |
<td></td>
|
|
97 |
<td class="paramtype">SDOCallback_t </td>
|
|
98 |
<td class="paramname"> <em>Callback</em>, </td>
|
|
99 |
</tr>
|
|
100 |
<tr>
|
|
101 |
<td class="paramkey"></td>
|
|
102 |
<td></td>
|
|
103 |
<td class="paramtype">UNS8 </td>
|
|
104 |
<td class="paramname"> <em>endianize</em></td><td> </td>
|
|
105 |
</tr>
|
|
106 |
<tr>
|
|
107 |
<td></td>
|
|
108 |
<td>)</td>
|
|
109 |
<td></td><td></td><td width="100%"></td>
|
|
110 |
</tr>
|
|
111 |
</table>
|
|
112 |
</div>
|
|
113 |
<div class="memdoc">
|
|
114 |
|
|
115 |
<p>
|
210
|
116 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
117 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
118 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
119 |
<tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr>
|
|
120 |
<tr><td valign="top"></td><td valign="top"><em>index</em> </td><td></td></tr>
|
|
121 |
<tr><td valign="top"></td><td valign="top"><em>subIndex</em> </td><td></td></tr>
|
|
122 |
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td></td></tr>
|
|
123 |
<tr><td valign="top"></td><td valign="top"><em>dataType</em> </td><td></td></tr>
|
|
124 |
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td></td></tr>
|
|
125 |
<tr><td valign="top"></td><td valign="top"><em>Callback</em> </td><td></td></tr>
|
|
126 |
<tr><td valign="top"></td><td valign="top"><em>endianize</em> </td><td></td></tr>
|
|
127 |
</table>
|
|
128 |
</dl>
|
|
129 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
130 |
|
|
131 |
<p>
|
|
132 |
Verify that there is no SDO communication yet.<p>
|
|
133 |
Taking the line ...<p>
|
|
134 |
Check which SDO to use to communicate with the node<p>
|
|
135 |
looking for the nodeId server<p>
|
|
136 |
Copy data to transfers structure.<p>
|
|
137 |
Send the SDO to the server. Initiate download, cs=1.<p>
|
|
138 |
Expedited transfert<p>
|
|
139 |
Normal transfert<p>
|
|
140 |
nb of byte to transmit. Max = 255. (canfestival2 limitation).<p>
|
|
141 |
release the line
|
|
142 |
<p>
|
|
143 |
Definition at line <a class="el" href="sdo_8c-source.html#l01247">1247</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
|
|
144 |
<p>
|
|
145 |
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>.
|
|
146 |
<p>
|
|
147 |
Referenced by <a class="el" href="dcf_8c-source.html#l00087">decompo_dcf()</a>, <a class="el" href="sdo_8c-source.html#l01368">writeNetworkDict()</a>, and <a class="el" href="sdo_8c-source.html#l01388">writeNetworkDictCallBack()</a>.
|
|
148 |
<p>
|
|
149 |
Here is the call graph for this function:<p><center><img src="dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph.png" border="0" usemap="#dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph_map" alt=""></center>
|
|
150 |
<map name="dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph_map">
|
|
151 |
<area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="208,5,336,29" alt="">
|
|
152 |
<area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="201,53,343,77" alt="">
|
|
153 |
<area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="393,128,489,152" alt="">
|
|
154 |
<area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="217,152,327,176" alt="">
|
|
155 |
<area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="231,200,313,224" alt="">
|
|
156 |
</map>
|
|
157 |
|
207
|
158 |
</div>
|
|
159 |
</div><p>
|
|
160 |
<a class="anchor" name="8452e163e7649968ad6dae1601a5fb0d"></a><!-- doxytag: member="dcf.c::decompo_dcf" ref="8452e163e7649968ad6dae1601a5fb0d" args="(CO_Data *d, UNS8 nodeId)" -->
|
|
161 |
<div class="memitem">
|
|
162 |
<div class="memproto">
|
|
163 |
<table class="memname">
|
|
164 |
<tr>
|
|
165 |
<td class="memname">UNS32 decompo_dcf </td>
|
|
166 |
<td>(</td>
|
|
167 |
<td class="paramtype">CO_Data * </td>
|
|
168 |
<td class="paramname"> <em>d</em>, </td>
|
|
169 |
</tr>
|
|
170 |
<tr>
|
|
171 |
<td class="paramkey"></td>
|
|
172 |
<td></td>
|
|
173 |
<td class="paramtype">UNS8 </td>
|
|
174 |
<td class="paramname"> <em>nodeId</em></td><td> </td>
|
|
175 |
</tr>
|
|
176 |
<tr>
|
|
177 |
<td></td>
|
|
178 |
<td>)</td>
|
|
179 |
<td></td><td></td><td width="100%"></td>
|
|
180 |
</tr>
|
|
181 |
</table>
|
|
182 |
</div>
|
|
183 |
<div class="memdoc">
|
|
184 |
|
|
185 |
<p>
|
210
|
186 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
187 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
188 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
189 |
<tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr>
|
|
190 |
</table>
|
|
191 |
</dl>
|
|
192 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
193 |
|
|
194 |
<p>
|
|
195 |
Loop on all Nodes supported in DCF subindexes<p>
|
|
196 |
condition on consise DCF string for NodeID, if big enough<p>
|
|
197 |
pointer to the DCF string for NodeID<p>
|
|
198 |
CO_Data* d<p>
|
|
199 |
UNS8 nodeId<p>
|
|
200 |
UNS16 index<p>
|
|
201 |
UNS8 subindex<p>
|
|
202 |
UNS8 count<p>
|
|
203 |
UNS8 dataType<p>
|
|
204 |
void *data<p>
|
|
205 |
SDOCallback_t Callback<p>
|
|
206 |
no endianize<p>
|
|
207 |
Push d->dcf_cursor to the end of data<p>
|
|
208 |
Switch Master to preOperational state
|
|
209 |
<p>
|
|
210 |
Definition at line <a class="el" href="dcf_8c-source.html#l00087">87</a> of file <a class="el" href="dcf_8c-source.html">dcf.c</a>.
|
|
211 |
<p>
|
|
212 |
References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, and <a class="el" href="dcf_8c-source.html#l00057">ptrTable</a>.
|
|
213 |
<p>
|
|
214 |
Referenced by <a class="el" href="states_8c-source.html#l00138">setState()</a>.
|
|
215 |
<p>
|
|
216 |
Here is the call graph for this function:<p><center><img src="dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph.png" border="0" usemap="#dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph_map" alt=""></center>
|
|
217 |
<map name="dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph_map">
|
|
218 |
<area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="165,103,312,127" alt="">
|
|
219 |
<area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="368,5,496,29" alt="">
|
|
220 |
<area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="361,53,503,77" alt="">
|
|
221 |
<area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="553,128,649,152" alt="">
|
|
222 |
<area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="377,152,487,176" alt="">
|
|
223 |
<area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="391,200,473,224" alt="">
|
|
224 |
</map>
|
|
225 |
|
207
|
226 |
</div>
|
|
227 |
</div><p>
|
|
228 |
<hr><h2>Variable Documentation</h2>
|
|
229 |
<a class="anchor" name="8bddcdce84393146515136d33d063060"></a><!-- doxytag: member="dcf.c::ptrTable" ref="8bddcdce84393146515136d33d063060" args="" -->
|
|
230 |
<div class="memitem">
|
|
231 |
<div class="memproto">
|
|
232 |
<table class="memname">
|
|
233 |
<tr>
|
|
234 |
<td class="memname">const indextable* <a class="el" href="dcf_8c.html#8bddcdce84393146515136d33d063060">ptrTable</a> </td>
|
|
235 |
</tr>
|
|
236 |
</table>
|
|
237 |
</div>
|
|
238 |
<div class="memdoc">
|
|
239 |
|
|
240 |
<p>
|
|
241 |
|
|
242 |
<p>
|
210
|
243 |
Definition at line <a class="el" href="dcf_8c-source.html#l00057">57</a> of file <a class="el" href="dcf_8c-source.html">dcf.c</a>.
|
|
244 |
<p>
|
|
245 |
Referenced by <a class="el" href="objacces_8c-source.html#l00105">_getODentry()</a>, <a class="el" href="objacces_8c-source.html#l00260">_setODentry()</a>, <a class="el" href="dcf_8c-source.html#l00087">decompo_dcf()</a>, and <a class="el" href="states_8c-source.html#l00138">setState()</a>.
|
207
|
246 |
</div>
|
|
247 |
</div><p>
|
210
|
248 |
<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:05 2007 for CanFestival by
|
207
|
249 |
<a href="http://www.doxygen.org/index.html">
|
|
250 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
251 |
</body>
|
|
252 |
</html>
|