doc/doxygen/html/nmtMaster_8h.html
changeset 207 b6572d0336c3
equal deleted inserted replaced
206:6787754b251b 207:b6572d0336c3
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
       
     3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/include/nmtMaster.h 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&nbsp;Page</span></a></li>
       
    11     <li><a href="namespaces.html"><span>Namespaces</span></a></li>
       
    12     <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
       
    13     <li id="current"><a href="files.html"><span>Files</span></a></li>
       
    14   </ul></div>
       
    15 <div class="tabs">
       
    16   <ul>
       
    17     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
       
    18     <li><a href="globals.html"><span>Globals</span></a></li>
       
    19   </ul></div>
       
    20 <h1>/home/epimerde/documents/tc11/CanFestival-3/include/nmtMaster.h File Reference</h1><code>#include &quot;<a class="el" href="data_8h-source.html">data.h</a>&quot;</code><br>
       
    21 
       
    22 <p>
       
    23 <a href="nmtMaster_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
       
    24 <tr><td></td></tr>
       
    25 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
       
    26 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="nmtMaster_8h.html#6170d95d9900ef756921a934c5fb37d2">masterSendNMTstateChange</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 Node_ID, UNS8 cs)</td></tr>
       
    27 
       
    28 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="nmtMaster_8h.html#f63689baeabb15103c2b7afe8885c5c4">masterSendNMTnodeguard</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr>
       
    29 
       
    30 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="nmtMaster_8h.html#98bee3f402438056dbd653e752054796">masterRequestNodeState</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr>
       
    31 
       
    32 </table>
       
    33 <hr><h2>Function Documentation</h2>
       
    34 <a class="anchor" name="98bee3f402438056dbd653e752054796"></a><!-- doxytag: member="nmtMaster.h::masterRequestNodeState" ref="98bee3f402438056dbd653e752054796" args="(CO_Data *d, UNS8 nodeId)" -->
       
    35 <div class="memitem">
       
    36 <div class="memproto">
       
    37       <table class="memname">
       
    38         <tr>
       
    39           <td class="memname">void masterRequestNodeState           </td>
       
    40           <td>(</td>
       
    41           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
    42           <td class="paramname"> <em>d</em>, </td>
       
    43         </tr>
       
    44         <tr>
       
    45           <td class="paramkey"></td>
       
    46           <td></td>
       
    47           <td class="paramtype">UNS8&nbsp;</td>
       
    48           <td class="paramname"> <em>nodeId</em></td><td>&nbsp;</td>
       
    49         </tr>
       
    50         <tr>
       
    51           <td></td>
       
    52           <td>)</td>
       
    53           <td></td><td></td><td width="100%"></td>
       
    54         </tr>
       
    55       </table>
       
    56 </div>
       
    57 <div class="memdoc">
       
    58 
       
    59 <p>
       
    60 Prepare a Node_Guard message transmission on the bus number bus_id to the slave whose node_id is nodeId Put nodeId = 0 to send an NMT broadcast. This message will ask for the slave, whose node_id is nodeId, its state bus_id is hardware dependant 
       
    61 <p>
       
    62 Definition at line <a class="el" href="nmtMaster_8c-source.html#l00060">60</a> of file <a class="el" href="nmtMaster_8c-source.html">nmtMaster.c</a>.
       
    63 <p>
       
    64 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="nmtMaster_8c-source.html#l00045">masterSendNMTnodeguard()</a>, <a class="el" href="config_8h-source.html#l00030">NMT_MAX_NODE_ID</a>, <a class="el" href="data_8h-source.html#l00075">struct_CO_Data::NMTable</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646cb4b5cb64be091d76f846380eb0afe59">Unknown_state</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
    65 </div>
       
    66 </div><p>
       
    67 <a class="anchor" name="f63689baeabb15103c2b7afe8885c5c4"></a><!-- doxytag: member="nmtMaster.h::masterSendNMTnodeguard" ref="f63689baeabb15103c2b7afe8885c5c4" args="(CO_Data *d, UNS8 nodeId)" -->
       
    68 <div class="memitem">
       
    69 <div class="memproto">
       
    70       <table class="memname">
       
    71         <tr>
       
    72           <td class="memname">UNS8 masterSendNMTnodeguard           </td>
       
    73           <td>(</td>
       
    74           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
    75           <td class="paramname"> <em>d</em>, </td>
       
    76         </tr>
       
    77         <tr>
       
    78           <td class="paramkey"></td>
       
    79           <td></td>
       
    80           <td class="paramtype">UNS8&nbsp;</td>
       
    81           <td class="paramname"> <em>nodeId</em></td><td>&nbsp;</td>
       
    82         </tr>
       
    83         <tr>
       
    84           <td></td>
       
    85           <td>)</td>
       
    86           <td></td><td></td><td width="100%"></td>
       
    87         </tr>
       
    88       </table>
       
    89 </div>
       
    90 <div class="memdoc">
       
    91 
       
    92 <p>
       
    93 Transmit a Node_Guard message on the bus number bus_id to the slave whose node_id is nodeId bus_id is hardware dependant return canSend(bus_id,&amp;m) 
       
    94 <p>
       
    95 Definition at line <a class="el" href="nmtMaster_8c-source.html#l00045">45</a> of file <a class="el" href="nmtMaster_8c-source.html">nmtMaster.c</a>.
       
    96 <p>
       
    97 References <a class="el" href="data_8h-source.html#l00090">struct_CO_Data::canHandle</a>, <a class="el" href="canOpenDriver_8c-source.html#l00505">canSend()</a>, <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="def_8h-source.html#l00099">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00054">REQUEST</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
       
    98 </div>
       
    99 </div><p>
       
   100 <a class="anchor" name="6170d95d9900ef756921a934c5fb37d2"></a><!-- doxytag: member="nmtMaster.h::masterSendNMTstateChange" ref="6170d95d9900ef756921a934c5fb37d2" args="(CO_Data *d, UNS8 Node_ID, UNS8 cs)" -->
       
   101 <div class="memitem">
       
   102 <div class="memproto">
       
   103       <table class="memname">
       
   104         <tr>
       
   105           <td class="memname">UNS8 masterSendNMTstateChange           </td>
       
   106           <td>(</td>
       
   107           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   108           <td class="paramname"> <em>d</em>, </td>
       
   109         </tr>
       
   110         <tr>
       
   111           <td class="paramkey"></td>
       
   112           <td></td>
       
   113           <td class="paramtype">UNS8&nbsp;</td>
       
   114           <td class="paramname"> <em>Node_ID</em>, </td>
       
   115         </tr>
       
   116         <tr>
       
   117           <td class="paramkey"></td>
       
   118           <td></td>
       
   119           <td class="paramtype">UNS8&nbsp;</td>
       
   120           <td class="paramname"> <em>cs</em></td><td>&nbsp;</td>
       
   121         </tr>
       
   122         <tr>
       
   123           <td></td>
       
   124           <td>)</td>
       
   125           <td></td><td></td><td width="100%"></td>
       
   126         </tr>
       
   127       </table>
       
   128 </div>
       
   129 <div class="memdoc">
       
   130 
       
   131 <p>
       
   132 Transmit a NMT message on the bus number bus_id to the slave whose node_id is ID bus_id is hardware dependant cs represents the order of state changement: cs = NMT_Start_Node // Put the node in operational mode cs = NMT_Stop_Node // Put the node in stopped mode cs = NMT_Enter_PreOperational // Put the node in pre_operational mode cs = NMT_Reset_Node // Put the node in initialization mode cs = NMT_Reset_Comunication // Put the node in initialization mode The mode is changed according to the slave state machine mode : initialisation ---&gt; pre-operational (Automatic transition) pre-operational &lt;--&gt; operational pre-operational &lt;--&gt; stopped pre-operational, operational, stopped -&gt; initialisation<p>
       
   133 return canSend(bus_id,&amp;m) 
       
   134 <p>
       
   135 Definition at line <a class="el" href="nmtMaster_8c-source.html#l00027">27</a> of file <a class="el" href="nmtMaster_8c-source.html">nmtMaster.c</a>.
       
   136 <p>
       
   137 References <a class="el" href="data_8h-source.html#l00090">struct_CO_Data::canHandle</a>, <a class="el" href="canOpenDriver_8c-source.html#l00505">canSend()</a>, <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="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="def_8h-source.html#l00055">NOT_A_REQUEST</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
       
   138 </div>
       
   139 </div><p>
       
   140 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by&nbsp;
       
   141 <a href="http://www.doxygen.org/index.html">
       
   142 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
       
   143 </body>
       
   144 </html>