doc/doxygen/html/states_8c.html
author lbessard
Fri, 04 Jan 2008 17:50:06 +0100
changeset 348 c50feb2bb590
parent 240 34654679f262
permissions -rw-r--r--
Bug when close objdictedit fixed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: src/states.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_0aa10e4f705947227e11e7ccb081fbe4.html">src</a></div>
<h1>states.c File Reference</h1><code>#include &quot;<a class="el" href="states_8h-source.html">states.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="def_8h-source.html">def.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="dcf_8h-source.html">dcf.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="nmtSlave_8h-source.html">nmtSlave.h</a>&quot;</code><br>

<p>
Include dependency graph for states.c:<p><center><img src="states_8c__incl.png" border="0" usemap="#src/states.c_map" alt=""></center>
<map name="src/states.c_map">
<area href="states_8h.html" shape="rect" coords="144,467,205,493" alt="">
<area href="def_8h.html" shape="rect" coords="511,543,559,569" alt="">
<area href="dcf_8h.html" shape="rect" coords="151,644,199,671" alt="">
<area href="nmtSlave_8h.html" shape="rect" coords="135,315,215,341" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="617,340,692,367" alt="">
<area href="data_8h.html" shape="rect" coords="264,315,317,341" alt="">
<area href="can_8h.html" shape="rect" coords="511,441,559,468" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="368,188,453,215" alt="">
<area href="objacces_8h.html" shape="rect" coords="372,391,449,417" alt="">
<area href="sdo_8h.html" shape="rect" coords="387,36,435,63" alt="">
<area href="pdo_8h.html" shape="rect" coords="385,492,436,519" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="377,137,444,164" alt="">
<area href="sync_8h.html" shape="rect" coords="383,239,439,265" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="367,289,455,316" alt="">
<area href="config_8h.html" shape="rect" coords="623,543,687,569" alt="">
<area href="timer_8h.html" shape="rect" coords="505,99,564,125" alt="">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="615,112,695,139" alt="">
</map>

<p>
<a href="states_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#c91c879ec73f95abccc1eafed14370c3">StartOrStop</a>(CommType, FuncStart, FuncStop)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#2f62b2777f2f70d3b2a2779de08a871e">None</a></td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#553af6eeeba1591e3d26444d8a544856">switchCommunicationState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structs__state__communication.html">s_state_communication</a> *newCommunicationState)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#9e583d34635164324fbd55e310d8e99b">getState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#5903338b79e219eeb27f61974419fc12">canDispatch</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#cfb53d66c2360cd55b1d968f0e5c270f">setState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a> newState)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#458a686646e4500b1f9e6cf67898250e">getNodeId</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#191c0cad67e093ea44285c9acd187513">setNodeId</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#bbf7c4f549d7ffacaab5f35602e97bd6">_initialisation</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#2264bc985c7eacf7d48d16b2b9109e39">_preOperational</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#6bc47cbd7a2bdf37d998a8e4743d4260">_operational</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8c.html#fe6f57bd1c97e8a3d23c288e5920c245">_stopped</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl>
<dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl>

<p>
Definition in file <a class="el" href="states_8c-source.html">states.c</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="2f62b2777f2f70d3b2a2779de08a871e"></a><!-- doxytag: member="states.c::None" ref="2f62b2777f2f70d3b2a2779de08a871e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define None          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00112">112</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
Referenced by <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
</div>
</div><p>
<a class="anchor" name="c91c879ec73f95abccc1eafed14370c3"></a><!-- doxytag: member="states.c::StartOrStop" ref="c91c879ec73f95abccc1eafed14370c3" args="(CommType, FuncStart, FuncStop)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define StartOrStop          </td>
          <td>(</td>
          <td class="paramtype">CommType,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FuncStart,         <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FuncStop&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">if</span>(newCommunicationState-&gt;CommType &amp;&amp; !<a class="code" href="structstruct__s__timer__entry.html#1f47508e63fb89e692b98e178a78268f">d</a>-&gt;<a class="code" href="structstruct__CO__Data.html#ac7e1610f30cb4035d51532db75738e6">CurrentCommunicationState</a>.CommType){\
                <a class="code" href="hcs12_2applicfg_8h.html#d5dffc889e623fbc4f635e69276cdf20">MSG_WAR</a>(0x9999,#FuncStart, 9999);\
                <a class="code" href="structstruct__s__timer__entry.html#1f47508e63fb89e692b98e178a78268f">d</a>-&gt;<a class="code" href="structstruct__CO__Data.html#ac7e1610f30cb4035d51532db75738e6">CurrentCommunicationState</a>.CommType = 1;\
                FuncStart;\
        }<span class="keywordflow">else</span> <span class="keywordflow">if</span>(!newCommunicationState-&gt;CommType &amp;&amp; <a class="code" href="structstruct__s__timer__entry.html#1f47508e63fb89e692b98e178a78268f">d</a>-&gt;<a class="code" href="structstruct__CO__Data.html#ac7e1610f30cb4035d51532db75738e6">CurrentCommunicationState</a>.CommType){\
                <a class="code" href="hcs12_2applicfg_8h.html#d5dffc889e623fbc4f635e69276cdf20">MSG_WAR</a>(0x9999,#FuncStop, 9999);\
                <a class="code" href="structstruct__s__timer__entry.html#1f47508e63fb89e692b98e178a78268f">d</a>-&gt;<a class="code" href="structstruct__CO__Data.html#ac7e1610f30cb4035d51532db75738e6">CurrentCommunicationState</a>.CommType = 0;\
                FuncStop;\
        }
</pre></div>
<p>
Definition at line <a class="el" href="states_8c-source.html#l00102">102</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
Referenced by <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="bbf7c4f549d7ffacaab5f35602e97bd6"></a><!-- doxytag: member="states.c::_initialisation" ref="bbf7c4f549d7ffacaab5f35602e97bd6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _initialisation           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00285">285</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="6bc47cbd7a2bdf37d998a8e4743d4260"></a><!-- doxytag: member="states.c::_operational" ref="6bc47cbd7a2bdf37d998a8e4743d4260" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _operational           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00287">287</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="2264bc985c7eacf7d48d16b2b9109e39"></a><!-- doxytag: member="states.c::_preOperational" ref="2264bc985c7eacf7d48d16b2b9109e39" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _preOperational           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00286">286</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="fe6f57bd1c97e8a3d23c288e5920c245"></a><!-- doxytag: member="states.c::_stopped" ref="fe6f57bd1c97e8a3d23c288e5920c245" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _stopped           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00288">288</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="5903338b79e219eeb27f61974419fc12"></a><!-- doxytag: member="states.c::canDispatch" ref="5903338b79e219eeb27f61974419fc12" args="(CO_Data *d, Message *m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void canDispatch           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMessage.html">Message</a> *&nbsp;</td>
          <td class="paramname"> <em>m</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>m</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00065">65</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="states_8h-source.html#l00054">s_state_communication::csHeartbeat</a>, <a class="el" href="states_8h-source.html#l00055">s_state_communication::csPDO</a>, <a class="el" href="states_8h-source.html#l00051">s_state_communication::csSDO</a>, <a class="el" href="states_8h-source.html#l00053">s_state_communication::csSYNC</a>, <a class="el" href="data_8h-source.html#l00062">struct_CO_Data::CurrentCommunicationState</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00053">struct_CO_Data::iam_a_slave</a>, <a class="el" href="def_8h-source.html#l00084">NMT</a>, <a class="el" href="def_8h-source.html#l00097">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00088">PDO1rx</a>, <a class="el" href="def_8h-source.html#l00087">PDO1tx</a>, <a class="el" href="def_8h-source.html#l00090">PDO2rx</a>, <a class="el" href="def_8h-source.html#l00089">PDO2tx</a>, <a class="el" href="def_8h-source.html#l00092">PDO3rx</a>, <a class="el" href="def_8h-source.html#l00091">PDO3tx</a>, <a class="el" href="def_8h-source.html#l00094">PDO4rx</a>, <a class="el" href="def_8h-source.html#l00093">PDO4tx</a>, <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00141">proceedPDO()</a>, <a class="el" href="sdo_8c-source.html#l00608">proceedSDO()</a>, <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>, <a class="el" href="def_8h-source.html#l00096">SDOrx</a>, <a class="el" href="def_8h-source.html#l00095">SDOtx</a>, <a class="el" href="def_8h-source.html#l00085">SYNC</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
<p>
Referenced by <a class="el" href="unix_8c-source.html#l00132">canReceiveLoop()</a>, and <a class="el" href="appli_8c-source.html#l00383">main()</a>.
<p>
Here is the call graph for this function:<p><center><img src="states_8c_5903338b79e219eeb27f61974419fc12_cgraph.png" border="0" usemap="#states_8c_5903338b79e219eeb27f61974419fc12_cgraph_map" alt=""></center>
<map name="states_8c_5903338b79e219eeb27f61974419fc12_cgraph_map">
<area href="nmtSlave_8c.html#078a76722e34eb36a14a39ecf16f3a9d" shape="rect" coords="143,69,300,96" alt="">
<area href="lifegrd_8c.html#5b34a311b7b97bb79db8e729c2dcbf36" shape="rect" coords="349,113,504,140" alt="">
<area href="pdo_8c.html#f653b9e9cc46d8290b3ce2d6392b5a52" shape="rect" coords="381,247,472,273" alt="">
<area href="sdo_8c.html#c93bfdbec900f0b60386f0a2a5256826" shape="rect" coords="176,537,267,564" alt="">
<area href="sync_8c.html#89ae8cfbfc53c26248d5d91f689c7197" shape="rect" coords="172,588,271,615" alt="">
<area href="states_8c.html#cfb53d66c2360cd55b1d968f0e5c270f" shape="rect" coords="396,63,457,89" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="599,107,665,133" alt="">
<area href="lifegrd_8c.html#f01de9def215369ece4214cce5871508" shape="rect" coords="553,56,711,83" alt="">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="595,157,669,184" alt="">
<area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="596,5,668,32" alt="">
<area href="pdo_8c.html#06b1b812ca18d3167243fb2b2acb6414" shape="rect" coords="595,208,669,235" alt="">
<area href="pdo_8c.html#ad755ad656fe0f661ca6bd17acb1245a" shape="rect" coords="767,233,839,260" alt="">
<area href="pdo_8c.html#1e6f0540474e95f2928151efec83ccb6" shape="rect" coords="560,309,704,336" alt="">
<area href="objacces_8c.html#dad5d2f7890168cade2fbb7e0e4c6200" shape="rect" coords="591,360,673,387" alt="">
<area href="sdo_8c.html#85872a68746c862b8771045ef45385a5" shape="rect" coords="388,816,465,843" alt="">
<area href="sdo_8c.html#93b0dc6875fffd911a7b0dc1ba96a8d1" shape="rect" coords="572,841,692,868" alt="">
<area href="sdo_8c.html#0d8fa7ef68e2d40eb014d9b89abf5448" shape="rect" coords="585,461,679,488" alt="">
<area href="sdo_8c.html#397e3c42e4165191c97fe342ae02e184" shape="rect" coords="760,436,845,463" alt="">
<area href="sdo_8c.html#cb77818f302f413301728d27c091fa03" shape="rect" coords="372,512,481,539" alt="">
<area href="sdo_8c.html#8e536d3bb6ddd6da6da2148a39f00c5a" shape="rect" coords="357,563,496,589" alt="">
<area href="sdo_8c.html#ed2846a6b2403ab9f0b69712f0411d66" shape="rect" coords="385,613,468,640" alt="">
<area href="sdo_8c.html#57448321a7e327ac8264dfed071a1f90" shape="rect" coords="367,664,487,691" alt="">
<area href="sdo_8c.html#6603431e4ce111d365118681a3b80653" shape="rect" coords="365,360,488,387" alt="">
<area href="sdo_8c.html#bd7fd1f216960f4765749ff21b8c40fb" shape="rect" coords="385,715,468,741" alt="">
<area href="sdo_8c.html#b708fa701e4afbb7b63c6e658317e6dc" shape="rect" coords="391,183,463,209" alt="">
<area href="sdo_8c.html#6d81cdca911a4ea0234ab4b620a554f3" shape="rect" coords="359,765,495,792" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="458a686646e4500b1f9e6cf67898250e"></a><!-- doxytag: member="states.c::getNodeId" ref="458a686646e4500b1f9e6cf67898250e" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UNS8 getNodeId           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00224">224</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>.
<p>
Referenced by <a class="el" href="appli_8c-source.html#l00170">initSensor()</a>.
</div>
</div><p>
<a class="anchor" name="9e583d34635164324fbd55e310d8e99b"></a><!-- doxytag: member="states.c::getState" ref="9e583d34635164324fbd55e310d8e99b" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a> getState           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00054">54</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
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#l00061">struct_CO_Data::nodeState</a>.
</div>
</div><p>
<a class="anchor" name="191c0cad67e093ea44285c9acd187513"></a><!-- doxytag: member="states.c::setNodeId" ref="191c0cad67e093ea44285c9acd187513" args="(CO_Data *d, UNS8 nodeId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setNodeId           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>nodeId</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nodeId</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00235">235</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="objdictdef_8h-source.html#l00106">s_quick_index::PDO_RCV</a>, <a class="el" href="objdictdef_8h-source.html#l00108">s_quick_index::PDO_TRS</a>, <a class="el" href="objdictdef_8h-source.html#l00088">td_subindex::pObject</a>, <a class="el" href="objdictdef_8h-source.html#l00095">td_indextable::pSubindex</a>, <a class="el" href="objdictdef_8h-source.html#l00104">s_quick_index::SDO_SVR</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>.
<p>
Referenced by <a class="el" href="TestMasterMicroMod_8c-source.html#l00382">InitNodes()</a>, <a class="el" href="appli_8c-source.html#l00170">initSensor()</a>, and <a class="el" href="main_8c-source.html#l00079">main()</a>.
</div>
</div><p>
<a class="anchor" name="cfb53d66c2360cd55b1d968f0e5c270f"></a><!-- doxytag: member="states.c::setState" ref="cfb53d66c2360cd55b1d968f0e5c270f" args="(CO_Data *d, e_nodeState newState)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UNS8 setState           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="states_8h.html#424131de4b91e21fa281d2c8913d9282">e_nodeState</a>&nbsp;</td>
          <td class="paramname"> <em>newState</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>newState</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00138">138</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="dcf_8c-source.html#l00075">decompo_dcf()</a>, <a class="el" href="data_8h-source.html#l00053">struct_CO_Data::iam_a_slave</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538de69e6bdd47a9d7dae023237acdaad5e">Initialisation</a>, <a class="el" href="data_8h-source.html#l00063">struct_CO_Data::initialisation</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf63053824952153680b2c826995af50d0b16aea">Operational</a>, <a class="el" href="data_8h-source.html#l00065">struct_CO_Data::operational</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538aa3d4da3fd99f3a79599fa514561754a">Pre_operational</a>, <a class="el" href="data_8h-source.html#l00064">struct_CO_Data::preOperational</a>, <a class="el" href="dcf_8c-source.html#l00045">ptrTable</a>, <a class="el" href="data_8h-source.html#l00088">struct_CO_Data::scanIndexOD</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf63053853c74ac440bbf6af2cb67759d3cd8f0a">Stopped</a>, <a class="el" href="data_8h-source.html#l00066">struct_CO_Data::stopped</a>, <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>.
<p>
Referenced by <a class="el" href="TestMasterMicroMod_8c-source.html#l00382">InitNodes()</a>, <a class="el" href="appli_8c-source.html#l00383">main()</a>, and <a class="el" href="nmtSlave_8c-source.html#l00043">proceedNMTstateChange()</a>.
<p>
Here is the call graph for this function:<p><center><img src="states_8c_cfb53d66c2360cd55b1d968f0e5c270f_cgraph.png" border="0" usemap="#states_8c_cfb53d66c2360cd55b1d968f0e5c270f_cgraph_map" alt=""></center>
<map name="states_8c_cfb53d66c2360cd55b1d968f0e5c270f_cgraph_map">
<area href="dcf_8c.html#acb81126cc677d663f367f560ae0face" shape="rect" coords="156,81,249,108" alt="">
<area href="states_8c.html#553af6eeeba1591e3d26444d8a544856" shape="rect" coords="119,208,287,235" alt="">
<area href="dcf_8c.html#aa754826c624685ec491735501631c4e" shape="rect" coords="336,5,461,32" alt="">
<area href="lifegrd_8c.html#03fbd3b6910b8058535d3e94242cb80e" shape="rect" coords="355,56,443,83" alt="">
<area href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e" shape="rect" coords="352,107,445,133" alt="">
<area href="pdo_8c.html#858b6c5fcf09d0c6c9cdd67f92bcd8f9" shape="rect" coords="365,157,432,184" alt="">
<area href="pdo_8c.html#e31b98506e436ee213de906c19cc59f1" shape="rect" coords="363,208,435,235" alt="">
<area href="sdo_8c.html#48d2bfe1b7581346bb720ad2542bac89" shape="rect" coords="363,259,435,285" alt="">
<area href="nmtSlave_8c.html#29f6eed8d34859710f7e603a1fc0d9d1" shape="rect" coords="340,309,457,336" alt="">
<area href="sync_8c.html#4a5d93c6c2b82b6449519b1143437ee9" shape="rect" coords="359,360,439,387" alt="">
<area href="sync_8c.html#3b95ed533faac10bd1f2eabc649e92f4" shape="rect" coords="511,385,588,412" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="553af6eeeba1591e3d26444d8a544856"></a><!-- doxytag: member="states.c::switchCommunicationState" ref="553af6eeeba1591e3d26444d8a544856" args="(CO_Data *d, s_state_communication *newCommunicationState)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void switchCommunicationState           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__state__communication.html">s_state_communication</a> *&nbsp;</td>
          <td class="paramname"> <em>newCommunicationState</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>newCommunicationState</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="states_8c-source.html#l00120">120</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
<p>
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>, <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>, <a class="el" href="states_8c-source.html#l00112">None</a>, <a class="el" href="pdo_8c-source.html#l00601">PDOInit()</a>, <a class="el" href="pdo_8c-source.html#l00632">PDOStop()</a>, <a class="el" href="sdo_8c-source.html#l00169">resetSDO()</a>, <a class="el" href="nmtSlave_8c-source.html#l00097">slaveSendBootUp()</a>, <a class="el" href="states_8c-source.html#l00102">StartOrStop</a>, <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>, and <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>.
<p>
Referenced by <a class="el" href="states_8c-source.html#l00138">setState()</a>.
<p>
Here is the call graph for this function:<p><center><img src="states_8c_553af6eeeba1591e3d26444d8a544856_cgraph.png" border="0" usemap="#states_8c_553af6eeeba1591e3d26444d8a544856_cgraph_map" alt=""></center>
<map name="states_8c_553af6eeeba1591e3d26444d8a544856_cgraph_map">
<area href="lifegrd_8c.html#03fbd3b6910b8058535d3e94242cb80e" shape="rect" coords="239,199,327,225" alt="">
<area href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e" shape="rect" coords="701,97,795,124" alt="">
<area href="pdo_8c.html#858b6c5fcf09d0c6c9cdd67f92bcd8f9" shape="rect" coords="249,427,316,453" alt="">
<area href="pdo_8c.html#e31b98506e436ee213de906c19cc59f1" shape="rect" coords="712,21,784,48" alt="">
<area href="sdo_8c.html#48d2bfe1b7581346bb720ad2542bac89" shape="rect" coords="247,705,319,732" alt="">
<area href="nmtSlave_8c.html#29f6eed8d34859710f7e603a1fc0d9d1" shape="rect" coords="224,351,341,377" alt="">
<area href="sync_8c.html#4a5d93c6c2b82b6449519b1143437ee9" shape="rect" coords="243,604,323,631" alt="">
<area href="sync_8c.html#3b95ed533faac10bd1f2eabc649e92f4" shape="rect" coords="440,553,517,580" alt="">
<area href="lifegrd_8c.html#f01de9def215369ece4214cce5871508" shape="rect" coords="400,148,557,175" alt="">
<area href="lifegrd_8c.html#9b31f862dd95cc430757f30a0306205b" shape="rect" coords="391,97,567,124" alt="">
<area href="lifegrd_8c.html#a296a819d9aedc0d7781774390908000" shape="rect" coords="403,199,555,225" alt="">
<area href="objacces_8c.html#9a512a966532e40f35d3a4201bf54ead" shape="rect" coords="389,351,568,377" alt="">
<area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="712,452,784,479" alt="">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="928,313,1003,340" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="715,300,781,327" alt="">
<area href="objacces_8c.html#b2839d53051e322c12605c1d7f3dc4e5" shape="rect" coords="701,351,795,377" alt="">
<area href="pdo_8c.html#fbf33713253ccf33f9277e31c78a6cb5" shape="rect" coords="425,503,532,529" alt="">
<area href="pdo_8c.html#b0f2ba361e723602410676cd1c3402dd" shape="rect" coords="616,401,880,428" alt="">
<area href="sdo_8c.html#0d8fa7ef68e2d40eb014d9b89abf5448" shape="rect" coords="432,756,525,783" alt="">
<area href="sync_8c.html#9bcb477ec78154d3d0d0c9bb60392224" shape="rect" coords="400,705,557,732" alt="">
<area href="sync_8c.html#4f6067ef03a5c85e07ddd817dd8d948f" shape="rect" coords="437,655,520,681" alt="">
</map>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:42 2007 for CanFestival by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>