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/lifegrd.c File Reference</title> |
3 <title>CanFestival: src/lifegrd.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/lifegrd.c File Reference</h1><code>#include <data.h></code><br> |
20 <div class="nav"> |
19 <code>#include "lifegrd.h"</code><br> |
21 <a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div> |
20 <code>#include "canfestival.h"</code><br> |
22 <h1>lifegrd.c File Reference</h1><code>#include <<a class="el" href="data_8h-source.html">data.h</a>></code><br> |
21 |
23 <code>#include "<a class="el" href="lifegrd_8h-source.html">lifegrd.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 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> |
25 |
|
26 <p> |
|
27 Include dependency graph for lifegrd.c:<p><center><img src="lifegrd_8c__incl.png" border="0" usemap="#src/lifegrd.c_map" alt=""></center> |
|
28 <map name="src/lifegrd.c_map"> |
|
29 <area href="data_8h.html" shape="rect" coords="332,275,396,299" alt=""> |
|
30 <area href="lifegrd_8h.html" shape="rect" coords="479,494,556,518" alt=""> |
|
31 <area href="win32_2canfestival_8h.html" shape="rect" coords="156,567,263,591" alt=""> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="741,440,829,464" alt=""> |
|
33 <area href="def_8h.html" shape="rect" coords="625,31,681,55" alt=""> |
|
34 <area href="can_8h.html" shape="rect" coords="488,542,547,566" alt=""> |
|
35 <area href="objdictdef_8h.html" shape="rect" coords="467,299,568,323" alt=""> |
|
36 <area href="objacces_8h.html" shape="rect" coords="471,203,564,227" alt=""> |
|
37 <area href="sdo_8h.html" shape="rect" coords="488,446,547,470" alt=""> |
|
38 <area href="pdo_8h.html" shape="rect" coords="488,104,547,128" alt=""> |
|
39 <area href="states_8h.html" shape="rect" coords="480,251,555,275" alt=""> |
|
40 <area href="sync_8h.html" shape="rect" coords="484,347,551,371" alt=""> |
|
41 <area href="nmtMaster_8h.html" shape="rect" coords="464,56,571,80" alt=""> |
|
42 <area href="config_8h.html" shape="rect" coords="748,31,823,55" alt=""> |
|
43 <area href="timer_8h.html" shape="rect" coords="619,440,688,464" alt=""> |
|
44 <area href="win32_2timerscfg_8h.html" shape="rect" coords="736,564,835,588" alt=""> |
|
45 <area href="can__driver_8h.html" shape="rect" coords="312,567,416,591" alt=""> |
|
46 </map> |
24 |
47 |
25 <p> |
48 <p> |
26 <a href="lifegrd_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
49 <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> |
50 <tr><td></td></tr> |
28 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
51 <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> |
52 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
30 |
53 |
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> |
54 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
32 |
55 |
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> |
56 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, const <a class="el" href="structtd__indextable.html">indextable</a> *unsused_indextable, UNS8 unsused_bSubindex)</td></tr> |
34 |
57 |
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> |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#627254070e45c23f1776e12c524492ff">getNodeState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr> |
36 |
59 |
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> |
60 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
38 |
61 |
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> |
62 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, const <a class="el" href="structtd__indextable.html">indextable</a> *unsused_indextable, UNS8 unsused_bSubindex)</td></tr> |
40 |
63 |
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> |
64 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
42 |
65 |
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> |
66 <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> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
44 |
67 |
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> |
68 <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 |
69 |
47 </table> |
70 </table> |
48 <hr><a name="_details"></a><h2>Detailed Description</h2> |
71 <hr><a name="_details"></a><h2>Detailed Description</h2> |
115 <p> |
138 <p> |
116 call heartbeat error with NodeId |
139 call heartbeat error with NodeId |
117 <p> |
140 <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>. |
141 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> |
142 <p> |
|
143 References <a class="el" href="data_8h-source.html#l00070">struct_CO_Data::ConsumerHeartbeatEntries</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00074">struct_CO_Data::heartbeatError</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>. |
|
144 <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>. |
145 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>. |
121 </div> |
146 </div> |
122 </div><p> |
147 </div><p> |
123 <a class="anchor" name="627254070e45c23f1776e12c524492ff"></a><!-- doxytag: member="lifegrd.c::getNodeState" ref="627254070e45c23f1776e12c524492ff" args="(CO_Data *d, UNS8 nodeId)" --> |
148 <a class="anchor" name="627254070e45c23f1776e12c524492ff"></a><!-- doxytag: member="lifegrd.c::getNodeState" ref="627254070e45c23f1776e12c524492ff" args="(CO_Data *d, UNS8 nodeId)" --> |
124 <div class="memitem"> |
149 <div class="memitem"> |
125 <div class="memproto"> |
150 <div class="memproto"> |
126 <table class="memname"> |
151 <table class="memname"> |
127 <tr> |
152 <tr> |
128 <td class="memname">e_nodeState getNodeState </td> |
153 <td class="memname"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a> getNodeState </td> |
129 <td>(</td> |
154 <td>(</td> |
130 <td class="paramtype">CO_Data * </td> |
155 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
131 <td class="paramname"> <em>d</em>, </td> |
156 <td class="paramname"> <em>d</em>, </td> |
132 </tr> |
157 </tr> |
133 <tr> |
158 <tr> |
134 <td class="paramkey"></td> |
159 <td class="paramkey"></td> |
135 <td></td> |
160 <td></td> |
154 </dl> |
179 </dl> |
155 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
180 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
156 |
181 |
157 <p> |
182 <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>. |
183 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>. |
|
184 <p> |
|
185 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, and <a class="el" href="data_8h-source.html#l00075">struct_CO_Data::NMTable</a>. |
|
186 <p> |
|
187 Referenced by <a class="el" href="main_8c-source.html#l00037">GetChangeStateResults()</a>. |
159 </div> |
188 </div> |
160 </div><p> |
189 </div><p> |
161 <a class="anchor" name="8896f6846e4d020390f6953f3d98aa21"></a><!-- doxytag: member="lifegrd.c::heartbeatInit" ref="8896f6846e4d020390f6953f3d98aa21" args="(CO_Data *d)" --> |
190 <a class="anchor" name="8896f6846e4d020390f6953f3d98aa21"></a><!-- doxytag: member="lifegrd.c::heartbeatInit" ref="8896f6846e4d020390f6953f3d98aa21" args="(CO_Data *d)" --> |
162 <div class="memitem"> |
191 <div class="memitem"> |
163 <div class="memproto"> |
192 <div class="memproto"> |
164 <table class="memname"> |
193 <table class="memname"> |
165 <tr> |
194 <tr> |
166 <td class="memname">void heartbeatInit </td> |
195 <td class="memname">void heartbeatInit </td> |
167 <td>(</td> |
196 <td>(</td> |
168 <td class="paramtype">CO_Data * </td> |
197 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
169 <td class="paramname"> <em>d</em> </td> |
198 <td class="paramname"> <em>d</em> </td> |
170 <td> ) </td> |
199 <td> ) </td> |
171 <td width="100%"></td> |
200 <td width="100%"></td> |
172 </tr> |
201 </tr> |
173 </table> |
202 </table> |
180 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
209 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
181 </table> |
210 </table> |
182 </dl> |
211 </dl> |
183 |
212 |
184 <p> |
213 <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>. |
214 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> |
215 <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>. |
216 References <a class="el" href="lifegrd_8c-source.html#l00067">ConsumerHearbeatAlarm()</a>, <a class="el" href="data_8h-source.html#l00069">struct_CO_Data::ConsumerHeartbeatCount</a>, <a class="el" href="data_8h-source.html#l00070">struct_CO_Data::ConsumerHeartbeatEntries</a>, <a class="el" href="data_8h-source.html#l00071">struct_CO_Data::ConsumerHeartBeatTimers</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00156">MS_TO_TIMEVAL</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="data_8h-source.html#l00072">struct_CO_Data::ProducerHeartBeatTime</a>, <a class="el" href="data_8h-source.html#l00073">struct_CO_Data::ProducerHeartBeatTimer</a>, <a class="el" href="objacces_8c-source.html#l00419">RegisterSetODentryCallBack()</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00150">TIMEVAL</a>, <a class="el" href="data_8h-source.html#l00089">struct_CO_Data::toggle</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>. |
191 <p> |
217 <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>. |
218 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> |
219 <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> |
220 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"> |
221 <map name="lifegrd_8c_8896f6846e4d020390f6953f3d98aa21_cgraph_map"> |
196 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="176,5,368,29" alt=""> |
222 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="176,6,368,30" alt=""> |
197 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="164,53,380,77" alt=""> |
223 <area href="lifegrd_8c.html#098c81fb9326fb2c7b43e88a55ce1368" shape="rect" coords="164,54,380,78" alt=""> |
198 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="429,103,613,127" alt=""> |
224 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="180,102,364,126" alt=""> |
199 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="165,152,379,176" alt=""> |
225 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="165,150,379,174" alt=""> |
200 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="231,200,313,224" alt=""> |
226 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="231,198,313,222" alt=""> |
201 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="463,55,580,79" alt=""> |
227 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="431,28,548,52" alt=""> |
202 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="663,79,745,103" alt=""> |
228 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="623,54,705,78" alt=""> |
203 <area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="465,152,577,176" alt=""> |
229 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="449,127,529,151" alt=""> |
|
230 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="599,127,729,151" alt=""> |
|
231 <area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="433,175,545,199" alt=""> |
204 </map> |
232 </map> |
205 |
233 |
206 </div> |
234 </div> |
207 </div><p> |
235 </div><p> |
208 <a class="anchor" name="1b73047269c2a02065e12af18c6053c7"></a><!-- doxytag: member="lifegrd.c::heartbeatStop" ref="1b73047269c2a02065e12af18c6053c7" args="(CO_Data *d)" --> |
236 <a class="anchor" name="1b73047269c2a02065e12af18c6053c7"></a><!-- doxytag: member="lifegrd.c::heartbeatStop" ref="1b73047269c2a02065e12af18c6053c7" args="(CO_Data *d)" --> |
320 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
348 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
321 |
349 |
322 <p> |
350 <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>. |
351 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> |
352 <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>. |
353 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <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> |
354 <p> |
327 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
355 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
328 <p> |
356 <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> |
357 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"> |
358 <map name="lifegrd_8c_098c81fb9326fb2c7b43e88a55ce1368_cgraph_map"> |
331 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="278,101,387,125" alt=""> |
359 <area href="lifegrd_8c.html#8896f6846e4d020390f6953f3d98aa21" shape="rect" coords="277,101,387,125" alt=""> |
332 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="274,173,391,197" alt=""> |
360 <area href="lifegrd_8c.html#1b73047269c2a02065e12af18c6053c7" shape="rect" coords="273,173,391,197" alt=""> |
333 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="451,101,643,125" alt=""> |
361 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="451,53,643,77" alt=""> |
334 <area href="lifegrd_8c.html#626b7d9e527a898682d9122f91454de9" shape="rect" coords="455,149,639,173" alt=""> |
362 <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=""> |
363 <area href="objacces_8c.html#514e7b9c13835a86446b1cd38fa34049" shape="rect" coords="440,101,653,125" alt=""> |
336 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="506,53,588,77" alt=""> |
364 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="505,5,588,29" alt=""> |
337 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="716,175,799,199" alt=""> |
365 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="717,149,797,173" alt=""> |
338 <area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="702,5,814,29" alt=""> |
366 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="716,199,799,223" alt=""> |
|
367 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="863,149,993,173" alt=""> |
|
368 <area href="objacces_8c.html#11e9f24840d05a6a622955b51f91af53" shape="rect" coords="701,101,813,125" alt=""> |
339 </map> |
369 </map> |
340 |
370 |
341 </div> |
371 </div> |
342 </div><p> |
372 </div><p> |
343 <a class="anchor" name="b3248945e06e8b05518beddf665f174d"></a><!-- doxytag: member="lifegrd.c::proceedNODE_GUARD" ref="b3248945e06e8b05518beddf665f174d" args="(CO_Data *d, Message *m)" --> |
373 <a class="anchor" name="b3248945e06e8b05518beddf665f174d"></a><!-- doxytag: member="lifegrd.c::proceedNODE_GUARD" ref="b3248945e06e8b05518beddf665f174d" args="(CO_Data *d, Message *m)" --> |
373 </table> |
403 </table> |
374 </dl> |
404 </dl> |
375 |
405 |
376 <p> |
406 <p> |
377 Notice that only the master can have sent this node guarding request<p> |
407 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> |
408 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) |
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> |
409 <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>. |
410 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> |
411 <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>. |
412 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</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="lifegrd_8c-source.html#l00067">ConsumerHearbeatAlarm()</a>, <a class="el" href="data_8h-source.html#l00069">struct_CO_Data::ConsumerHeartbeatCount</a>, <a class="el" href="data_8h-source.html#l00070">struct_CO_Data::ConsumerHeartbeatEntries</a>, <a class="el" href="data_8h-source.html#l00071">struct_CO_Data::ConsumerHeartBeatTimers</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="timer_8c-source.html#l00112">DelAlarm()</a>, <a class="el" href="objdictdef_8h-source.html#l00132">GET_NODE_ID</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5">Initialisation</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00156">MS_TO_TIMEVAL</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="data_8h-source.html#l00075">struct_CO_Data::NMTable</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00150">TIMEVAL</a>, <a class="el" href="data_8h-source.html#l00089">struct_CO_Data::toggle</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646cb4b5cb64be091d76f846380eb0afe59">Unknown_state</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>. |
389 <p> |
413 <p> |
390 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
414 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
391 <p> |
415 <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> |
416 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"> |
417 <map name="lifegrd_8c_b3248945e06e8b05518beddf665f174d_cgraph_map"> |
394 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="228,6,420,30" alt=""> |
418 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="284,6,364,30" alt=""> |
395 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="283,54,366,78" alt=""> |
419 <area href="lifegrd_8c.html#e3cd4656f5b2a37d4b8d364293538198" shape="rect" coords="228,54,420,78" alt=""> |
396 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="283,102,366,126" alt=""> |
420 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="283,102,365,126" alt=""> |
|
421 <area href="timer_8c.html#11c2616d78f06ed9144ef662f757b128" shape="rect" coords="283,150,365,174" alt=""> |
|
422 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="471,6,601,30" alt=""> |
397 </map> |
423 </map> |
398 |
424 |
399 </div> |
425 </div> |
400 </div><p> |
426 </div><p> |
401 <a class="anchor" name="626b7d9e527a898682d9122f91454de9"></a><!-- doxytag: member="lifegrd.c::ProducerHearbeatAlarm" ref="626b7d9e527a898682d9122f91454de9" args="(CO_Data *d, UNS32 id)" --> |
427 <a class="anchor" name="626b7d9e527a898682d9122f91454de9"></a><!-- doxytag: member="lifegrd.c::ProducerHearbeatAlarm" ref="626b7d9e527a898682d9122f91454de9" args="(CO_Data *d, UNS32 id)" --> |
431 <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr> |
457 <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr> |
432 </table> |
458 </table> |
433 </dl> |
459 </dl> |
434 |
460 |
435 <p> |
461 <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>. |
462 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> |
463 <p> |
442 References <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>. |
464 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</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="timer_8c-source.html#l00112">DelAlarm()</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="data_8h-source.html#l00072">struct_CO_Data::ProducerHeartBeatTime</a>, <a class="el" href="data_8h-source.html#l00073">struct_CO_Data::ProducerHeartBeatTimer</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</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>. |
443 <p> |
465 <p> |
444 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
466 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
445 <p> |
467 <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> |
468 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"> |
469 <map name="lifegrd_8c_626b7d9e527a898682d9122f91454de9_cgraph_map"> |
448 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="239,6,321,30" alt=""> |
470 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="240,6,320,30" alt=""> |
449 </map> |
471 <area href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21" shape="rect" coords="239,54,321,78" alt=""> |
450 |
472 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="372,6,503,30" alt=""> |
451 </div> |
473 </map> |
452 </div><p> |
474 |
453 <hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:06 2007 for CanFestival by |
475 </div> |
|
476 </div><p> |
|
477 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:10 2007 for CanFestival by |
454 <a href="http://www.doxygen.org/index.html"> |
478 <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> |
479 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
456 </body> |
480 </body> |
457 </html> |
481 </html> |