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/TestSlave.h Source File</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>TestSlave.h</h1><a href="TestSlave_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/* File generated by gen_cfile.py. Should not be modified. */</span>
<a name="l00003"></a>00003
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef TESTSLAVE_H</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define TESTSLAVE_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span>
<a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="data_8h.html">data.h</a>"</span>
<a name="l00008"></a>00008
<a name="l00009"></a>00009 <span class="comment">/* Prototypes of function provided by object dictionnary */</span>
<a name="l00010"></a>00010 <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="TestSlave_8c.html#14b4ffdf5d1322f01460a5a57c3fe6a1">TestSlave_valueRangeTest</a> (<a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> typeValue, <span class="keywordtype">void</span> * value);
<a name="l00011"></a>00011 <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> * <a class="code" href="TestSlave_8c.html#c149167bea3c6ab6b9b86ec184efbebb">TestSlave_scanIndexOD</a> (<a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> wIndex, <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> * errorCode, <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> **callbacks);
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="comment">/* Master node data struct */</span>
<a name="l00014"></a>00014 <span class="keyword">extern</span> <a class="code" href="structstruct__CO__Data.html">CO_Data</a> <a class="code" href="TestSlave_8c.html#bcd8091fd5ae1a85c56564327086f6b5">TestSlave_Data</a>;
<a name="l00015"></a>00015 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#7e2c1834f5a638966f1a0b52e008b251">Store_parameters_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1010 */</span>
<a name="l00016"></a>00016 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#aa5d59e3d7c06a241dfbb2d3cd9855fb">Restore_Default_Parameters_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1011 */</span>
<a name="l00017"></a>00017 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#3f0a6a16a92a68523734a315f3367afc">Transmit_PDO_1_Parameter_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1800 */</span>
<a name="l00018"></a>00018 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#4ff3ff7ffb4c572745998e82e5f8ec42">Transmit_PDO_2_Parameter_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1801 */</span>
<a name="l00019"></a>00019 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#e9510167f845aba467d246618f5bdc87">Transmit_PDO_3_Parameter_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1802 */</span>
<a name="l00020"></a>00020 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#5e702b79443ee5f71a5e7ab379a3c49d">Transmit_PDO_4_Parameter_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1803 */</span>
<a name="l00021"></a>00021 <span class="keyword">extern</span> <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="TestSlave_8h.html#f6444bb7d24801d7dd4bbab488038d3c">Transmit_PDO_5_Parameter_callbacks</a>[]; <span class="comment">/* Callbacks of index0x1804 */</span>
<a name="l00022"></a>00022 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#0315855e3166f37754f677c12af37079">SlaveMap1</a>; <span class="comment">/* Mapped at index 0x2000, subindex 0x00*/</span>
<a name="l00023"></a>00023 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#d4c4941435a80a898d90853bce7d7fb5">SlaveMap2</a>; <span class="comment">/* Mapped at index 0x2001, subindex 0x00*/</span>
<a name="l00024"></a>00024 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#02568038809abb8ee767b6e735e15661">SlaveMap3</a>; <span class="comment">/* Mapped at index 0x2002, subindex 0x00*/</span>
<a name="l00025"></a>00025 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#faa2629460f263d770c1b0c44ed23f3c">SlaveMap4</a>; <span class="comment">/* Mapped at index 0x2003, subindex 0x00*/</span>
<a name="l00026"></a>00026 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#97c4f8e9e1e1d495801d4e43c4b4e18e">SlaveMap5</a>; <span class="comment">/* Mapped at index 0x2004, subindex 0x00*/</span>
<a name="l00027"></a>00027 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#60b4c22166fc6d7c3b94b62591528ec5">SlaveMap6</a>; <span class="comment">/* Mapped at index 0x2005, subindex 0x00*/</span>
<a name="l00028"></a>00028 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#f3e1a22314eee7aa09ce25546f37a7c3">SlaveMap7</a>; <span class="comment">/* Mapped at index 0x2006, subindex 0x00*/</span>
<a name="l00029"></a>00029 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#6a4e0c32ada9a1b549dde17e7068f1d6">SlaveMap8</a>; <span class="comment">/* Mapped at index 0x2007, subindex 0x00*/</span>
<a name="l00030"></a>00030 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="TestSlave_8c.html#5dc8dd78ebf4094815a611f2e656c921">SlaveMap9</a>; <span class="comment">/* Mapped at index 0x2008, subindex 0x00*/</span>
<a name="l00031"></a>00031 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="TestSlave_8c.html#74dc04e166f002237ea9555dde2be1f8">SlaveMap10</a>; <span class="comment">/* Mapped at index 0x2009, subindex 0x00*/</span>
<a name="l00032"></a>00032 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="TestSlave_8c.html#ca2a65d14682fe50c421ca02e4fb4d7a">SlaveMap11</a>; <span class="comment">/* Mapped at index 0x200A, subindex 0x00*/</span>
<a name="l00033"></a>00033 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#0c3ca1d6c8f983c6a6a786a43d6a0e7c">INTEGER16</a> <a class="code" href="TestSlave_8c.html#80e94f62a38da8440388f48d1907bd09">SlaveMap12</a>; <span class="comment">/* Mapped at index 0x200B, subindex 0x00*/</span>
<a name="l00034"></a>00034 <span class="keyword">extern</span> <a class="code" href="hcs12_2applicfg_8h.html#0c3ca1d6c8f983c6a6a786a43d6a0e7c">INTEGER16</a> <a class="code" href="TestSlave_8c.html#679fa4981c285007faf389b25a4f8436">SlaveMap13</a>; <span class="comment">/* Mapped at index 0x200C, subindex 0x00*/</span>
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="preprocessor">#endif // TESTSLAVE_H</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:16 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>