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: 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><a href="annotated.html"><span>Data Structures</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> |
|
14 </ul></div> |
|
15 <div class="tabs"> |
|
16 <ul> |
|
17 <li><a href="files.html"><span>File List</span></a></li> |
|
18 <li><a href="globals.html"><span>Globals</span></a></li> |
|
19 </ul></div> |
|
20 <div class="nav"> |
|
21 <a class="el" href="dir_0aa10e4f705947227e11e7ccb081fbe4.html">src</a></div> |
|
22 <h1>lifegrd.c File Reference</h1><code>#include <<a class="el" href="data_8h-source.html">data.h</a>></code><br> |
|
23 <code>#include "<a class="el" href="lifegrd_8h-source.html">lifegrd.h</a>"</code><br> |
|
24 <code>#include "<a class="el" href="win32_2canfestival_8h-source.html">canfestival.h</a>"</code><br> |
|
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="277,309,331,336" alt=""> |
|
30 <area href="lifegrd_8h.html" shape="rect" coords="391,5,457,32" alt=""> |
|
31 <area href="win32_2canfestival_8h.html" shape="rect" coords="140,613,228,640" alt=""> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="631,360,705,387" alt=""> |
|
33 <area href="def_8h.html" shape="rect" coords="524,95,572,121" alt=""> |
|
34 <area href="can_8h.html" shape="rect" coords="524,233,572,260" alt=""> |
|
35 <area href="objdictdef_8h.html" shape="rect" coords="381,208,467,235" alt=""> |
|
36 <area href="objacces_8h.html" shape="rect" coords="385,411,463,437" alt=""> |
|
37 <area href="sdo_8h.html" shape="rect" coords="400,512,448,539" alt=""> |
|
38 <area href="pdo_8h.html" shape="rect" coords="399,107,449,133" alt=""> |
|
39 <area href="states_8h.html" shape="rect" coords="393,309,455,336" alt=""> |
|
40 <area href="sync_8h.html" shape="rect" coords="396,259,452,285" alt=""> |
|
41 <area href="nmtMaster_8h.html" shape="rect" coords="380,461,468,488" alt=""> |
|
42 <area href="config_8h.html" shape="rect" coords="636,95,700,121" alt=""> |
|
43 <area href="timer_8h.html" shape="rect" coords="519,524,577,551" alt=""> |
|
44 <area href="win32_2timerscfg_8h.html" shape="rect" coords="628,595,708,621" alt=""> |
|
45 <area href="can__driver_8h.html" shape="rect" coords="380,613,468,640" alt=""> |
|
46 </map> |
|
47 |
|
48 <p> |
|
49 <a href="lifegrd_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
50 <tr><td></td></tr> |
|
51 <tr><td colspan="2"><br><h2>Functions</h2></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#f01de9def215369ece4214cce5871508">ConsumerHearbeatAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
|
53 |
|
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#a296a819d9aedc0d7781774390908000">ProducerHearbeatAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr> |
|
55 |
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#e80d1f6da5bdaca8aada0aa50812c18a">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> |
|
57 |
|
58 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#efc37a2f9a8c56f18d7569bfb0f02554">getNodeState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr> |
|
59 |
|
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#5b34a311b7b97bb79db8e729c2dcbf36">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> |
|
61 |
|
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32 </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#9b31f862dd95cc430757f30a0306205b">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> |
|
63 |
|
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#03fbd3b6910b8058535d3e94242cb80e">heartbeatInit</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
|
65 |
|
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e">heartbeatStop</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr> |
|
67 |
|
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lifegrd_8c.html#9f9eaba98473f87f91bb8bc9654a0351">_heartbeatError</a> (UNS8 heartbeatID)</td></tr> |
|
69 |
|
70 </table> |
|
71 <hr><a name="_details"></a><h2>Detailed Description</h2> |
|
72 <dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT </dd></dl> |
|
73 <dl class="date" compact><dt><b>Date:</b></dt><dd>Mon Jun 4 17:19:24 2007 </dd></dl> |
|
74 |
|
75 <p> |
|
76 Definition in file <a class="el" href="lifegrd_8c-source.html">lifegrd.c</a>.<hr><h2>Function Documentation</h2> |
|
77 <a class="anchor" name="9f9eaba98473f87f91bb8bc9654a0351"></a><!-- doxytag: member="lifegrd.c::_heartbeatError" ref="9f9eaba98473f87f91bb8bc9654a0351" args="(UNS8 heartbeatID)" --> |
|
78 <div class="memitem"> |
|
79 <div class="memproto"> |
|
80 <table class="memname"> |
|
81 <tr> |
|
82 <td class="memname">void _heartbeatError </td> |
|
83 <td>(</td> |
|
84 <td class="paramtype">UNS8 </td> |
|
85 <td class="paramname"> <em>heartbeatID</em> </td> |
|
86 <td> ) </td> |
|
87 <td width="100%"></td> |
|
88 </tr> |
|
89 </table> |
|
90 </div> |
|
91 <div class="memdoc"> |
|
92 |
|
93 <p> |
|
94 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
95 <table border="0" cellspacing="2" cellpadding="0"> |
|
96 <tr><td valign="top"></td><td valign="top"><em>heartbeatID</em> </td><td></td></tr> |
|
97 </table> |
|
98 </dl> |
|
99 |
|
100 <p> |
|
101 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>. |
|
102 </div> |
|
103 </div><p> |
|
104 <a class="anchor" name="f01de9def215369ece4214cce5871508"></a><!-- doxytag: member="lifegrd.c::ConsumerHearbeatAlarm" ref="f01de9def215369ece4214cce5871508" args="(CO_Data *d, UNS32 id)" --> |
|
105 <div class="memitem"> |
|
106 <div class="memproto"> |
|
107 <table class="memname"> |
|
108 <tr> |
|
109 <td class="memname">void ConsumerHearbeatAlarm </td> |
|
110 <td>(</td> |
|
111 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
112 <td class="paramname"> <em>d</em>, </td> |
|
113 </tr> |
|
114 <tr> |
|
115 <td class="paramkey"></td> |
|
116 <td></td> |
|
117 <td class="paramtype">UNS32 </td> |
|
118 <td class="paramname"> <em>id</em></td><td> </td> |
|
119 </tr> |
|
120 <tr> |
|
121 <td></td> |
|
122 <td>)</td> |
|
123 <td></td><td></td><td width="100%"></td> |
|
124 </tr> |
|
125 </table> |
|
126 </div> |
|
127 <div class="memdoc"> |
|
128 |
|
129 <p> |
|
130 The Consumer Timer Callback<p> |
|
131 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
132 <table border="0" cellspacing="2" cellpadding="0"> |
|
133 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
134 <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr> |
|
135 </table> |
|
136 </dl> |
|
137 |
|
138 <p> |
|
139 call heartbeat error with NodeId |
|
140 <p> |
|
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>. |
|
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> |
|
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>. |
|
146 </div> |
|
147 </div><p> |
|
148 <a class="anchor" name="efc37a2f9a8c56f18d7569bfb0f02554"></a><!-- doxytag: member="lifegrd.c::getNodeState" ref="efc37a2f9a8c56f18d7569bfb0f02554" args="(CO_Data *d, UNS8 nodeId)" --> |
|
149 <div class="memitem"> |
|
150 <div class="memproto"> |
|
151 <table class="memname"> |
|
152 <tr> |
|
153 <td class="memname"><a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a> getNodeState </td> |
|
154 <td>(</td> |
|
155 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
156 <td class="paramname"> <em>d</em>, </td> |
|
157 </tr> |
|
158 <tr> |
|
159 <td class="paramkey"></td> |
|
160 <td></td> |
|
161 <td class="paramtype">UNS8 </td> |
|
162 <td class="paramname"> <em>nodeId</em></td><td> </td> |
|
163 </tr> |
|
164 <tr> |
|
165 <td></td> |
|
166 <td>)</td> |
|
167 <td></td><td></td><td width="100%"></td> |
|
168 </tr> |
|
169 </table> |
|
170 </div> |
|
171 <div class="memdoc"> |
|
172 |
|
173 <p> |
|
174 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
175 <table border="0" cellspacing="2" cellpadding="0"> |
|
176 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
177 <tr><td valign="top"></td><td valign="top"><em>nodeId</em> </td><td></td></tr> |
|
178 </table> |
|
179 </dl> |
|
180 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
|
181 |
|
182 <p> |
|
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>. |
|
188 </div> |
|
189 </div><p> |
|
190 <a class="anchor" name="03fbd3b6910b8058535d3e94242cb80e"></a><!-- doxytag: member="lifegrd.c::heartbeatInit" ref="03fbd3b6910b8058535d3e94242cb80e" args="(CO_Data *d)" --> |
|
191 <div class="memitem"> |
|
192 <div class="memproto"> |
|
193 <table class="memname"> |
|
194 <tr> |
|
195 <td class="memname">void heartbeatInit </td> |
|
196 <td>(</td> |
|
197 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
198 <td class="paramname"> <em>d</em> </td> |
|
199 <td> ) </td> |
|
200 <td width="100%"></td> |
|
201 </tr> |
|
202 </table> |
|
203 </div> |
|
204 <div class="memdoc"> |
|
205 |
|
206 <p> |
|
207 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
208 <table border="0" cellspacing="2" cellpadding="0"> |
|
209 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
210 </table> |
|
211 </dl> |
|
212 |
|
213 <p> |
|
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>. |
|
215 <p> |
|
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#l00086">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>. |
|
217 <p> |
|
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>. |
|
219 <p> |
|
220 Here is the call graph for this function:<p><center><img src="lifegrd_8c_03fbd3b6910b8058535d3e94242cb80e_cgraph.png" border="0" usemap="#lifegrd_8c_03fbd3b6910b8058535d3e94242cb80e_cgraph_map" alt=""></center> |
|
221 <map name="lifegrd_8c_03fbd3b6910b8058535d3e94242cb80e_cgraph_map"> |
|
222 <area href="lifegrd_8c.html#f01de9def215369ece4214cce5871508" shape="rect" coords="155,5,312,32" alt=""> |
|
223 <area href="lifegrd_8c.html#9b31f862dd95cc430757f30a0306205b" shape="rect" coords="145,56,321,83" alt=""> |
|
224 <area href="lifegrd_8c.html#a296a819d9aedc0d7781774390908000" shape="rect" coords="157,107,309,133" alt=""> |
|
225 <area href="objacces_8c.html#9a512a966532e40f35d3a4201bf54ead" shape="rect" coords="144,157,323,184" alt=""> |
|
226 <area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="197,208,269,235" alt=""> |
|
227 <area href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e" shape="rect" coords="372,31,465,57" alt=""> |
|
228 <area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="533,56,608,83" alt=""> |
|
229 <area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="385,132,452,159" alt=""> |
|
230 <area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="515,132,627,159" alt=""> |
|
231 <area href="objacces_8c.html#b2839d53051e322c12605c1d7f3dc4e5" shape="rect" coords="372,183,465,209" alt=""> |
|
232 </map> |
|
233 |
|
234 </div> |
|
235 </div><p> |
|
236 <a class="anchor" name="007b1f27fd9f0d6814498093f424f82e"></a><!-- doxytag: member="lifegrd.c::heartbeatStop" ref="007b1f27fd9f0d6814498093f424f82e" args="(CO_Data *d)" --> |
|
237 <div class="memitem"> |
|
238 <div class="memproto"> |
|
239 <table class="memname"> |
|
240 <tr> |
|
241 <td class="memname">void heartbeatStop </td> |
|
242 <td>(</td> |
|
243 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
244 <td class="paramname"> <em>d</em> </td> |
|
245 <td> ) </td> |
|
246 <td width="100%"></td> |
|
247 </tr> |
|
248 </table> |
|
249 </div> |
|
250 <div class="memdoc"> |
|
251 |
|
252 <p> |
|
253 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
254 <table border="0" cellspacing="2" cellpadding="0"> |
|
255 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
256 </table> |
|
257 </dl> |
|
258 |
|
259 <p> |
|
260 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>. |
|
261 <p> |
|
262 References <a class="el" href="data_8h-source.html#l00069">struct_CO_Data::ConsumerHeartbeatCount</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="timer_8c-source.html#l00112">DelAlarm()</a>, <a class="el" href="data_8h-source.html#l00073">struct_CO_Data::ProducerHeartBeatTimer</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
|
263 <p> |
|
264 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>. |
|
265 <p> |
|
266 Here is the call graph for this function:<p><center><img src="lifegrd_8c_007b1f27fd9f0d6814498093f424f82e_cgraph.png" border="0" usemap="#lifegrd_8c_007b1f27fd9f0d6814498093f424f82e_cgraph_map" alt=""></center> |
|
267 <map name="lifegrd_8c_007b1f27fd9f0d6814498093f424f82e_cgraph_map"> |
|
268 <area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="149,5,224,32" alt=""> |
|
269 </map> |
|
270 |
|
271 </div> |
|
272 </div><p> |
|
273 <a class="anchor" name="e80d1f6da5bdaca8aada0aa50812c18a"></a><!-- doxytag: member="lifegrd.c::OnHearbeatProducerUpdate" ref="e80d1f6da5bdaca8aada0aa50812c18a" args="(CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)" --> |
|
274 <div class="memitem"> |
|
275 <div class="memproto"> |
|
276 <table class="memname"> |
|
277 <tr> |
|
278 <td class="memname">UNS32 OnHearbeatProducerUpdate </td> |
|
279 <td>(</td> |
|
280 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
281 <td class="paramname"> <em>d</em>, </td> |
|
282 </tr> |
|
283 <tr> |
|
284 <td class="paramkey"></td> |
|
285 <td></td> |
|
286 <td class="paramtype">const <a class="el" href="structtd__indextable.html">indextable</a> * </td> |
|
287 <td class="paramname"> <em>unsused_indextable</em>, </td> |
|
288 </tr> |
|
289 <tr> |
|
290 <td class="paramkey"></td> |
|
291 <td></td> |
|
292 <td class="paramtype">UNS8 </td> |
|
293 <td class="paramname"> <em>unsused_bSubindex</em></td><td> </td> |
|
294 </tr> |
|
295 <tr> |
|
296 <td></td> |
|
297 <td>)</td> |
|
298 <td></td><td></td><td width="100%"></td> |
|
299 </tr> |
|
300 </table> |
|
301 </div> |
|
302 <div class="memdoc"> |
|
303 |
|
304 <p> |
|
305 |
|
306 </div> |
|
307 </div><p> |
|
308 <a class="anchor" name="9b31f862dd95cc430757f30a0306205b"></a><!-- doxytag: member="lifegrd.c::OnHeartbeatProducerUpdate" ref="9b31f862dd95cc430757f30a0306205b" args="(CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)" --> |
|
309 <div class="memitem"> |
|
310 <div class="memproto"> |
|
311 <table class="memname"> |
|
312 <tr> |
|
313 <td class="memname">UNS32 OnHeartbeatProducerUpdate </td> |
|
314 <td>(</td> |
|
315 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
316 <td class="paramname"> <em>d</em>, </td> |
|
317 </tr> |
|
318 <tr> |
|
319 <td class="paramkey"></td> |
|
320 <td></td> |
|
321 <td class="paramtype">const <a class="el" href="structtd__indextable.html">indextable</a> * </td> |
|
322 <td class="paramname"> <em>unsused_indextable</em>, </td> |
|
323 </tr> |
|
324 <tr> |
|
325 <td class="paramkey"></td> |
|
326 <td></td> |
|
327 <td class="paramtype">UNS8 </td> |
|
328 <td class="paramname"> <em>unsused_bSubindex</em></td><td> </td> |
|
329 </tr> |
|
330 <tr> |
|
331 <td></td> |
|
332 <td>)</td> |
|
333 <td></td><td></td><td width="100%"></td> |
|
334 </tr> |
|
335 </table> |
|
336 </div> |
|
337 <div class="memdoc"> |
|
338 |
|
339 <p> |
|
340 This is called when Index 0x1017 is updated.<p> |
|
341 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
342 <table border="0" cellspacing="2" cellpadding="0"> |
|
343 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
344 <tr><td valign="top"></td><td valign="top"><em>unsused_indextable</em> </td><td></td></tr> |
|
345 <tr><td valign="top"></td><td valign="top"><em>unsused_bSubindex</em> </td><td></td></tr> |
|
346 </table> |
|
347 </dl> |
|
348 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
|
349 |
|
350 <p> |
|
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>. |
|
352 <p> |
|
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>. |
|
354 <p> |
|
355 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
|
356 <p> |
|
357 Here is the call graph for this function:<p><center><img src="lifegrd_8c_9b31f862dd95cc430757f30a0306205b_cgraph.png" border="0" usemap="#lifegrd_8c_9b31f862dd95cc430757f30a0306205b_cgraph_map" alt=""></center> |
|
358 <map name="lifegrd_8c_9b31f862dd95cc430757f30a0306205b_cgraph_map"> |
|
359 <area href="lifegrd_8c.html#03fbd3b6910b8058535d3e94242cb80e" shape="rect" coords="233,107,321,133" alt=""> |
|
360 <area href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e" shape="rect" coords="231,183,324,209" alt=""> |
|
361 <area href="lifegrd_8c.html#f01de9def215369ece4214cce5871508" shape="rect" coords="384,56,541,83" alt=""> |
|
362 <area href="lifegrd_8c.html#a296a819d9aedc0d7781774390908000" shape="rect" coords="387,157,539,184" alt=""> |
|
363 <area href="objacces_8c.html#9a512a966532e40f35d3a4201bf54ead" shape="rect" coords="373,107,552,133" alt=""> |
|
364 <area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="427,5,499,32" alt=""> |
|
365 <area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="615,157,681,184" alt=""> |
|
366 <area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="611,208,685,235" alt=""> |
|
367 <area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="744,157,856,184" alt=""> |
|
368 <area href="objacces_8c.html#b2839d53051e322c12605c1d7f3dc4e5" shape="rect" coords="601,107,695,133" alt=""> |
|
369 </map> |
|
370 |
|
371 </div> |
|
372 </div><p> |
|
373 <a class="anchor" name="5b34a311b7b97bb79db8e729c2dcbf36"></a><!-- doxytag: member="lifegrd.c::proceedNODE_GUARD" ref="5b34a311b7b97bb79db8e729c2dcbf36" args="(CO_Data *d, Message *m)" --> |
|
374 <div class="memitem"> |
|
375 <div class="memproto"> |
|
376 <table class="memname"> |
|
377 <tr> |
|
378 <td class="memname">void proceedNODE_GUARD </td> |
|
379 <td>(</td> |
|
380 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
381 <td class="paramname"> <em>d</em>, </td> |
|
382 </tr> |
|
383 <tr> |
|
384 <td class="paramkey"></td> |
|
385 <td></td> |
|
386 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
387 <td class="paramname"> <em>m</em></td><td> </td> |
|
388 </tr> |
|
389 <tr> |
|
390 <td></td> |
|
391 <td>)</td> |
|
392 <td></td><td></td><td width="100%"></td> |
|
393 </tr> |
|
394 </table> |
|
395 </div> |
|
396 <div class="memdoc"> |
|
397 |
|
398 <p> |
|
399 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
400 <table border="0" cellspacing="2" cellpadding="0"> |
|
401 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
402 <tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr> |
|
403 </table> |
|
404 </dl> |
|
405 |
|
406 <p> |
|
407 Notice that only the master can have sent this node guarding request<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) |
|
409 <p> |
|
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>. |
|
411 <p> |
|
412 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="data_8h-source.html#l00087">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#l00120">GET_NODE_ID</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538de69e6bdd47a9d7dae023237acdaad5e">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#l00086">struct_CO_Data::toggle</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538c10f9d2ed7c3268d46023240e3bef9b9">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>. |
|
413 <p> |
|
414 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
|
415 <p> |
|
416 Here is the call graph for this function:<p><center><img src="lifegrd_8c_5b34a311b7b97bb79db8e729c2dcbf36_cgraph.png" border="0" usemap="#lifegrd_8c_5b34a311b7b97bb79db8e729c2dcbf36_cgraph_map" alt=""></center> |
|
417 <map name="lifegrd_8c_5b34a311b7b97bb79db8e729c2dcbf36_cgraph_map"> |
|
418 <area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="255,5,321,32" alt=""> |
|
419 <area href="lifegrd_8c.html#f01de9def215369ece4214cce5871508" shape="rect" coords="209,56,367,83" alt=""> |
|
420 <area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="251,107,325,133" alt=""> |
|
421 <area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="252,157,324,184" alt=""> |
|
422 <area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="416,5,528,32" alt=""> |
|
423 </map> |
|
424 |
|
425 </div> |
|
426 </div><p> |
|
427 <a class="anchor" name="a296a819d9aedc0d7781774390908000"></a><!-- doxytag: member="lifegrd.c::ProducerHearbeatAlarm" ref="a296a819d9aedc0d7781774390908000" args="(CO_Data *d, UNS32 id)" --> |
|
428 <div class="memitem"> |
|
429 <div class="memproto"> |
|
430 <table class="memname"> |
|
431 <tr> |
|
432 <td class="memname">void ProducerHearbeatAlarm </td> |
|
433 <td>(</td> |
|
434 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
|
435 <td class="paramname"> <em>d</em>, </td> |
|
436 </tr> |
|
437 <tr> |
|
438 <td class="paramkey"></td> |
|
439 <td></td> |
|
440 <td class="paramtype">UNS32 </td> |
|
441 <td class="paramname"> <em>id</em></td><td> </td> |
|
442 </tr> |
|
443 <tr> |
|
444 <td></td> |
|
445 <td>)</td> |
|
446 <td></td><td></td><td width="100%"></td> |
|
447 </tr> |
|
448 </table> |
|
449 </div> |
|
450 <div class="memdoc"> |
|
451 |
|
452 <p> |
|
453 The Consumer Timer Callback<p> |
|
454 <dl compact><dt><b>Parameters:</b></dt><dd> |
|
455 <table border="0" cellspacing="2" cellpadding="0"> |
|
456 <tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr> |
|
457 <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td></td></tr> |
|
458 </table> |
|
459 </dl> |
|
460 |
|
461 <p> |
|
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>. |
|
463 <p> |
|
464 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="data_8h-source.html#l00087">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>. |
|
465 <p> |
|
466 Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>. |
|
467 <p> |
|
468 Here is the call graph for this function:<p><center><img src="lifegrd_8c_a296a819d9aedc0d7781774390908000_cgraph.png" border="0" usemap="#lifegrd_8c_a296a819d9aedc0d7781774390908000_cgraph_map" alt=""></center> |
|
469 <map name="lifegrd_8c_a296a819d9aedc0d7781774390908000_cgraph_map"> |
|
470 <area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="209,5,276,32" alt=""> |
|
471 <area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="205,56,280,83" alt=""> |
|
472 <area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="328,5,440,32" alt=""> |
|
473 </map> |
|
474 |
|
475 </div> |
|
476 </div><p> |
|
477 <hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:37 2007 for CanFestival by |
|
478 <a href="http://www.doxygen.org/index.html"> |
|
479 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
480 </body> |
|
481 </html> |
|