doc/doxygen/html/main_8c.html
author etisserant
Tue, 02 Oct 2007 17:56:11 +0200
changeset 301 f4b64aa848e1
parent 240 34654679f262
permissions -rw-r--r--
more fancy print_message for debug
<!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: examples/win32test/main.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_aa575cee5acc3b84cc5b4489187a1fd3.html">examples</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_2141e986c2caba396c3501b692c2793f.html">win32test</a></div>
<h1>main.c File Reference</h1><code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &quot;<a class="el" href="win32test_8h-source.html">win32test.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="win32_2canfestival_8h-source.html">canfestival.h</a>&quot;</code><br>
<code>#include &lt;time.h&gt;</code><br>

<p>
Include dependency graph for main.c:<p><center><img src="main_8c__incl.png" border="0" usemap="#examples/win32test/main.c_map" alt=""></center>
<map name="examples/win32test/main.c_map">
<area href="win32test_8h.html" shape="rect" coords="225,351,308,377" alt="">
<area href="win32_2canfestival_8h.html" shape="rect" coords="223,401,311,428" alt="">
<area href="data_8h.html" shape="rect" coords="360,376,413,403" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="713,275,788,301" alt="">
<area href="def_8h.html" shape="rect" coords="607,47,655,73" alt="">
<area href="can_8h.html" shape="rect" coords="607,148,655,175" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="464,452,549,479" alt="">
<area href="objacces_8h.html" shape="rect" coords="468,401,545,428" alt="">
<area href="sdo_8h.html" shape="rect" coords="483,604,531,631" alt="">
<area href="pdo_8h.html" shape="rect" coords="481,97,532,124" alt="">
<area href="states_8h.html" shape="rect" coords="476,249,537,276" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="473,300,540,327" alt="">
<area href="sync_8h.html" shape="rect" coords="479,503,535,529" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="463,553,551,580" alt="">
<area href="config_8h.html" shape="rect" coords="719,47,783,73" alt="">
<area href="timer_8h.html" shape="rect" coords="601,629,660,656" alt="">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="711,668,791,695" alt="">
<area href="can__driver_8h.html" shape="rect" coords="463,148,551,175" alt="">
</map>

<p>
<a href="main_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="main_8c.html#6383650a87aa7d2a6d496d13afb24d8b">sleep_proc</a>(ms)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#01197732573264a33297a95c9e7ec100">uptime_ms_proc</a>&nbsp;&nbsp;&nbsp;(1000*(time()%86400))</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#3ed72783d02c7dd8e2527fa95eecf9b7">GetChangeStateResults</a> (UNS8 node_id, UNS8 expected_state, unsigned long timeout_ms)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#595acfd379e20a2f1c112860f9371ce3">ReadSDO</a> (UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, void *data, UNS8 *size)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#28052c36c3b61c6c0eaa18f5d226118f">main</a> (int argc, char *argv[])</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="6383650a87aa7d2a6d496d13afb24d8b"></a><!-- doxytag: member="main.c::sleep_proc" ref="6383650a87aa7d2a6d496d13afb24d8b" args="(ms)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define sleep_proc          </td>
          <td>(</td>
          <td class="paramtype">ms&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="main_8c-source.html#l00033">33</a> of file <a class="el" href="main_8c-source.html">main.c</a>.
<p>
Referenced by <a class="el" href="main_8c-source.html#l00037">GetChangeStateResults()</a>, and <a class="el" href="main_8c-source.html#l00057">ReadSDO()</a>.
</div>
</div><p>
<a class="anchor" name="01197732573264a33297a95c9e7ec100"></a><!-- doxytag: member="main.c::uptime_ms_proc" ref="01197732573264a33297a95c9e7ec100" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define uptime_ms_proc&nbsp;&nbsp;&nbsp;(1000*(time()%86400))          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="main_8c-source.html#l00034">34</a> of file <a class="el" href="main_8c-source.html">main.c</a>.
<p>
Referenced by <a class="el" href="main_8c-source.html#l00037">GetChangeStateResults()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="3ed72783d02c7dd8e2527fa95eecf9b7"></a><!-- doxytag: member="main.c::GetChangeStateResults" ref="3ed72783d02c7dd8e2527fa95eecf9b7" args="(UNS8 node_id, UNS8 expected_state, unsigned long timeout_ms)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UNS8 GetChangeStateResults           </td>
          <td>(</td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>node_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>expected_state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>timeout_ms</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>

<p>
Definition at line <a class="el" href="main_8c-source.html#l00037">37</a> of file <a class="el" href="main_8c-source.html">main.c</a>.
<p>
References <a class="el" href="lifegrd_8c-source.html#l00055">getNodeState()</a>, <a class="el" href="nmtMaster_8c-source.html#l00090">masterRequestNodeState()</a>, <a class="el" href="data_8h-source.html#l00075">struct_CO_Data::NMTable</a>, <a class="el" href="main_8c-source.html#l00033">sleep_proc</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538c10f9d2ed7c3268d46023240e3bef9b9">Unknown_state</a>, <a class="el" href="main_8c-source.html#l00034">uptime_ms_proc</a>, and <a class="el" href="win32test_8c-source.html#l00158">win32test_Data</a>.
<p>
Referenced by <a class="el" href="main_8c-source.html#l00079">main()</a>.
<p>
Here is the call graph for this function:<p><center><img src="main_8c_3ed72783d02c7dd8e2527fa95eecf9b7_cgraph.png" border="0" usemap="#main_8c_3ed72783d02c7dd8e2527fa95eecf9b7_cgraph_map" alt=""></center>
<map name="main_8c_3ed72783d02c7dd8e2527fa95eecf9b7_cgraph_map">
<area href="lifegrd_8c.html#efc37a2f9a8c56f18d7569bfb0f02554" shape="rect" coords="232,5,325,32" alt="">
<area href="nmtMaster_8c.html#ed4b5c5175612deb4d3e9c328a645cfb" shape="rect" coords="201,56,356,83" alt="">
<area href="nmtMaster_8c.html#9f255d6b026de318c5181e1deb01bdd0" shape="rect" coords="407,56,575,83" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="624,56,691,83" alt="">
<area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="739,56,851,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="28052c36c3b61c6c0eaa18f5d226118f"></a><!-- doxytag: member="main.c::main" ref="28052c36c3b61c6c0eaa18f5d226118f" args="(int argc, char *argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>argv</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>

<p>
Definition at line <a class="el" href="main_8c-source.html#l00079">79</a> of file <a class="el" href="main_8c-source.html">main.c</a>.
<p>
References <a class="el" href="unix_8c-source.html#l00178">canClose()</a>, <a class="el" href="unix_8c-source.html#l00145">canOpen()</a>, <a class="el" href="main_8c-source.html#l00037">GetChangeStateResults()</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf630538de69e6bdd47a9d7dae023237acdaad5e">Initialisation</a>, <a class="el" href="unix_8c-source.html#l00084">LoadCanDriver()</a>, <a class="el" href="TestMasterSlave_8c-source.html#l00053">MasterBoard</a>, <a class="el" href="nmtMaster_8c-source.html#l00045">masterSendNMTstateChange()</a>, <a class="el" href="def_8h-source.html#l00102">NMT_Start_Node</a>, <a class="el" href="def_8h-source.html#l00103">NMT_Stop_Node</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="main_8c-source.html#l00057">ReadSDO()</a>, <a class="el" href="objdictdef_8h-source.html#l00073">RW</a>, <a class="el" href="states_8c-source.html#l00235">setNodeId()</a>, <a class="el" href="states_8c-source.html#l00138">setState()</a>, <a class="el" href="states_8h.html#80401a8f6d29787e07427b2baf63053853c74ac440bbf6af2cb67759d3cd8f0a">Stopped</a>, <a class="el" href="objdictdef_8h-source.html#l00038">uint32</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>, <a class="el" href="objdictdef_8h-source.html#l00040">visible_string</a>, <a class="el" href="win32test_8c-source.html#l00158">win32test_Data</a>, and <a class="el" href="objacces_8c-source.html#l00378">writeLocalDict()</a>.
<p>
Here is the call graph for this function:<p><center><img src="main_8c_28052c36c3b61c6c0eaa18f5d226118f_cgraph.png" border="0" usemap="#main_8c_28052c36c3b61c6c0eaa18f5d226118f_cgraph_map" alt=""></center>
<map name="main_8c_28052c36c3b61c6c0eaa18f5d226118f_cgraph_map">
<area href="unix_8c.html#6d6b692e726dee0a5726e6d3db1b1693" shape="rect" coords="140,309,209,336" alt="">
<area href="unix_8c.html#c32083e9caa1b02f7726a8b87d10ce33" shape="rect" coords="140,360,209,387" alt="">
<area href="main_8c.html#3ed72783d02c7dd8e2527fa95eecf9b7" shape="rect" coords="101,411,248,437" alt="">
<area href="unix_8c.html#0012a2aa42ef694bd275c6b5be5c89c7" shape="rect" coords="123,613,227,640" alt="">
<area href="nmtMaster_8c.html#c1ba0feb792adfae21a4adb96593ab3b" shape="rect" coords="296,284,475,311" alt="">
<area href="main_8c.html#595acfd379e20a2f1c112860f9371ce3" shape="rect" coords="137,563,212,589" alt="">
<area href="states_8c.html#191c0cad67e093ea44285c9acd187513" shape="rect" coords="137,664,212,691" alt="">
<area href="states_8c.html#cfb53d66c2360cd55b1d968f0e5c270f" shape="rect" coords="144,512,205,539" alt="">
<area href="objacces_8c.html#205ea90bcc1c528d291fb60102f19451" shape="rect" coords="124,715,225,741" alt="">
<area href="lifegrd_8c.html#efc37a2f9a8c56f18d7569bfb0f02554" shape="rect" coords="339,233,432,260" alt="">
<area href="nmtMaster_8c.html#ed4b5c5175612deb4d3e9c328a645cfb" shape="rect" coords="308,81,463,108" alt="">
<area href="nmtMaster_8c.html#9f255d6b026de318c5181e1deb01bdd0" shape="rect" coords="524,5,692,32" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="769,56,836,83" alt="">
<area href="sdo_8c.html#df77b984822a5cec9782ebd6bc64e700" shape="rect" coords="551,613,665,640" alt="">
<area href="sdo_8c.html#bec7a9f46a1ddda9fed0c0e7c61558fc" shape="rect" coords="301,664,469,691" alt="">
<area href="sdo_8c.html#dbc2fd49f1f126684922973871e337aa" shape="rect" coords="329,563,441,589" alt="">
<area href="sdo_8c.html#93b0dc6875fffd911a7b0dc1ba96a8d1" shape="rect" coords="743,601,863,628" alt="">
<area href="sdo_8c.html#0d8fa7ef68e2d40eb014d9b89abf5448" shape="rect" coords="756,537,849,564" alt="">
<area href="sdo_8c.html#d381df29f9b8c0a17bc10d845aba3a31" shape="rect" coords="548,563,668,589" alt="">
<area href="dcf_8c.html#acb81126cc677d663f367f560ae0face" shape="rect" coords="339,512,432,539" alt="">
<area href="states_8c.html#553af6eeeba1591e3d26444d8a544856" shape="rect" coords="301,335,469,361" alt="">
<area href="dcf_8c.html#aa754826c624685ec491735501631c4e" shape="rect" coords="545,512,671,539" alt="">
<area href="lifegrd_8c.html#03fbd3b6910b8058535d3e94242cb80e" shape="rect" coords="564,360,652,387" alt="">
<area href="lifegrd_8c.html#007b1f27fd9f0d6814498093f424f82e" shape="rect" coords="561,411,655,437" alt="">
<area href="pdo_8c.html#858b6c5fcf09d0c6c9cdd67f92bcd8f9" shape="rect" coords="575,461,641,488" alt="">
<area href="pdo_8c.html#e31b98506e436ee213de906c19cc59f1" shape="rect" coords="572,157,644,184" alt="">
<area href="sdo_8c.html#48d2bfe1b7581346bb720ad2542bac89" shape="rect" coords="572,309,644,336" alt="">
<area href="nmtSlave_8c.html#29f6eed8d34859710f7e603a1fc0d9d1" shape="rect" coords="549,107,667,133" alt="">
<area href="sync_8c.html#4a5d93c6c2b82b6449519b1143437ee9" shape="rect" coords="568,259,648,285" alt="">
<area href="sync_8c.html#3b95ed533faac10bd1f2eabc649e92f4" shape="rect" coords="764,233,841,260" alt="">
<area href="objacces_8c.html#c6dc3f9ab23f6fa05c3a454cdc82c985" shape="rect" coords="341,715,429,741" alt="">
<area href="objacces_8c.html#8577ef029b11faa6cfd1102f6bb10f59" shape="rect" coords="539,715,677,741" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="595acfd379e20a2f1c112860f9371ce3"></a><!-- doxytag: member="main.c::ReadSDO" ref="595acfd379e20a2f1c112860f9371ce3" args="(UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, void *data, UNS8 *size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UNS8 ReadSDO           </td>
          <td>(</td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>nodeId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS16&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>subIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>dataType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8 *&nbsp;</td>
          <td class="paramname"> <em>size</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>

<p>
Definition at line <a class="el" href="main_8c-source.html#l00057">57</a> of file <a class="el" href="main_8c-source.html">main.c</a>.
<p>
References <a class="el" href="sdo_8c-source.html#l00439">closeSDOtransfer()</a>, <a class="el" href="sdo_8c-source.html#l01532">getReadResultNetworkDict()</a>, <a class="el" href="sdo_8c-source.html#l01499">readNetworkDict()</a>, <a class="el" href="def_8h-source.html#l00077">SDO_CLIENT</a>, <a class="el" href="def_8h-source.html#l00069">SDO_FINISHED</a>, <a class="el" href="def_8h-source.html#l00073">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="main_8c-source.html#l00033">sleep_proc</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="win32test_8c-source.html#l00158">win32test_Data</a>.
<p>
Referenced by <a class="el" href="main_8c-source.html#l00079">main()</a>.
<p>
Here is the call graph for this function:<p><center><img src="main_8c_595acfd379e20a2f1c112860f9371ce3_cgraph.png" border="0" usemap="#main_8c_595acfd379e20a2f1c112860f9371ce3_cgraph_map" alt=""></center>
<map name="main_8c_595acfd379e20a2f1c112860f9371ce3_cgraph_map">
<area href="sdo_8c.html#df77b984822a5cec9782ebd6bc64e700" shape="rect" coords="352,56,467,83" alt="">
<area href="sdo_8c.html#bec7a9f46a1ddda9fed0c0e7c61558fc" shape="rect" coords="132,5,300,32" alt="">
<area href="sdo_8c.html#dbc2fd49f1f126684922973871e337aa" shape="rect" coords="160,107,272,133" alt="">
<area href="sdo_8c.html#93b0dc6875fffd911a7b0dc1ba96a8d1" shape="rect" coords="519,5,639,32" alt="">
<area href="sdo_8c.html#0d8fa7ef68e2d40eb014d9b89abf5448" shape="rect" coords="532,56,625,83" alt="">
<area href="sdo_8c.html#397e3c42e4165191c97fe342ae02e184" shape="rect" coords="688,81,773,108" alt="">
<area href="sdo_8c.html#d381df29f9b8c0a17bc10d845aba3a31" shape="rect" coords="349,107,469,133" alt="">
<area href="sdo_8c.html#cb77818f302f413301728d27c091fa03" shape="rect" coords="524,157,633,184" alt="">
<area href="sdo_8c.html#b708fa701e4afbb7b63c6e658317e6dc" shape="rect" coords="543,208,615,235" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="697,208,764,235" alt="">
<area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="821,208,933,235" alt="">
</map>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:26 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>