|
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/states.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> |
|
18 <h1>/home/epimerde/documents/tc11/CanFestival-3/src/states.c File Reference</h1><code>#include "states.h"</code><br> |
|
19 <code>#include "def.h"</code><br> |
|
20 <code>#include "dcf.h"</code><br> |
|
21 <code>#include "nmtSlave.h"</code><br> |
|
22 |
|
23 <p> |
|
24 <a href="states_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
25 <tr><td></td></tr> |
|
26 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
|
27 <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> |
|
28 |
|
29 <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> |
|
30 |
|
31 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
32 <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> |
|
33 |
|
34 <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> |
|
35 |
|
36 <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> |
|
37 |
|
38 <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> |
|
39 |
|
40 <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> |
|
41 |
|
42 <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> |
|
43 |
|
44 <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> |
|
45 |
|
46 <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> |
|
47 |
|
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#4c917142acca702f7e04e919a0b958b4">_operational</a> ()</td></tr> |
|
49 |
|
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#244e9269c323e14509bea947c2729a13">_stopped</a> ()</td></tr> |
|
51 |
|
52 </table> |
|
53 <hr><h2>Define Documentation</h2> |
|
54 <a class="anchor" name="f4e8bc2d192090ff502229b33c24a389"></a><!-- doxytag: member="states.c::None" ref="f4e8bc2d192090ff502229b33c24a389" args="" --> |
|
55 <div class="memitem"> |
|
56 <div class="memproto"> |
|
57 <table class="memname"> |
|
58 <tr> |
|
59 <td class="memname">#define None </td> |
|
60 </tr> |
|
61 </table> |
|
62 </div> |
|
63 <div class="memdoc"> |
|
64 |
|
65 <p> |
|
66 |
|
67 <p> |
|
68 Definition at line <a class="el" href="states_8c-source.html#l00086">86</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
69 </div> |
|
70 </div><p> |
|
71 <a class="anchor" name="3a7cf0c586b1e467e6215396e9a439ae"></a><!-- doxytag: member="states.c::StartOrStop" ref="3a7cf0c586b1e467e6215396e9a439ae" args="(CommType, FuncStart, FuncStop)" --> |
|
72 <div class="memitem"> |
|
73 <div class="memproto"> |
|
74 <table class="memname"> |
|
75 <tr> |
|
76 <td class="memname">#define StartOrStop </td> |
|
77 <td>(</td> |
|
78 <td class="paramtype">CommType, <tr> |
|
79 <td class="paramkey"></td> |
|
80 <td></td> |
|
81 <td class="paramtype">FuncStart, <tr> |
|
82 <td class="paramkey"></td> |
|
83 <td></td> |
|
84 <td class="paramtype">FuncStop </td> |
|
85 <td class="paramname"> </td> |
|
86 <td> ) </td> |
|
87 <td width="100%"></td> |
|
88 </tr> |
|
89 </table> |
|
90 </div> |
|
91 <div class="memdoc"> |
|
92 |
|
93 <p> |
|
94 <b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">if</span>(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\ |
|
95 MSG_WAR(0x9999,#FuncStart, 9999);\ |
|
96 d->CurrentCommunicationState.CommType = 1;\ |
|
97 FuncStart;\ |
|
98 }<span class="keywordflow">else</span> <span class="keywordflow">if</span>(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\ |
|
99 MSG_WAR(0x9999,#FuncStop, 9999);\ |
|
100 d->CurrentCommunicationState.CommType = 0;\ |
|
101 FuncStop;\ |
|
102 } |
|
103 </pre></div> |
|
104 <p> |
|
105 Definition at line <a class="el" href="states_8c-source.html#l00076">76</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
106 </div> |
|
107 </div><p> |
|
108 <hr><h2>Function Documentation</h2> |
|
109 <a class="anchor" name="1ee4d5c3d5dc6f39607d414b7bf9bcc9"></a><!-- doxytag: member="states.c::_initialisation" ref="1ee4d5c3d5dc6f39607d414b7bf9bcc9" args="()" --> |
|
110 <div class="memitem"> |
|
111 <div class="memproto"> |
|
112 <table class="memname"> |
|
113 <tr> |
|
114 <td class="memname">void _initialisation </td> |
|
115 <td>(</td> |
|
116 <td class="paramname"> </td> |
|
117 <td> ) </td> |
|
118 <td width="100%"></td> |
|
119 </tr> |
|
120 </table> |
|
121 </div> |
|
122 <div class="memdoc"> |
|
123 |
|
124 <p> |
|
125 |
|
126 <p> |
|
127 Definition at line <a class="el" href="states_8c-source.html#l00234">234</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
128 </div> |
|
129 </div><p> |
|
130 <a class="anchor" name="4c917142acca702f7e04e919a0b958b4"></a><!-- doxytag: member="states.c::_operational" ref="4c917142acca702f7e04e919a0b958b4" args="()" --> |
|
131 <div class="memitem"> |
|
132 <div class="memproto"> |
|
133 <table class="memname"> |
|
134 <tr> |
|
135 <td class="memname">void _operational </td> |
|
136 <td>(</td> |
|
137 <td class="paramname"> </td> |
|
138 <td> ) </td> |
|
139 <td width="100%"></td> |
|
140 </tr> |
|
141 </table> |
|
142 </div> |
|
143 <div class="memdoc"> |
|
144 |
|
145 <p> |
|
146 |
|
147 <p> |
|
148 Definition at line <a class="el" href="states_8c-source.html#l00236">236</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
149 </div> |
|
150 </div><p> |
|
151 <a class="anchor" name="00113c22ed3366ee552f77862241d317"></a><!-- doxytag: member="states.c::_preOperational" ref="00113c22ed3366ee552f77862241d317" args="()" --> |
|
152 <div class="memitem"> |
|
153 <div class="memproto"> |
|
154 <table class="memname"> |
|
155 <tr> |
|
156 <td class="memname">void _preOperational </td> |
|
157 <td>(</td> |
|
158 <td class="paramname"> </td> |
|
159 <td> ) </td> |
|
160 <td width="100%"></td> |
|
161 </tr> |
|
162 </table> |
|
163 </div> |
|
164 <div class="memdoc"> |
|
165 |
|
166 <p> |
|
167 |
|
168 <p> |
|
169 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>. |
|
170 </div> |
|
171 </div><p> |
|
172 <a class="anchor" name="244e9269c323e14509bea947c2729a13"></a><!-- doxytag: member="states.c::_stopped" ref="244e9269c323e14509bea947c2729a13" args="()" --> |
|
173 <div class="memitem"> |
|
174 <div class="memproto"> |
|
175 <table class="memname"> |
|
176 <tr> |
|
177 <td class="memname">void _stopped </td> |
|
178 <td>(</td> |
|
179 <td class="paramname"> </td> |
|
180 <td> ) </td> |
|
181 <td width="100%"></td> |
|
182 </tr> |
|
183 </table> |
|
184 </div> |
|
185 <div class="memdoc"> |
|
186 |
|
187 <p> |
|
188 |
|
189 <p> |
|
190 Definition at line <a class="el" href="states_8c-source.html#l00237">237</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
191 </div> |
|
192 </div><p> |
|
193 <a class="anchor" name="3f8975650604cc23582f19a43fd4e518"></a><!-- doxytag: member="states.c::canDispatch" ref="3f8975650604cc23582f19a43fd4e518" args="(CO_Data *d, Message *m)" --> |
|
194 <div class="memitem"> |
|
195 <div class="memproto"> |
|
196 <table class="memname"> |
|
197 <tr> |
|
198 <td class="memname">void canDispatch </td> |
|
199 <td>(</td> |
|
200 <td class="paramtype">CO_Data * </td> |
|
201 <td class="paramname"> <em>d</em>, </td> |
|
202 </tr> |
|
203 <tr> |
|
204 <td class="paramkey"></td> |
|
205 <td></td> |
|
206 <td class="paramtype">Message * </td> |
|
207 <td class="paramname"> <em>m</em></td><td> </td> |
|
208 </tr> |
|
209 <tr> |
|
210 <td></td> |
|
211 <td>)</td> |
|
212 <td></td><td></td><td width="100%"></td> |
|
213 </tr> |
|
214 </table> |
|
215 </div> |
|
216 <div class="memdoc"> |
|
217 |
|
218 <p> |
|
219 |
|
220 <p> |
|
221 Definition at line <a class="el" href="states_8c-source.html#l00039">39</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
222 <p> |
|
223 References <a class="el" href="nmtSlave_8c-source.html#l00029">proceedNMTstateChange()</a>, <a class="el" href="lifegrd_8c-source.html#l00050">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00187">proceedPDO()</a>, <a class="el" href="sdo_8c-source.html#l00447">proceedSDO()</a>, and <a class="el" href="sync_8c-source.html#l00093">proceedSYNC()</a>. |
|
224 </div> |
|
225 </div><p> |
|
226 <a class="anchor" name="3020f2e5762f6e389a21382ec827b6a6"></a><!-- doxytag: member="states.c::getNodeId" ref="3020f2e5762f6e389a21382ec827b6a6" args="(CO_Data *d)" --> |
|
227 <div class="memitem"> |
|
228 <div class="memproto"> |
|
229 <table class="memname"> |
|
230 <tr> |
|
231 <td class="memname">UNS8 getNodeId </td> |
|
232 <td>(</td> |
|
233 <td class="paramtype">CO_Data * </td> |
|
234 <td class="paramname"> <em>d</em> </td> |
|
235 <td> ) </td> |
|
236 <td width="100%"></td> |
|
237 </tr> |
|
238 </table> |
|
239 </div> |
|
240 <div class="memdoc"> |
|
241 |
|
242 <p> |
|
243 |
|
244 <p> |
|
245 Definition at line <a class="el" href="states_8c-source.html#l00180">180</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
246 </div> |
|
247 </div><p> |
|
248 <a class="anchor" name="95d835785ba564bf6d92e3224c5e3848"></a><!-- doxytag: member="states.c::getState" ref="95d835785ba564bf6d92e3224c5e3848" args="(CO_Data *d)" --> |
|
249 <div class="memitem"> |
|
250 <div class="memproto"> |
|
251 <table class="memname"> |
|
252 <tr> |
|
253 <td class="memname">e_nodeState getState </td> |
|
254 <td>(</td> |
|
255 <td class="paramtype">CO_Data * </td> |
|
256 <td class="paramname"> <em>d</em> </td> |
|
257 <td> ) </td> |
|
258 <td width="100%"></td> |
|
259 </tr> |
|
260 </table> |
|
261 </div> |
|
262 <div class="memdoc"> |
|
263 |
|
264 <p> |
|
265 |
|
266 <p> |
|
267 Definition at line <a class="el" href="states_8c-source.html#l00033">33</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
268 </div> |
|
269 </div><p> |
|
270 <a class="anchor" name="d47a53979b9311a374d029f7923abbe1"></a><!-- doxytag: member="states.c::setNodeId" ref="d47a53979b9311a374d029f7923abbe1" args="(CO_Data *d, UNS8 nodeId)" --> |
|
271 <div class="memitem"> |
|
272 <div class="memproto"> |
|
273 <table class="memname"> |
|
274 <tr> |
|
275 <td class="memname">void setNodeId </td> |
|
276 <td>(</td> |
|
277 <td class="paramtype">CO_Data * </td> |
|
278 <td class="paramname"> <em>d</em>, </td> |
|
279 </tr> |
|
280 <tr> |
|
281 <td class="paramkey"></td> |
|
282 <td></td> |
|
283 <td class="paramtype">UNS8 </td> |
|
284 <td class="paramname"> <em>nodeId</em></td><td> </td> |
|
285 </tr> |
|
286 <tr> |
|
287 <td></td> |
|
288 <td>)</td> |
|
289 <td></td><td></td><td width="100%"></td> |
|
290 </tr> |
|
291 </table> |
|
292 </div> |
|
293 <div class="memdoc"> |
|
294 |
|
295 <p> |
|
296 |
|
297 <p> |
|
298 Definition at line <a class="el" href="states_8c-source.html#l00186">186</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
299 </div> |
|
300 </div><p> |
|
301 <a class="anchor" name="0a5004efd1dedbee82a4f21ec5c44fb5"></a><!-- doxytag: member="states.c::setState" ref="0a5004efd1dedbee82a4f21ec5c44fb5" args="(CO_Data *d, e_nodeState newState)" --> |
|
302 <div class="memitem"> |
|
303 <div class="memproto"> |
|
304 <table class="memname"> |
|
305 <tr> |
|
306 <td class="memname">UNS8 setState </td> |
|
307 <td>(</td> |
|
308 <td class="paramtype">CO_Data * </td> |
|
309 <td class="paramname"> <em>d</em>, </td> |
|
310 </tr> |
|
311 <tr> |
|
312 <td class="paramkey"></td> |
|
313 <td></td> |
|
314 <td class="paramtype">e_nodeState </td> |
|
315 <td class="paramname"> <em>newState</em></td><td> </td> |
|
316 </tr> |
|
317 <tr> |
|
318 <td></td> |
|
319 <td>)</td> |
|
320 <td></td><td></td><td width="100%"></td> |
|
321 </tr> |
|
322 </table> |
|
323 </div> |
|
324 <div class="memdoc"> |
|
325 |
|
326 <p> |
|
327 |
|
328 <p> |
|
329 Definition at line <a class="el" href="states_8c-source.html#l00100">100</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
330 <p> |
|
331 References <a class="el" href="dcf_8c-source.html#l00049">decompo_dcf()</a>, <a class="el" href="dcf_8c-source.html#l00033">ptrTable</a>, and <a class="el" href="states_8c-source.html#l00089">switchCommunicationState()</a>. |
|
332 </div> |
|
333 </div><p> |
|
334 <a class="anchor" name="915991eebf7c2ac6c929c6c9cfbd7d03"></a><!-- doxytag: member="states.c::switchCommunicationState" ref="915991eebf7c2ac6c929c6c9cfbd7d03" args="(CO_Data *d, s_state_communication *newCommunicationState)" --> |
|
335 <div class="memitem"> |
|
336 <div class="memproto"> |
|
337 <table class="memname"> |
|
338 <tr> |
|
339 <td class="memname">void switchCommunicationState </td> |
|
340 <td>(</td> |
|
341 <td class="paramtype">CO_Data * </td> |
|
342 <td class="paramname"> <em>d</em>, </td> |
|
343 </tr> |
|
344 <tr> |
|
345 <td class="paramkey"></td> |
|
346 <td></td> |
|
347 <td class="paramtype">s_state_communication * </td> |
|
348 <td class="paramname"> <em>newCommunicationState</em></td><td> </td> |
|
349 </tr> |
|
350 <tr> |
|
351 <td></td> |
|
352 <td>)</td> |
|
353 <td></td><td></td><td width="100%"></td> |
|
354 </tr> |
|
355 </table> |
|
356 </div> |
|
357 <div class="memdoc"> |
|
358 |
|
359 <p> |
|
360 |
|
361 <p> |
|
362 Definition at line <a class="el" href="states_8c-source.html#l00089">89</a> of file <a class="el" href="states_8c-source.html">states.c</a>. |
|
363 <p> |
|
364 References <a class="el" href="lifegrd_8c-source.html#l00147">heartbeatInit()</a>, <a class="el" href="lifegrd_8c-source.html#l00173">heartbeatStop()</a>, <a class="el" href="states_8c-source.html#l00086">None</a>, <a class="el" href="sdo_8c-source.html#l00131">resetSDO()</a>, <a class="el" href="nmtSlave_8c-source.html#l00076">slaveSendBootUp()</a>, <a class="el" href="states_8c-source.html#l00076">StartOrStop</a>, <a class="el" href="sync_8c-source.html#l00050">startSYNC()</a>, and <a class="el" href="sync_8c-source.html#l00071">stopSYNC()</a>. |
|
365 </div> |
|
366 </div><p> |
|
367 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 17:09:27 2007 for CanFestival by |
|
368 <a href="http://www.doxygen.org/index.html"> |
|
369 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
370 </body> |
|
371 </html> |