As requested long ago, added CoData* parameter to all this applications callback, let application designer use identical callback for multiple nodes, and reduce source code length.
Concerned callbacks :
initialisation
preOperational
operational
stopped
heartbeatError
post_sync
post_TPDO
post_SlaveBootup
storeODSubIndex
post_emcy
<!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/TestMasterSlave/TestMasterSlave.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 Page</span></a></li>
<li><a href="annotated.html"><span>Data 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 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> » <a class="el" href="dir_4f45567b048264117a95e53b67d9aefb.html">TestMasterSlave</a></div>
<h1>TestMasterSlave.h File Reference</h1><code>#include "<a class="el" href="win32_2canfestival_8h-source.html">canfestival.h</a>"</code><br>
<p>
Include dependency graph for TestMasterSlave.h:<p><center><img src="TestMasterSlave_8h__incl.png" border="0" usemap="#examples/TestMasterSlave/TestMasterSlave.h_map" alt=""></center>
<map name="examples/TestMasterSlave/TestMasterSlave.h_map">
<area href="win32_2canfestival_8h.html" shape="rect" coords="324,195,412,221" alt="">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="812,81,892,108" alt="">
<area href="can__driver_8h.html" shape="rect" coords="564,701,652,728" alt="">
<area href="data_8h.html" shape="rect" coords="461,347,515,373" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="815,448,889,475" alt="">
<area href="can_8h.html" shape="rect" coords="708,612,756,639" alt="">
<area href="def_8h.html" shape="rect" coords="708,195,756,221" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="565,600,651,627" alt="">
<area href="objacces_8h.html" shape="rect" coords="569,397,647,424" alt="">
<area href="sdo_8h.html" shape="rect" coords="584,144,632,171" alt="">
<area href="pdo_8h.html" shape="rect" coords="583,245,633,272" alt="">
<area href="states_8h.html" shape="rect" coords="577,448,639,475" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="575,549,641,576" alt="">
<area href="sync_8h.html" shape="rect" coords="580,296,636,323" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="564,347,652,373" alt="">
<area href="config_8h.html" shape="rect" coords="820,195,884,221" alt="">
<area href="timer_8h.html" shape="rect" coords="703,119,761,145" alt="">
</map>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="TestMasterSlave_8h__dep__incl.png" border="0" usemap="#examples/TestMasterSlave/TestMasterSlave.hdep_map" alt=""></center>
<map name="examples/TestMasterSlave/TestMasterSlave.hdep_map">
<area href="Master_8c.html" shape="rect" coords="351,5,564,32" alt="">
<area href="Slave_8c.html" shape="rect" coords="353,56,561,83" alt="">
<area href="TestMasterSlave_8c.html" shape="rect" coords="324,107,591,133" alt="">
</map>
<p>
<a href="TestMasterSlave_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>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterSlave_8h.html#1d11de6c74e6c32fa27bcde825414a00">eprintf</a>(...) printf (__VA_ARGS__)</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="TestMasterSlave_8h.html#d1dd3b302365b1f2bd0ce49f3db780d8">print_message</a> (<a class="el" href="structMessage.html">Message</a> *m)</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="1d11de6c74e6c32fa27bcde825414a00"></a><!-- doxytag: member="TestMasterSlave.h::eprintf" ref="1d11de6c74e6c32fa27bcde825414a00" args="(...)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define eprintf </td>
<td>(</td>
<td class="paramtype"> <em>...</em> </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> printf (__VA_ARGS__)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="TestMasterSlave_8h-source.html#l00026">26</a> of file <a class="el" href="TestMasterSlave_8h-source.html">TestMasterSlave.h</a>.
<p>
Referenced by <a class="el" href="TestMasterMicroMod_8c-source.html#l00339">catch_signal()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00397">main()</a>, <a class="el" href="TestMasterSlave_8c-source.html#l00046">OnMasterMap1Update()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00045">TestMaster_heartbeatError()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00055">TestMaster_initialisation()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00313">TestMaster_operational()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00323">TestMaster_post_sync()</a>, <a class="el" href="Master_8c-source.html#l00199">TestMaster_post_TPDO()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00305">TestMaster_preOperational()</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00318">TestMaster_stopped()</a>, <a class="el" href="Slave_8c-source.html#l00028">TestSlave_heartbeatError()</a>, <a class="el" href="Slave_8c-source.html#l00033">TestSlave_initialisation()</a>, <a class="el" href="Slave_8c-source.html#l00043">TestSlave_operational()</a>, <a class="el" href="Slave_8c-source.html#l00053">TestSlave_post_sync()</a>, <a class="el" href="Slave_8c-source.html#l00085">TestSlave_post_TPDO()</a>, <a class="el" href="Slave_8c-source.html#l00038">TestSlave_preOperational()</a>, <a class="el" href="Slave_8c-source.html#l00048">TestSlave_stopped()</a>, and <a class="el" href="Slave_8c-source.html#l00091">TestSlave_storeODSubIndex()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="d1dd3b302365b1f2bd0ce49f3db780d8"></a><!-- doxytag: member="TestMasterSlave.h::print_message" ref="d1dd3b302365b1f2bd0ce49f3db780d8" args="(Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void print_message </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__virtual_8c-source.html#l00053">53</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
<p>
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</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="can__virtual_8c-source.html#l00052">MyCase</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="can_8h-source.html#l00043">Message::rtr</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>, <a class="el" href="def_8h-source.html#l00086">TIME_STAMP</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
<p>
Referenced by <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:25 2007 for CanFestival by
<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>