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/lifegrd.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/lifegrd.c File Reference</h1><code>#include <data.h></code><br>
|
|
19 |
<code>#include "lifegrd.h"</code><br>
|
|
20 |
<code>#include "canfestival.h"</code><br>
|
|
21 |
|
|
22 |
<p>
|
210
|
23 |
Include dependency graph for lifegrd.c:<p><center><img src="lifegrd_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/lifegrd.c_map" alt=""></center>
|
|
24 |
|
|
25 |
<p>
|
207
|
26 |
<a href="lifegrd_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="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198">ConsumerHearbeatAlarm</a> (CO_Data *d, UNS32 id)</td></tr>
|
|
30 |
|
|
31 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9">ProducerHearbeatAlarm</a> (CO_Data *d, UNS32 id)</td></tr>
|
|
32 |
|
|
33 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#ec7b3543d04cf7d7098b27fba2510696">OnHearbeatProducerUpdate</a> (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)</td></tr>
|
|
34 |
|
|
35 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">e_nodeState </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#627254070e45c23f1776e12c524492ff">getNodeState</a> (CO_Data *d, UNS8 nodeId)</td></tr>
|
|
36 |
|
|
37 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#b3248945e06e8b05518beddf665f174d">proceedNODE_GUARD</a> (CO_Data *d, Message *m)</td></tr>
|
|
38 |
|
|
39 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368">OnHeartbeatProducerUpdate</a> (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)</td></tr>
|
|
40 |
|
|
41 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21">heartbeatInit</a> (CO_Data *d)</td></tr>
|
|
42 |
|
|
43 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7">heartbeatStop</a> (CO_Data *d)</td></tr>
|
|
44 |
|
|
45 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#5249eb891f5677b80ccf01e604748524">_heartbeatError</a> (UNS8 heartbeatID)</td></tr>
|
|
46 |
|
|
47 |
</table>
|
210
|
48 |
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
49 |
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT </dd></dl>
|
|
50 |
<dl class="date" compact><dt><b>Date:</b></dt><dd>Mon Jun 4 17:19:24 2007 </dd></dl>
|
|
51 |
|
|
52 |
<p>
|
|
53 |
Definition in file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.<hr><h2>Function Documentation</h2>
|
207
|
54 |
<a class="anchor" name="5249eb891f5677b80ccf01e604748524"></a><!-- doxytag: member="lifegrd.c::_heartbeatError" ref="5249eb891f5677b80ccf01e604748524" args="(UNS8 heartbeatID)" -->
|
|
55 |
<div class="memitem">
|
|
56 |
<div class="memproto">
|
|
57 |
<table class="memname">
|
|
58 |
<tr>
|
|
59 |
<td class="memname">void _heartbeatError </td>
|
|
60 |
<td>(</td>
|
|
61 |
<td class="paramtype">UNS8 </td>
|
|
62 |
<td class="paramname"> <em>heartbeatID</em> </td>
|
|
63 |
<td> ) </td>
|
|
64 |
<td width="100%"></td>
|
|
65 |
</tr>
|
|
66 |
</table>
|
|
67 |
</div>
|
|
68 |
<div class="memdoc">
|
|
69 |
|
|
70 |
<p>
|
210
|
71 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
72 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
73 |
<tr><td valign="top"></td><td valign="top"><em>heartbeatID</em> </td><td></td></tr>
|
|
74 |
</table>
|
|
75 |
</dl>
|
|
76 |
|
|
77 |
<p>
|
|
78 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00252">252</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
207
|
79 |
</div>
|
|
80 |
</div><p>
|
|
81 |
<a class="anchor" name="e3cd4656f5b2a37d4b8d364293538198"></a><!-- doxytag: member="lifegrd.c::ConsumerHearbeatAlarm" ref="e3cd4656f5b2a37d4b8d364293538198" args="(CO_Data *d, UNS32 id)" -->
|
|
82 |
<div class="memitem">
|
|
83 |
<div class="memproto">
|
|
84 |
<table class="memname">
|
|
85 |
<tr>
|
|
86 |
<td class="memname">void ConsumerHearbeatAlarm </td>
|
|
87 |
<td>(</td>
|
|
88 |
<td class="paramtype">CO_Data * </td>
|
|
89 |
<td class="paramname"> <em>d</em>, </td>
|
|
90 |
</tr>
|
|
91 |
<tr>
|
|
92 |
<td class="paramkey"></td>
|
|
93 |
<td></td>
|
|
94 |
<td class="paramtype">UNS32 </td>
|
|
95 |
<td class="paramname"> <em>id</em></td><td> </td>
|
|
96 |
</tr>
|
|
97 |
<tr>
|
|
98 |
<td></td>
|
|
99 |
<td>)</td>
|
|
100 |
<td></td><td></td><td width="100%"></td>
|
|
101 |
</tr>
|
|
102 |
</table>
|
|
103 |
</div>
|
|
104 |
<div class="memdoc">
|
|
105 |
|
|
106 |
<p>
|
210
|
107 |
The Consumer Timer Callback<p>
|
|
108 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
109 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
110 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
111 |
<tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr>
|
|
112 |
</table>
|
|
113 |
</dl>
|
|
114 |
|
|
115 |
<p>
|
|
116 |
call heartbeat error with NodeId
|
|
117 |
<p>
|
|
118 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00067">67</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
119 |
<p>
|
|
120 |
Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>, and <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>.
|
207
|
121 |
</div>
|
|
122 |
</div><p>
|
|
123 |
<a class="anchor" name="627254070e45c23f1776e12c524492ff"></a><!-- doxytag: member="lifegrd.c::getNodeState" ref="627254070e45c23f1776e12c524492ff" args="(CO_Data *d, UNS8 nodeId)" -->
|
|
124 |
<div class="memitem">
|
|
125 |
<div class="memproto">
|
|
126 |
<table class="memname">
|
|
127 |
<tr>
|
|
128 |
<td class="memname">e_nodeState getNodeState </td>
|
|
129 |
<td>(</td>
|
|
130 |
<td class="paramtype">CO_Data * </td>
|
|
131 |
<td class="paramname"> <em>d</em>, </td>
|
|
132 |
</tr>
|
|
133 |
<tr>
|
|
134 |
<td class="paramkey"></td>
|
|
135 |
<td></td>
|
|
136 |
<td class="paramtype">UNS8 </td>
|
|
137 |
<td class="paramname"> <em>nodeId</em></td><td> </td>
|
|
138 |
</tr>
|
|
139 |
<tr>
|
|
140 |
<td></td>
|
|
141 |
<td>)</td>
|
|
142 |
<td></td><td></td><td width="100%"></td>
|
|
143 |
</tr>
|
|
144 |
</table>
|
|
145 |
</div>
|
|
146 |
<div class="memdoc">
|
|
147 |
|
|
148 |
<p>
|
210
|
149 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
150 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
151 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
152 |
<tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr>
|
|
153 |
</table>
|
|
154 |
</dl>
|
|
155 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
156 |
|
|
157 |
<p>
|
|
158 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00055">55</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
207
|
159 |
</div>
|
|
160 |
</div><p>
|
|
161 |
<a class="anchor" name="8896f6846e4d020390f6953f3d98aa21"></a><!-- doxytag: member="lifegrd.c::heartbeatInit" ref="8896f6846e4d020390f6953f3d98aa21" args="(CO_Data *d)" -->
|
|
162 |
<div class="memitem">
|
|
163 |
<div class="memproto">
|
|
164 |
<table class="memname">
|
|
165 |
<tr>
|
|
166 |
<td class="memname">void heartbeatInit </td>
|
|
167 |
<td>(</td>
|
|
168 |
<td class="paramtype">CO_Data * </td>
|
|
169 |
<td class="paramname"> <em>d</em> </td>
|
|
170 |
<td> ) </td>
|
|
171 |
<td width="100%"></td>
|
|
172 |
</tr>
|
|
173 |
</table>
|
|
174 |
</div>
|
|
175 |
<div class="memdoc">
|
|
176 |
|
|
177 |
<p>
|
210
|
178 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
179 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
180 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
181 |
</table>
|
|
182 |
</dl>
|
|
183 |
|
|
184 |
<p>
|
|
185 |
Index to scan the table of heartbeat consumers<p>
|
|
186 |
MSG_WAR(0x3121, "should_time : ", should_time ) ;
|
|
187 |
<p>
|
|
188 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00206">206</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
189 |
<p>
|
|
190 |
References <a class="el" href="lifegrd_8c-source.html#l00067">ConsumerHearbeatAlarm()</a>, <a class="el" href="lifegrd_8c-source.html#l00194">OnHeartbeatProducerUpdate()</a>, <a class="el" href="lifegrd_8c-source.html#l00161">ProducerHearbeatAlarm()</a>, <a class="el" href="objacces_8c-source.html#l00419">RegisterSetODentryCallBack()</a>, and <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>.
|
|
191 |
<p>
|
|
192 |
Referenced by <a class="el" href="lifegrd_8c-source.html#l00194">OnHeartbeatProducerUpdate()</a>, and <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
|
|
193 |
<p>
|
|
194 |
Here is the call graph for this function:<p><center><img src="lifegrd_8c_8896f6846e4d020390f6953f3d98aa21_cgraph.png" border="0" usemap="#lifegrd_8c_8896f6846e4d020390f6953f3d98aa21_cgraph_map" alt=""></center>
|
|
195 |
<map name="lifegrd_8c_8896f6846e4d020390f6953f3d98aa21_cgraph_map">
|
|
196 |
<area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="176,5,368,29" alt="">
|
|
197 |
<area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="164,53,380,77" alt="">
|
|
198 |
<area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="429,103,613,127" alt="">
|
|
199 |
<area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="165,152,379,176" alt="">
|
|
200 |
<area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="231,200,313,224" alt="">
|
|
201 |
<area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="463,55,580,79" alt="">
|
|
202 |
<area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="663,79,745,103" alt="">
|
|
203 |
<area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="465,152,577,176" alt="">
|
|
204 |
</map>
|
|
205 |
|
207
|
206 |
</div>
|
|
207 |
</div><p>
|
|
208 |
<a class="anchor" name="1b73047269c2a02065e12af18c6053c7"></a><!-- doxytag: member="lifegrd.c::heartbeatStop" ref="1b73047269c2a02065e12af18c6053c7" args="(CO_Data *d)" -->
|
|
209 |
<div class="memitem">
|
|
210 |
<div class="memproto">
|
|
211 |
<table class="memname">
|
|
212 |
<tr>
|
|
213 |
<td class="memname">void heartbeatStop </td>
|
|
214 |
<td>(</td>
|
|
215 |
<td class="paramtype">CO_Data * </td>
|
|
216 |
<td class="paramname"> <em>d</em> </td>
|
|
217 |
<td> ) </td>
|
|
218 |
<td width="100%"></td>
|
|
219 |
</tr>
|
|
220 |
</table>
|
|
221 |
</div>
|
|
222 |
<div class="memdoc">
|
|
223 |
|
|
224 |
<p>
|
210
|
225 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
226 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
227 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
228 |
</table>
|
|
229 |
</dl>
|
|
230 |
|
|
231 |
<p>
|
|
232 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00236">236</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
233 |
<p>
|
|
234 |
References <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>.
|
|
235 |
<p>
|
|
236 |
Referenced by <a class="el" href="lifegrd_8c-source.html#l00194">OnHeartbeatProducerUpdate()</a>, and <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
|
|
237 |
<p>
|
|
238 |
Here is the call graph for this function:<p><center><img src="lifegrd_8c_1b73047269c2a02065e12af18c6053c7_cgraph.png" border="0" usemap="#lifegrd_8c_1b73047269c2a02065e12af18c6053c7_cgraph_map" alt=""></center>
|
|
239 |
<map name="lifegrd_8c_1b73047269c2a02065e12af18c6053c7_cgraph_map">
|
|
240 |
<area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="175,6,257,30" alt="">
|
|
241 |
</map>
|
|
242 |
|
207
|
243 |
</div>
|
|
244 |
</div><p>
|
|
245 |
<a class="anchor" name="ec7b3543d04cf7d7098b27fba2510696"></a><!-- doxytag: member="lifegrd.c::OnHearbeatProducerUpdate" ref="ec7b3543d04cf7d7098b27fba2510696" args="(CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)" -->
|
|
246 |
<div class="memitem">
|
|
247 |
<div class="memproto">
|
|
248 |
<table class="memname">
|
|
249 |
<tr>
|
|
250 |
<td class="memname">UNS32 OnHearbeatProducerUpdate </td>
|
|
251 |
<td>(</td>
|
|
252 |
<td class="paramtype">CO_Data * </td>
|
|
253 |
<td class="paramname"> <em>d</em>, </td>
|
|
254 |
</tr>
|
|
255 |
<tr>
|
|
256 |
<td class="paramkey"></td>
|
|
257 |
<td></td>
|
|
258 |
<td class="paramtype">const indextable * </td>
|
|
259 |
<td class="paramname"> <em>unsused_indextable</em>, </td>
|
|
260 |
</tr>
|
|
261 |
<tr>
|
|
262 |
<td class="paramkey"></td>
|
|
263 |
<td></td>
|
|
264 |
<td class="paramtype">UNS8 </td>
|
|
265 |
<td class="paramname"> <em>unsused_bSubindex</em></td><td> </td>
|
|
266 |
</tr>
|
|
267 |
<tr>
|
|
268 |
<td></td>
|
|
269 |
<td>)</td>
|
|
270 |
<td></td><td></td><td width="100%"></td>
|
|
271 |
</tr>
|
|
272 |
</table>
|
|
273 |
</div>
|
|
274 |
<div class="memdoc">
|
|
275 |
|
|
276 |
<p>
|
|
277 |
|
|
278 |
</div>
|
|
279 |
</div><p>
|
|
280 |
<a class="anchor" name="098c81fb9326fb2c7b43e88a55ce1368"></a><!-- doxytag: member="lifegrd.c::OnHeartbeatProducerUpdate" ref="098c81fb9326fb2c7b43e88a55ce1368" args="(CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)" -->
|
|
281 |
<div class="memitem">
|
|
282 |
<div class="memproto">
|
|
283 |
<table class="memname">
|
|
284 |
<tr>
|
|
285 |
<td class="memname">UNS32 OnHeartbeatProducerUpdate </td>
|
|
286 |
<td>(</td>
|
|
287 |
<td class="paramtype">CO_Data * </td>
|
|
288 |
<td class="paramname"> <em>d</em>, </td>
|
|
289 |
</tr>
|
|
290 |
<tr>
|
|
291 |
<td class="paramkey"></td>
|
|
292 |
<td></td>
|
|
293 |
<td class="paramtype">const indextable * </td>
|
|
294 |
<td class="paramname"> <em>unsused_indextable</em>, </td>
|
|
295 |
</tr>
|
|
296 |
<tr>
|
|
297 |
<td class="paramkey"></td>
|
|
298 |
<td></td>
|
|
299 |
<td class="paramtype">UNS8 </td>
|
|
300 |
<td class="paramname"> <em>unsused_bSubindex</em></td><td> </td>
|
|
301 |
</tr>
|
|
302 |
<tr>
|
|
303 |
<td></td>
|
|
304 |
<td>)</td>
|
|
305 |
<td></td><td></td><td width="100%"></td>
|
|
306 |
</tr>
|
|
307 |
</table>
|
|
308 |
</div>
|
|
309 |
<div class="memdoc">
|
|
310 |
|
|
311 |
<p>
|
210
|
312 |
This is called when Index 0x1017 is updated.<p>
|
|
313 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
314 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
315 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
316 |
<tr><td valign="top"></td><td valign="top"><em>unsused_indextable</em> </td><td></td></tr>
|
|
317 |
<tr><td valign="top"></td><td valign="top"><em>unsused_bSubindex</em> </td><td></td></tr>
|
|
318 |
</table>
|
|
319 |
</dl>
|
|
320 |
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
321 |
|
|
322 |
<p>
|
|
323 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00194">194</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
324 |
<p>
|
|
325 |
References <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>, and <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>.
|
|
326 |
<p>
|
|
327 |
Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>.
|
|
328 |
<p>
|
|
329 |
Here is the call graph for this function:<p><center><img src="lifegrd_8c_098c81fb9326fb2c7b43e88a55ce1368_cgraph.png" border="0" usemap="#lifegrd_8c_098c81fb9326fb2c7b43e88a55ce1368_cgraph_map" alt=""></center>
|
|
330 |
<map name="lifegrd_8c_098c81fb9326fb2c7b43e88a55ce1368_cgraph_map">
|
|
331 |
<area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="278,101,387,125" alt="">
|
|
332 |
<area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="274,173,391,197" alt="">
|
|
333 |
<area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="451,101,643,125" alt="">
|
|
334 |
<area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="455,149,639,173" alt="">
|
|
335 |
<area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="440,5,654,29" alt="">
|
|
336 |
<area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="506,53,588,77" alt="">
|
|
337 |
<area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="716,175,799,199" alt="">
|
|
338 |
<area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="702,5,814,29" alt="">
|
|
339 |
</map>
|
|
340 |
|
207
|
341 |
</div>
|
|
342 |
</div><p>
|
|
343 |
<a class="anchor" name="b3248945e06e8b05518beddf665f174d"></a><!-- doxytag: member="lifegrd.c::proceedNODE_GUARD" ref="b3248945e06e8b05518beddf665f174d" args="(CO_Data *d, Message *m)" -->
|
|
344 |
<div class="memitem">
|
|
345 |
<div class="memproto">
|
|
346 |
<table class="memname">
|
|
347 |
<tr>
|
|
348 |
<td class="memname">void proceedNODE_GUARD </td>
|
|
349 |
<td>(</td>
|
|
350 |
<td class="paramtype">CO_Data * </td>
|
|
351 |
<td class="paramname"> <em>d</em>, </td>
|
|
352 |
</tr>
|
|
353 |
<tr>
|
|
354 |
<td class="paramkey"></td>
|
|
355 |
<td></td>
|
|
356 |
<td class="paramtype">Message * </td>
|
|
357 |
<td class="paramname"> <em>m</em></td><td> </td>
|
|
358 |
</tr>
|
|
359 |
<tr>
|
|
360 |
<td></td>
|
|
361 |
<td>)</td>
|
|
362 |
<td></td><td></td><td width="100%"></td>
|
|
363 |
</tr>
|
|
364 |
</table>
|
|
365 |
</div>
|
|
366 |
<div class="memdoc">
|
|
367 |
|
|
368 |
<p>
|
210
|
369 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
370 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
371 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
372 |
<tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr>
|
|
373 |
</table>
|
|
374 |
</dl>
|
|
375 |
|
|
376 |
<p>
|
|
377 |
Notice that only the master can have sent this node guarding request<p>
|
|
378 |
Receiving a NMT NodeGuarding (request of the state by the master) Only answer to the NMT NodeGuarding request, the master is not checked (not implemented)<p>
|
|
379 |
send the nodeguard response.<p>
|
|
380 |
Not a request CAN<p>
|
|
381 |
the slave's state receievd is stored in the NMTable<p>
|
|
382 |
The state is stored on 7 bit<p>
|
|
383 |
Boot-Up frame reception<p>
|
|
384 |
The device send the boot-up message (Initialisation) to indicate the master that it is entered in pre_operational mode Because the device enter automaticaly in pre_operational mode, the pre_operational mode is stored NMTable[bus_id][nodeId] = Pre_operational
|
|
385 |
<p>
|
|
386 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00081">81</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
387 |
<p>
|
|
388 |
References <a class="el" href="lifegrd_8c-source.html#l00067">ConsumerHearbeatAlarm()</a>, <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>, and <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>.
|
|
389 |
<p>
|
|
390 |
Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>.
|
|
391 |
<p>
|
|
392 |
Here is the call graph for this function:<p><center><img src="lifegrd_8c_b3248945e06e8b05518beddf665f174d_cgraph.png" border="0" usemap="#lifegrd_8c_b3248945e06e8b05518beddf665f174d_cgraph_map" alt=""></center>
|
|
393 |
<map name="lifegrd_8c_b3248945e06e8b05518beddf665f174d_cgraph_map">
|
|
394 |
<area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="228,6,420,30" alt="">
|
|
395 |
<area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="283,54,366,78" alt="">
|
|
396 |
<area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="283,102,366,126" alt="">
|
|
397 |
</map>
|
|
398 |
|
207
|
399 |
</div>
|
|
400 |
</div><p>
|
|
401 |
<a class="anchor" name="626b7d9e527a898682d9122f91454de9"></a><!-- doxytag: member="lifegrd.c::ProducerHearbeatAlarm" ref="626b7d9e527a898682d9122f91454de9" args="(CO_Data *d, UNS32 id)" -->
|
|
402 |
<div class="memitem">
|
|
403 |
<div class="memproto">
|
|
404 |
<table class="memname">
|
|
405 |
<tr>
|
|
406 |
<td class="memname">void ProducerHearbeatAlarm </td>
|
|
407 |
<td>(</td>
|
|
408 |
<td class="paramtype">CO_Data * </td>
|
|
409 |
<td class="paramname"> <em>d</em>, </td>
|
|
410 |
</tr>
|
|
411 |
<tr>
|
|
412 |
<td class="paramkey"></td>
|
|
413 |
<td></td>
|
|
414 |
<td class="paramtype">UNS32 </td>
|
|
415 |
<td class="paramname"> <em>id</em></td><td> </td>
|
|
416 |
</tr>
|
|
417 |
<tr>
|
|
418 |
<td></td>
|
|
419 |
<td>)</td>
|
|
420 |
<td></td><td></td><td width="100%"></td>
|
|
421 |
</tr>
|
|
422 |
</table>
|
|
423 |
</div>
|
|
424 |
<div class="memdoc">
|
|
425 |
|
|
426 |
<p>
|
210
|
427 |
The Consumer Timer Callback<p>
|
|
428 |
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
429 |
<table border="0" cellspacing="2" cellpadding="0">
|
|
430 |
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
|
|
431 |
<tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr>
|
|
432 |
</table>
|
|
433 |
</dl>
|
|
434 |
|
|
435 |
<p>
|
|
436 |
Time expired, the heartbeat must be sent immediately generate the correct node-id: this is done by the offset 1792 (decimal) and additionaly the node-id of this device.<p>
|
|
437 |
No toggle for heartbeat !<p>
|
|
438 |
send the heartbeat
|
|
439 |
<p>
|
|
440 |
Definition at line <a class="el" href="lifegrd_8c-source.html#l00161">161</a> of file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.
|
|
441 |
<p>
|
|
442 |
References <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>.
|
|
443 |
<p>
|
|
444 |
Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>.
|
|
445 |
<p>
|
|
446 |
Here is the call graph for this function:<p><center><img src="lifegrd_8c_626b7d9e527a898682d9122f91454de9_cgraph.png" border="0" usemap="#lifegrd_8c_626b7d9e527a898682d9122f91454de9_cgraph_map" alt=""></center>
|
|
447 |
<map name="lifegrd_8c_626b7d9e527a898682d9122f91454de9_cgraph_map">
|
|
448 |
<area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="239,6,321,30" alt="">
|
|
449 |
</map>
|
|
450 |
|
|
451 |
</div>
|
|
452 |
</div><p>
|
|
453 |
<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:06 2007 for CanFestival by
|
207
|
454 |
<a href="http://www.doxygen.org/index.html">
|
|
455 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
456 |
</body>
|
|
457 |
</html>
|