doc/doxygen/html/states_8h.html
author lbessard
Tue, 05 Jun 2007 17:34:33 +0200
changeset 209 2cb34a4ac65a
parent 207 b6572d0336c3
permissions -rw-r--r--
Bug on RefreshStatusBar corrected
<!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: /home/epimerde/documents/tc11/CanFestival-3/include/states.h 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="namespaces.html"><span>Namespaces</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>
  </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>
<h1>/home/epimerde/documents/tc11/CanFestival-3/include/states.h File Reference</h1><code>#include &lt;<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>&gt;</code><br>
<code>#include &quot;<a class="el" href="data_8h-source.html">data.h</a>&quot;</code><br>

<p>
<a href="states_8h-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>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structs__state__communication.html">s_state_communication</a></td></tr>

<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef enum <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646">enum_nodeState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#d0cd6d1eb89085da7cb9f32ce386e8bc">initialisation_t</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#f4a6da4fe018afbe20eaf716c248e02a">preOperational_t</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#8aed99e590473f26db47a9c2dc5b73fc">operational_t</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#c99397ce6341b6b5128104aee4c27ec5">stopped_t</a> (void)</td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646">enum_nodeState</a> { <br>
&nbsp;&nbsp;<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5">Initialisation</a> =  0x00, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec6864684ab0fbbb76a8c897feb1cd806d56443">Disconnected</a> =  0x01, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec686466ea90df6fe966852496b4846da497fb0">Connecting</a> =  0x02, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec6864695fc3c631fbad8ca3dc8d5b69a3e0d5b">Preparing</a> =  0x02, 
<br>
&nbsp;&nbsp;<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec686464d049c6d45e08a294523df186ad77a75">Stopped</a> =  0x04, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a> =  0x05, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7">Pre_operational</a> =  0x7F, 
<a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646cb4b5cb64be091d76f846380eb0afe59">Unknown_state</a> =  0x0F
<br>
 }</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_8h.html#67ca1ac7ff49e88cf7847e408b258cae">_initialisation</a> (void)</td></tr>

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

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

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

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#3f8975650604cc23582f19a43fd4e518">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"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#95d835785ba564bf6d92e3224c5e3848">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">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="states_8h.html#0a5004efd1dedbee82a4f21ec5c44fb5">setState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">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_8h.html#3020f2e5762f6e389a21382ec827b6a6">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_8h.html#d47a53979b9311a374d029f7923abbe1">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_8h.html#3e57769f3a958c103825263b7abdd92b">initPreOperationalMode</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>

</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="5891f63a4c9243179838389a93d084e2"></a><!-- doxytag: member="states.h::e_nodeState" ref="5891f63a4c9243179838389a93d084e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646">enum_nodeState</a> <a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">e_nodeState</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8h-source.html#l00046">46</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<a class="anchor" name="d0cd6d1eb89085da7cb9f32ce386e8bc"></a><!-- doxytag: member="states.h::initialisation_t" ref="d0cd6d1eb89085da7cb9f32ce386e8bc" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(*) <a class="el" href="states_8h.html#d0cd6d1eb89085da7cb9f32ce386e8bc">initialisation_t</a>(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Function that user app can overload 
<p>
Definition at line <a class="el" href="states_8h-source.html#l00061">61</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<a class="anchor" name="8aed99e590473f26db47a9c2dc5b73fc"></a><!-- doxytag: member="states.h::operational_t" ref="8aed99e590473f26db47a9c2dc5b73fc" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(*) <a class="el" href="states_8h.html#8aed99e590473f26db47a9c2dc5b73fc">operational_t</a>(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8h-source.html#l00063">63</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<a class="anchor" name="f4a6da4fe018afbe20eaf716c248e02a"></a><!-- doxytag: member="states.h::preOperational_t" ref="f4a6da4fe018afbe20eaf716c248e02a" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(*) <a class="el" href="states_8h.html#f4a6da4fe018afbe20eaf716c248e02a">preOperational_t</a>(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8h-source.html#l00062">62</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<a class="anchor" name="c99397ce6341b6b5128104aee4c27ec5"></a><!-- doxytag: member="states.h::stopped_t" ref="c99397ce6341b6b5128104aee4c27ec5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(*) <a class="el" href="states_8h.html#c99397ce6341b6b5128104aee4c27ec5">stopped_t</a>(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="states_8h-source.html#l00064">64</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="3136d2815abe9d284f985e0a7ec68646"></a><!-- doxytag: member="states.h::enum_nodeState" ref="3136d2815abe9d284f985e0a7ec68646" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646">enum_nodeState</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5"></a><!-- doxytag: member="Initialisation" ref="3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5" args="" -->Initialisation</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec6864684ab0fbbb76a8c897feb1cd806d56443"></a><!-- doxytag: member="Disconnected" ref="3136d2815abe9d284f985e0a7ec6864684ab0fbbb76a8c897feb1cd806d56443" args="" -->Disconnected</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec686466ea90df6fe966852496b4846da497fb0"></a><!-- doxytag: member="Connecting" ref="3136d2815abe9d284f985e0a7ec686466ea90df6fe966852496b4846da497fb0" args="" -->Connecting</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec6864695fc3c631fbad8ca3dc8d5b69a3e0d5b"></a><!-- doxytag: member="Preparing" ref="3136d2815abe9d284f985e0a7ec6864695fc3c631fbad8ca3dc8d5b69a3e0d5b" args="" -->Preparing</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec686464d049c6d45e08a294523df186ad77a75"></a><!-- doxytag: member="Stopped" ref="3136d2815abe9d284f985e0a7ec686464d049c6d45e08a294523df186ad77a75" args="" -->Stopped</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124"></a><!-- doxytag: member="Operational" ref="3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124" args="" -->Operational</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7"></a><!-- doxytag: member="Pre_operational" ref="3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7" args="" -->Pre_operational</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="3136d2815abe9d284f985e0a7ec68646cb4b5cb64be091d76f846380eb0afe59"></a><!-- doxytag: member="Unknown_state" ref="3136d2815abe9d284f985e0a7ec68646cb4b5cb64be091d76f846380eb0afe59" args="" -->Unknown_state</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="states_8h-source.html#l00035">35</a> of file <a class="el" href="states_8h-source.html">states.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="67ca1ac7ff49e88cf7847e408b258cae"></a><!-- doxytag: member="states.h::_initialisation" ref="67ca1ac7ff49e88cf7847e408b258cae" args="(void)" -->
<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#l00234">234</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="b31a0526e24de79a09ccc512db420d91"></a><!-- doxytag: member="states.h::_operational" ref="b31a0526e24de79a09ccc512db420d91" args="(void)" -->
<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#l00236">236</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="f4e52eb187303eca1962bb6f74cb8169"></a><!-- doxytag: member="states.h::_preOperational" ref="f4e52eb187303eca1962bb6f74cb8169" args="(void)" -->
<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#l00235">235</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="9117ccff20aaed468dd715517e77dbc3"></a><!-- doxytag: member="states.h::_stopped" ref="9117ccff20aaed468dd715517e77dbc3" args="(void)" -->
<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#l00237">237</a> of file <a class="el" href="states_8c-source.html">states.c</a>.
</div>
</div><p>
<a class="anchor" name="3f8975650604cc23582f19a43fd4e518"></a><!-- doxytag: member="states.h::canDispatch" ref="3f8975650604cc23582f19a43fd4e518" 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>
Called by driver/app when receiving messages 
<p>
Definition at line <a class="el" href="states_8c-source.html#l00039">39</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#l00086">NMT</a>, <a class="el" href="def_8h-source.html#l00099">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00090">PDO1rx</a>, <a class="el" href="def_8h-source.html#l00089">PDO1tx</a>, <a class="el" href="def_8h-source.html#l00092">PDO2rx</a>, <a class="el" href="def_8h-source.html#l00091">PDO2tx</a>, <a class="el" href="def_8h-source.html#l00094">PDO3rx</a>, <a class="el" href="def_8h-source.html#l00093">PDO3tx</a>, <a class="el" href="def_8h-source.html#l00096">PDO4rx</a>, <a class="el" href="def_8h-source.html#l00095">PDO4tx</a>, <a class="el" href="nmtSlave_8c-source.html#l00029">proceedNMTstateChange()</a>, <a class="el" href="lifegrd_8c-source.html#l00050">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00187">proceedPDO()</a>, <a class="el" href="sdo_8c-source.html#l00447">proceedSDO()</a>, <a class="el" href="sync_8c-source.html#l00093">proceedSYNC()</a>, <a class="el" href="def_8h-source.html#l00098">SDOrx</a>, <a class="el" href="def_8h-source.html#l00097">SDOtx</a>, <a class="el" href="def_8h-source.html#l00087">SYNC</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
</div>
</div><p>
<a class="anchor" name="3020f2e5762f6e389a21382ec827b6a6"></a><!-- doxytag: member="states.h::getNodeId" ref="3020f2e5762f6e389a21382ec827b6a6" 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>
Returns the nodId 
<p>
Definition at line <a class="el" href="states_8c-source.html#l00180">180</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>.
</div>
</div><p>
<a class="anchor" name="95d835785ba564bf6d92e3224c5e3848"></a><!-- doxytag: member="states.h::getState" ref="95d835785ba564bf6d92e3224c5e3848" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="states_8h.html#5891f63a4c9243179838389a93d084e2">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>
Returns the state of the node 
<p>
Definition at line <a class="el" href="states_8c-source.html#l00033">33</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="3e57769f3a958c103825263b7abdd92b"></a><!-- doxytag: member="states.h::initPreOperationalMode" ref="3e57769f3a958c103825263b7abdd92b" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initPreOperationalMode           </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>
Some stuff to do when the node enter in pre-operational mode 
</div>
</div><p>
<a class="anchor" name="d47a53979b9311a374d029f7923abbe1"></a><!-- doxytag: member="states.h::setNodeId" ref="d47a53979b9311a374d029f7923abbe1" 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>
Define the node ID. Initialize the object dictionary 
<p>
Definition at line <a class="el" href="states_8c-source.html#l00186">186</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#l00118">s_quick_index::PDO_RCV</a>, <a class="el" href="objdictdef_8h-source.html#l00120">s_quick_index::PDO_TRS</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="objdictdef_8h-source.html#l00116">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>.
</div>
</div><p>
<a class="anchor" name="0a5004efd1dedbee82a4f21ec5c44fb5"></a><!-- doxytag: member="states.h::setState" ref="0a5004efd1dedbee82a4f21ec5c44fb5" 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#5891f63a4c9243179838389a93d084e2">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>
Change the state of the node 
<p>
Definition at line <a class="el" href="states_8c-source.html#l00100">100</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#l00048">decompo_dcf()</a>, <a class="el" href="data_8h-source.html#l00053">struct_CO_Data::iam_a_slave</a>, <a class="el" href="data_8h-source.html#l00063">struct_CO_Data::initialisation</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646eb3ae26d7a1629aa0fc6c83f46306cf5">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="data_8h-source.html#l00065">struct_CO_Data::operational</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7">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#l00032">ptrTable</a>, <a class="el" href="data_8h-source.html#l00091">struct_CO_Data::scanIndexOD</a>, <a class="el" href="data_8h-source.html#l00066">struct_CO_Data::stopped</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec686464d049c6d45e08a294523df186ad77a75">Stopped</a>, <a class="el" href="states_8c-source.html#l00089">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>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 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>