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/nmtSlave.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/nmtSlave.c File Reference</h1><code>#include "nmtSlave.h"</code><br>
|
|
19 |
<code>#include "states.h"</code><br>
|
|
20 |
<code>#include "canfestival.h"</code><br>
|
|
21 |
|
|
22 |
<p>
|
210
|
23 |
Include dependency graph for nmtSlave.c:<p><center><img src="nmtSlave_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/nmtSlave.c_map" alt=""></center>
|
|
24 |
|
|
25 |
<p>
|
207
|
26 |
<a href="nmtSlave_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
27 |
<tr><td></td></tr>
|
|
28 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
29 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="nmtSlave_8c.html#97d175ea168c149c99b01dcde0989743">proceedNMTstateChange</a> (CO_Data *d, Message *m)</td></tr>
|
|
30 |
|
|
31 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5">slaveSendBootUp</a> (CO_Data *d)</td></tr>
|
|
32 |
|
|
33 |
</table>
|
210
|
34 |
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
35 |
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl>
|
|
36 |
<dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 08:50:53 2007 </dd></dl>
|
|
37 |
|
|
38 |
<p>
|
|
39 |
Definition in file <a class="el" href="nmtSlave_8c-source.html">nmtSlave.c</a>.<hr><h2>Function Documentation</h2>
|
207
|
40 |
<a class="anchor" name="97d175ea168c149c99b01dcde0989743"></a><!-- doxytag: member="nmtSlave.c::proceedNMTstateChange" ref="97d175ea168c149c99b01dcde0989743" args="(CO_Data *d, Message *m)" -->
|
|
41 |
<div class="memitem">
|
|
42 |
<div class="memproto">
|
|
43 |
<table class="memname">
|
|
44 |
<tr>
|
|
45 |
<td class="memname">void proceedNMTstateChange </td>
|
|
46 |
<td>(</td>
|
|
47 |
<td class="paramtype">CO_Data * </td>
|
|
48 |
<td class="paramname"> <em>d</em>, </td>
|
|
49 |
</tr>
|
|
50 |
<tr>
|
|
51 |
<td class="paramkey"></td>
|
|
52 |
<td></td>
|
|
53 |
<td class="paramtype">Message * </td>
|
|
54 |
<td class="paramname"> <em>m</em></td><td> </td>
|
|
55 |
</tr>
|
|
56 |
<tr>
|
|
57 |
<td></td>
|
|
58 |
<td>)</td>
|
|
59 |
<td></td><td></td><td width="100%"></td>
|
|
60 |
</tr>
|
|
61 |
</table>
|
|
62 |
</div>
|
|
63 |
<div class="memdoc">
|
|
64 |
|
|
65 |
<p>
|
210
|
66 |
put the slave in the state wanted by the master<p>
|
|
67 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
68 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
69 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
70 |
<tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr>
|
|
71 |
</table>
|
|
72 |
</dl>
|
207
|
73 |
|
|
74 |
<p>
|
210
|
75 |
Check if this NMT-message is for this node<p>
|
|
76 |
byte 1 = 0 : all the nodes are concerned (broadcast)<p>
|
|
77 |
command specifier (cs)<p>
|
|
78 |
end switch<p>
|
|
79 |
end if( ( (*m).data[1] == 0 ) || ( (*m).data[1] == bDeviceNodeId ) )
|
207
|
80 |
<p>
|
210
|
81 |
Definition at line <a class="el" href="nmtSlave_8c-source.html#l00043">43</a> of file <a class="el" href="nmtSlave_8c-source.html">nmtSlave.c</a>.
|
|
82 |
<p>
|
|
83 |
References <a class="el" href="states_8c-source.html#l00138">setState()</a>.
|
|
84 |
<p>
|
|
85 |
Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>.
|
|
86 |
<p>
|
|
87 |
Here is the call graph for this function:<p><center><img src="nmtSlave_8c_97d175ea168c149c99b01dcde0989743_cgraph.png" border="0" usemap="#nmtSlave_8c_97d175ea168c149c99b01dcde0989743_cgraph_map" alt=""></center>
|
|
88 |
<map name="nmtSlave_8c_97d175ea168c149c99b01dcde0989743_cgraph_map">
|
|
89 |
<area href="states_8c.html#0a5004efd1dedbee82a4f21ec5c44fb5" shape="rect" coords="247,101,324,125" alt="">
|
|
90 |
<area href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d" shape="rect" coords="421,53,533,77" alt="">
|
|
91 |
<area href="states_8c.html#915991eebf7c2ac6c929c6c9cfbd7d03" shape="rect" coords="375,149,580,173" alt="">
|
|
92 |
<area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="629,5,776,29" alt="">
|
|
93 |
<area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="648,53,757,77" alt="">
|
|
94 |
<area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="644,101,761,125" alt="">
|
|
95 |
<area href="sdo_8c.html#1f4f07eccc4890a11ccf4f632da7740b" shape="rect" coords="660,149,745,173" alt="">
|
|
96 |
<area href="nmtSlave_8c.html#aced28a97b2c256320dfde3c4b36a7d5" shape="rect" coords="632,197,773,221" alt="">
|
|
97 |
<area href="sync_8c.html#2e0bf669f5b40dfbdda0f12a5ae3631a" shape="rect" coords="659,245,747,269" alt="">
|
|
98 |
<area href="sync_8c.html#41c47dbd59d22bf9bab6cd288cf27164" shape="rect" coords="824,271,912,295" alt="">
|
|
99 |
</map>
|
|
100 |
|
207
|
101 |
</div>
|
|
102 |
</div><p>
|
|
103 |
<a class="anchor" name="aced28a97b2c256320dfde3c4b36a7d5"></a><!-- doxytag: member="nmtSlave.c::slaveSendBootUp" ref="aced28a97b2c256320dfde3c4b36a7d5" args="(CO_Data *d)" -->
|
|
104 |
<div class="memitem">
|
|
105 |
<div class="memproto">
|
|
106 |
<table class="memname">
|
|
107 |
<tr>
|
|
108 |
<td class="memname">UNS8 slaveSendBootUp </td>
|
|
109 |
<td>(</td>
|
|
110 |
<td class="paramtype">CO_Data * </td>
|
|
111 |
<td class="paramname"> <em>d</em> </td>
|
|
112 |
<td> ) </td>
|
|
113 |
<td width="100%"></td>
|
|
114 |
</tr>
|
|
115 |
</table>
|
|
116 |
</div>
|
|
117 |
<div class="memdoc">
|
|
118 |
|
|
119 |
<p>
|
210
|
120 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
121 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
122 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
123 |
</table>
|
|
124 |
</dl>
|
|
125 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
|
207
|
126 |
|
|
127 |
<p>
|
210
|
128 |
message configuration
|
|
129 |
<p>
|
|
130 |
Definition at line <a class="el" href="nmtSlave_8c-source.html#l00097">97</a> of file <a class="el" href="nmtSlave_8c-source.html">nmtSlave.c</a>.
|
|
131 |
<p>
|
|
132 |
Referenced by <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
|
207
|
133 |
</div>
|
|
134 |
</div><p>
|
210
|
135 |
<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:06 2007 for CanFestival by
|
207
|
136 |
<a href="http://www.doxygen.org/index.html">
|
|
137 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
138 |
</body>
|
|
139 |
</html>
|