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: include/unix/canfestival.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_bb27f6e70a4a8ab6966321815f15a33d.html">include</a> » <a class="el" href="dir_f052172fce93920bfe960b9c378303d6.html">unix</a></div>
<h1>canfestival.h File Reference</h1><code>#include "<a class="el" href="win32_2timerscfg_8h-source.html">timerscfg.h</a>"</code><br>
<code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br>
<code>#include "<a class="el" href="data_8h-source.html">data.h</a>"</code><br>
<code>#include "<a class="el" href="timers__driver_8h-source.html">timers_driver.h</a>"</code><br>
<code>#include <dlfcn.h></code><br>
<p>
Include dependency graph for canfestival.h:<p><center><img src="unix_2canfestival_8h__incl.png" border="0" usemap="#include/unix/canfestival.h_map" alt=""></center>
<map name="include/unix/canfestival.h_map">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="583,85,663,112" alt="">
<area href="can__driver_8h.html" shape="rect" coords="328,719,416,745" alt="">
<area href="data_8h.html" shape="rect" coords="216,364,269,391" alt="">
<area href="timers__driver_8h.html" shape="rect" coords="321,60,423,87" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="585,415,660,441" alt="">
<area href="can_8h.html" shape="rect" coords="479,415,527,441" alt="">
<area href="def_8h.html" shape="rect" coords="479,237,527,264" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="329,313,415,340" alt="">
<area href="objacces_8h.html" shape="rect" coords="333,617,411,644" alt="">
<area href="sdo_8h.html" shape="rect" coords="348,161,396,188" alt="">
<area href="pdo_8h.html" shape="rect" coords="347,364,397,391" alt="">
<area href="states_8h.html" shape="rect" coords="341,668,403,695" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="339,263,405,289" alt="">
<area href="sync_8h.html" shape="rect" coords="344,465,400,492" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="328,516,416,543" alt="">
<area href="config_8h.html" shape="rect" coords="591,237,655,264" alt="">
<area href="timer_8h.html" shape="rect" coords="473,111,532,137" alt="">
</map>
<p>
<a href="unix_2canfestival_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>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void * </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#82365a7646f33bc8ac026b9977e53a15">LIB_HANDLE</a></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#a6bd04d2ce9d3601ce0430fa39d7e971">UnLoadCanDriver</a> (<a class="el" href="win32_2canfestival_8h.html#df21ab161742c7137cd3bcbe1f9145b7">LIB_HANDLE</a> handle)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="win32_2canfestival_8h.html#df21ab161742c7137cd3bcbe1f9145b7">LIB_HANDLE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#0012a2aa42ef694bd275c6b5be5c89c7">LoadCanDriver</a> (char *driver_name)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#b510ea6afa8fdc7c55b3fd875c9f5209">canSend</a> (<a class="el" href="win32_2applicfg_8h.html#c5a917a8cacf5edd42ba6486c0c8a243">CAN_PORT</a> port, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="win32_2applicfg_8h.html#c5a917a8cacf5edd42ba6486c0c8a243">CAN_PORT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#c32083e9caa1b02f7726a8b87d10ce33">canOpen</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board, <a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_2canfestival_8h.html#6d6b692e726dee0a5726e6d3db1b1693">canClose</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="82365a7646f33bc8ac026b9977e53a15"></a><!-- doxytag: member="canfestival.h::LIB_HANDLE" ref="82365a7646f33bc8ac026b9977e53a15" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void* <a class="el" href="win32_2canfestival_8h.html#df21ab161742c7137cd3bcbe1f9145b7">LIB_HANDLE</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="unix_2canfestival_8h-source.html#l00013">13</a> of file <a class="el" href="unix_2canfestival_8h-source.html">canfestival.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="6d6b692e726dee0a5726e6d3db1b1693"></a><!-- doxytag: member="canfestival.h::canClose" ref="6d6b692e726dee0a5726e6d3db1b1693" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int canClose </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="unix_8c-source.html#l00178">178</a> of file <a class="el" href="unix_8c-source.html">unix.c</a>.
</div>
</div><p>
<a class="anchor" name="c32083e9caa1b02f7726a8b87d10ce33"></a><!-- doxytag: member="canfestival.h::canOpen" ref="c32083e9caa1b02f7726a8b87d10ce33" args="(s_BOARD *board, CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="win32_2applicfg_8h.html#c5a917a8cacf5edd42ba6486c0c8a243">CAN_PORT</a> canOpen </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td>
<td class="paramname"> <em>board</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em></td><td> </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="unix_8c-source.html#l00145">145</a> of file <a class="el" href="unix_8c-source.html">unix.c</a>.
</div>
</div><p>
<a class="anchor" name="b510ea6afa8fdc7c55b3fd875c9f5209"></a><!-- doxytag: member="canfestival.h::canSend" ref="b510ea6afa8fdc7c55b3fd875c9f5209" args="(CAN_PORT port, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 canSend </td>
<td>(</td>
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#c5a917a8cacf5edd42ba6486c0c8a243">CAN_PORT</a> </td>
<td class="paramname"> <em>port</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em></td><td> </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="unix_8c-source.html#l00120">120</a> of file <a class="el" href="unix_8c-source.html">unix.c</a>.
</div>
</div><p>
<a class="anchor" name="0012a2aa42ef694bd275c6b5be5c89c7"></a><!-- doxytag: member="canfestival.h::LoadCanDriver" ref="0012a2aa42ef694bd275c6b5be5c89c7" args="(char *driver_name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="win32_2canfestival_8h.html#df21ab161742c7137cd3bcbe1f9145b7">LIB_HANDLE</a> LoadCanDriver </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>driver_name</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="unix_8c-source.html#l00084">84</a> of file <a class="el" href="unix_8c-source.html">unix.c</a>.
</div>
</div><p>
<a class="anchor" name="a6bd04d2ce9d3601ce0430fa39d7e971"></a><!-- doxytag: member="canfestival.h::UnLoadCanDriver" ref="a6bd04d2ce9d3601ce0430fa39d7e971" args="(LIB_HANDLE handle)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 UnLoadCanDriver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="win32_2canfestival_8h.html#df21ab161742c7137cd3bcbe1f9145b7">LIB_HANDLE</a> </td>
<td class="paramname"> <em>handle</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="unix_8c-source.html#l00071">71</a> of file <a class="el" href="unix_8c-source.html">unix.c</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:36 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>