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/Master.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>Master.h File Reference</h1><code>#include "<a class="el" href="TestMasterSlave_2TestMaster_8h-source.html">TestMaster.h</a>"</code><br>
<p>
Include dependency graph for Master.h:<p><center><img src="Master_8h__incl.png" border="0" usemap="#examples/TestMasterSlave/Master.h_map" alt=""></center>
<map name="examples/TestMasterSlave/Master.h_map">
<area href="TestMasterSlave_2TestMaster_8h.html" shape="rect" coords="269,259,360,285" alt="">
<area href="data_8h.html" shape="rect" coords="408,259,461,285" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="761,183,836,209" alt="">
<area href="def_8h.html" shape="rect" coords="655,385,703,412" alt="">
<area href="can_8h.html" shape="rect" coords="655,208,703,235" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="512,461,597,488" alt="">
<area href="objacces_8h.html" shape="rect" coords="516,157,593,184" alt="">
<area href="sdo_8h.html" shape="rect" coords="531,309,579,336" alt="">
<area href="pdo_8h.html" shape="rect" coords="529,259,580,285" alt="">
<area href="states_8h.html" shape="rect" coords="524,5,585,32" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="521,56,588,83" alt="">
<area href="sync_8h.html" shape="rect" coords="527,512,583,539" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="511,563,599,589" alt="">
<area href="config_8h.html" shape="rect" coords="767,385,831,412" alt="">
<area href="timer_8h.html" shape="rect" coords="649,309,708,336" alt="">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="759,291,839,317" alt="">
</map>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="Master_8h__dep__incl.png" border="0" usemap="#examples/TestMasterSlave/Master.hdep_map" alt=""></center>
<map name="examples/TestMasterSlave/Master.hdep_map">
<area href="Master_8c.html" shape="rect" coords="297,5,511,32" alt="">
<area href="Slave_8c.html" shape="rect" coords="300,56,508,83" alt="">
<area href="TestMasterSlave_8c.html" shape="rect" coords="271,107,537,133" alt="">
</map>
<p>
<a href="Master_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>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#611539550b18922783f095252be10ff4">TestMaster_heartbeatError</a> (UNS8)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#e0d89b7a99fde9df85e2e7a86a048020">TestMaster_canSend</a> (<a class="el" href="structMessage.html">Message</a> *)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#ed68508e702881e68c4152b125f5f3ab">TestMaster_initialisation</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#b4387f2180ab94c907dce7da44c26be6">TestMaster_preOperational</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#e4175256e19fb848c170b981974037ff">TestMaster_operational</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#8a1da415a74b96fa2b7eb1b5783d893d">TestMaster_stopped</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#861ebb7b01c1a2a70a48e47183ee9b23">TestMaster_post_sync</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="Master_8h.html#dd4d88c919bcf2d03b7fe279327e5ef1">TestMaster_post_TPDO</a> (void)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="e0d89b7a99fde9df85e2e7a86a048020"></a><!-- doxytag: member="Master.h::TestMaster_canSend" ref="e0d89b7a99fde9df85e2e7a86a048020" args="(Message *)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 TestMaster_canSend </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="611539550b18922783f095252be10ff4"></a><!-- doxytag: member="Master.h::TestMaster_heartbeatError" ref="611539550b18922783f095252be10ff4" args="(UNS8)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_heartbeatError </td>
<td>(</td>
<td class="paramtype">UNS8 </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00028">28</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>.
</div>
</div><p>
<a class="anchor" name="ed68508e702881e68c4152b125f5f3ab"></a><!-- doxytag: member="Master.h::TestMaster_initialisation" ref="ed68508e702881e68c4152b125f5f3ab" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_initialisation </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00038">38</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>, <a class="el" href="objdictdef_8h-source.html#l00073">RW</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00041">slavenodeid</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00496">TestMaster_Data</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="objacces_8c-source.html#l00378">writeLocalDict()</a>.
<p>
Here is the call graph for this function:<p><center><img src="Master_8h_ed68508e702881e68c4152b125f5f3ab_cgraph.png" border="0" usemap="#Master_8h_ed68508e702881e68c4152b125f5f3ab_cgraph_map" alt=""></center>
<map name="Master_8h_ed68508e702881e68c4152b125f5f3ab_cgraph_map">
<area href="objacces_8c.html#205ea90bcc1c528d291fb60102f19451" shape="rect" coords="209,5,311,32" alt="">
<area href="objacces_8c.html#c6dc3f9ab23f6fa05c3a454cdc82c985" shape="rect" coords="361,5,449,32" alt="">
<area href="objacces_8c.html#8577ef029b11faa6cfd1102f6bb10f59" shape="rect" coords="500,5,639,32" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="e4175256e19fb848c170b981974037ff"></a><!-- doxytag: member="Master.h::TestMaster_operational" ref="e4175256e19fb848c170b981974037ff" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_operational </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00154">154</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>.
</div>
</div><p>
<a class="anchor" name="861ebb7b01c1a2a70a48e47183ee9b23"></a><!-- doxytag: member="Master.h::TestMaster_post_sync" ref="861ebb7b01c1a2a70a48e47183ee9b23" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_post_sync </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00164">164</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00010">DI1</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00011">DI2</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00012">DI3</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00013">DI4</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00014">DI5</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00015">DI6</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00016">DI7</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00017">DI8</a>, <a class="el" href="TestMasterMicroMod_2TestMaster_8c-source.html#l00009">DO</a>, <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00009">MasterMap1</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00018">MasterMap10</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00019">MasterMap11</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00020">MasterMap12</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00021">MasterMap13</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00010">MasterMap2</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00011">MasterMap3</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00012">MasterMap4</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00013">MasterMap5</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00014">MasterMap6</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00015">MasterMap7</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00016">MasterMap8</a>, and <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00017">MasterMap9</a>.
</div>
</div><p>
<a class="anchor" name="dd4d88c919bcf2d03b7fe279327e5ef1"></a><!-- doxytag: member="Master.h::TestMaster_post_TPDO" ref="dd4d88c919bcf2d03b7fe279327e5ef1" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_post_TPDO </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00199">199</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="sdo_8c-source.html#l00439">closeSDOtransfer()</a>, <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</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#l00071">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00070">SDO_ABORTED_RCV</a>, <a class="el" href="def_8h-source.html#l00077">SDO_CLIENT</a>, <a class="el" href="def_8h-source.html#l00072">SDO_DOWNLOAD_IN_PROGRESS</a>, <a class="el" href="def_8h-source.html#l00069">SDO_FINISHED</a>, <a class="el" href="def_8h-source.html#l00068">SDO_RESET</a>, <a class="el" href="def_8h-source.html#l00073">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="pdo_8c-source.html#l00104">sendPDOrequest()</a>, <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00496">TestMaster_Data</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="sdo_8c-source.html#l01388">writeNetworkDictCallBack()</a>.
<p>
Here is the call graph for this function:<p><center><img src="Master_8h_dd4d88c919bcf2d03b7fe279327e5ef1_cgraph.png" border="0" usemap="#Master_8h_dd4d88c919bcf2d03b7fe279327e5ef1_cgraph_map" alt=""></center>
<map name="Master_8h_dd4d88c919bcf2d03b7fe279327e5ef1_cgraph_map">
<area href="sdo_8c.html#df77b984822a5cec9782ebd6bc64e700" shape="rect" coords="449,56,564,83" alt="">
<area href="sdo_8c.html#bec7a9f46a1ddda9fed0c0e7c61558fc" shape="rect" coords="423,5,591,32" alt="">
<area href="sdo_8c.html#dbc2fd49f1f126684922973871e337aa" shape="rect" coords="233,157,345,184" alt="">
<area href="pdo_8c.html#2a4d6e86bc4447a3c45c9b96bd61f995" shape="rect" coords="235,259,344,285" alt="">
<area href="sdo_8c.html#f0491ff0ed4a472e54de7f24c4e8457a" shape="rect" coords="205,107,373,133" alt="">
<area href="sdo_8c.html#93b0dc6875fffd911a7b0dc1ba96a8d1" shape="rect" coords="641,5,761,32" alt="">
<area href="sdo_8c.html#0d8fa7ef68e2d40eb014d9b89abf5448" shape="rect" coords="655,107,748,133" alt="">
<area href="sdo_8c.html#397e3c42e4165191c97fe342ae02e184" shape="rect" coords="811,107,896,133" alt="">
<area href="sdo_8c.html#d381df29f9b8c0a17bc10d845aba3a31" shape="rect" coords="447,157,567,184" alt="">
<area href="sdo_8c.html#cb77818f302f413301728d27c091fa03" shape="rect" coords="647,208,756,235" alt="">
<area href="sdo_8c.html#b708fa701e4afbb7b63c6e658317e6dc" shape="rect" coords="665,157,737,184" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="820,233,887,260" alt="">
<area href="dcf_8c.html#aa754826c624685ec491735501631c4e" shape="rect" coords="444,107,569,133" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="b4387f2180ab94c907dce7da44c26be6"></a><!-- doxytag: member="Master.h::TestMaster_preOperational" ref="b4387f2180ab94c907dce7da44c26be6" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_preOperational </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00146">146</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>, <a class="el" href="TestMasterMicroMod_8c-source.html#l00041">slavenodeid</a>, and <a class="el" href="TestMasterSlave_2TestMaster_8c-source.html#l00496">TestMaster_Data</a>.
</div>
</div><p>
<a class="anchor" name="8a1da415a74b96fa2b7eb1b5783d893d"></a><!-- doxytag: member="Master.h::TestMaster_stopped" ref="8a1da415a74b96fa2b7eb1b5783d893d" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TestMaster_stopped </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="Master_8c-source.html#l00159">159</a> of file <a class="el" href="Master_8c-source.html">Master.c</a>.
<p>
References <a class="el" href="TestMasterSlave_8h-source.html#l00026">eprintf</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:23 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>