doc/doxygen/html/dcf_8c.html
author etisserant
Mon, 02 Jul 2007 18:22:58 +0200
changeset 236 905677ed00f3
parent 215 f49e5a6b7804
child 240 34654679f262
permissions -rw-r--r--
Full preliminary implementation of TPDO transmit type:
- SYNC (N) (1-240)
- RTR only + SYNC (252)
- RTR only (253)
- EVENT, with timer and inhibit time (254 and 255)

User app have to call sendPDOevent(d) to eventually signal mapped data changes.
Callbacks added to 0x140N, TPDO comm parameters for on the fly timers values change.
TestMasterSlave updated.
<!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: src/dcf.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_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div>
<h1>dcf.c File Reference</h1>EXEMPLE OF SOMMARY. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="objacces_8h-source.html">objacces.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="sdo_8h-source.html">sdo.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="dcf_8h-source.html">dcf.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="sysdep_8h-source.html">sysdep.h</a>&quot;</code><br>

<p>
Include dependency graph for dcf.c:<p><center><img src="dcf_8c__incl.png" border="0" usemap="#src/dcf.c_map" alt=""></center>
<map name="src/dcf.c_map">
<area href="objacces_8h.html" shape="rect" coords="132,248,226,272" alt="">
<area href="sdo_8h.html" shape="rect" coords="430,6,488,30" alt="">
<area href="dcf_8h.html" shape="rect" coords="152,347,206,371" alt="">
<area href="sysdep_8h.html" shape="rect" coords="275,595,358,619" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="683,334,771,358" alt="">
<area href="data_8h.html" shape="rect" coords="284,248,348,272" alt="">
<area href="def_8h.html" shape="rect" coords="567,495,623,519" alt="">
<area href="can_8h.html" shape="rect" coords="566,395,624,419" alt="">
<area href="objdictdef_8h.html" shape="rect" coords="408,104,510,128" alt="">
<area href="pdo_8h.html" shape="rect" coords="430,446,488,470" alt="">
<area href="states_8h.html" shape="rect" coords="422,200,496,224" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="420,296,498,320" alt="">
<area href="sync_8h.html" shape="rect" coords="426,152,492,176" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="406,248,512,272" alt="">
<area href="config_8h.html" shape="rect" coords="690,546,764,570" alt="">
<area href="timer_8h.html" shape="rect" coords="560,104,630,128" alt="">
<area href="win32_2timerscfg_8h.html" shape="rect" coords="678,118,776,142" alt="">
</map>

<p>
<a href="dcf_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>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="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a">_writeNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback, UNS8 endianize)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dcf_8c.html#8452e163e7649968ad6dae1601a5fb0d">decompo_dcf</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="structtd__indextable.html">indextable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dcf_8c.html#8bddcdce84393146515136d33d063060">ptrTable</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
EXEMPLE OF SOMMARY. 
<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl>
<dl class="date" compact><dt><b>Date:</b></dt><dd>Mon Jun 4 17:06:12 2007 </dd></dl>

<p>
Definition in file <a class="el" href="dcf_8c-source.html">dcf.c</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="3c07605ffe3ea197aa36e583ef87a20a"></a><!-- doxytag: member="dcf.c::_writeNetworkDict" ref="3c07605ffe3ea197aa36e583ef87a20a" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">INLINE UNS8 _writeNetworkDict           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>count</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"><a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a>&nbsp;</td>
          <td class="paramname"> <em>Callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>endianize</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>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nodeId</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>subIndex</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dataType</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Callback</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>endianize</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>
Normal transfert 
<p>
Definition at line <a class="el" href="sdo_8c-source.html#l01247">1247</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
<p>
References <a class="el" href="sdo_8h-source.html#l00082">struct_s_SDO::body</a>, <a class="el" href="objdictdef_8h-source.html#l00108">td_indextable::bSubCount</a>, <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00055">CANOPEN_BIG_ENDIAN</a>, <a class="el" href="sdo_8h-source.html#l00049">struct_s_transfer::count</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00076">BODY::data</a>, <a class="el" href="sdo_8h-source.html#l00056">struct_s_transfer::data</a>, <a class="el" href="sdo_8h-source.html#l00057">struct_s_transfer::dataType</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="sdo_8c-source.html#l00388">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00414">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00359">initSDOline()</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00081">struct_s_SDO::nodeId</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="sdo_8h-source.html#l00050">struct_s_transfer::offset</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="sdo_8c-source.html#l00338">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="objdictdef_8h-source.html#l00117">s_quick_index::SDO_CLT</a>, <a class="el" href="def_8h-source.html#l00074">SDO_DOWNLOAD_IN_PROGRESS</a>, <a class="el" href="sdo_8c-source.html#l00498">sendSDO()</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
<p>
Referenced by <a class="el" href="dcf_8c-source.html#l00075">decompo_dcf()</a>, <a class="el" href="sdo_8c-source.html#l01368">writeNetworkDict()</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="dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph.png" border="0" usemap="#dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph_map" alt=""></center>
<map name="dcf_8c_3c07605ffe3ea197aa36e583ef87a20a_cgraph_map">
<area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="208,5,336,29" alt="">
<area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="201,53,343,77" alt="">
<area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="393,128,489,152" alt="">
<area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="217,152,327,176" alt="">
<area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="231,200,313,224" alt="">
<area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="401,200,481,224" alt="">
<area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="540,200,671,224" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="8452e163e7649968ad6dae1601a5fb0d"></a><!-- doxytag: member="dcf.c::decompo_dcf" ref="8452e163e7649968ad6dae1601a5fb0d" args="(CO_Data *d, UNS8 nodeId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UNS32 decompo_dcf           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
          <td class="paramname"> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UNS8&nbsp;</td>
          <td class="paramname"> <em>nodeId</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>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nodeId</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>
Definition at line <a class="el" href="dcf_8c-source.html#l00075">75</a> of file <a class="el" href="dcf_8c-source.html">dcf.c</a>.
<p>
References <a class="el" href="sdo_8c-source.html#l01247">_writeNetworkDict()</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00096">struct_CO_Data::dcf_count_targets</a>, <a class="el" href="data_8h-source.html#l00095">struct_CO_Data::dcf_cursor</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="data_8h-source.html#l00064">struct_CO_Data::preOperational</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="dcf_8c-source.html#l00045">ptrTable</a>, <a class="el" href="data_8h-source.html#l00091">struct_CO_Data::scanIndexOD</a>, <a class="el" href="objdictdef_8h-source.html#l00099">td_subindex::size</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, <a class="el" href="sysdep_8h-source.html#l00020">UNS16_LE</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>, <a class="el" href="sysdep_8h-source.html#l00022">UNS32_LE</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
<p>
Referenced by <a class="el" href="states_8c-source.html#l00138">setState()</a>.
<p>
Here is the call graph for this function:<p><center><img src="dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph.png" border="0" usemap="#dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph_map" alt=""></center>
<map name="dcf_8c_8452e163e7649968ad6dae1601a5fb0d_cgraph_map">
<area href="dcf_8c.html#3c07605ffe3ea197aa36e583ef87a20a" shape="rect" coords="165,103,312,127" alt="">
<area href="sdo_8c.html#58d1f9691977617601beb9e5b4123252" shape="rect" coords="368,5,496,29" alt="">
<area href="sdo_8c.html#bb0c376b048ab2c6e0524b135b62376f" shape="rect" coords="361,53,503,77" alt="">
<area href="sdo_8c.html#b9c873a15f55b29112b5527a6cc6898d" shape="rect" coords="553,128,649,152" alt="">
<area href="sdo_8c.html#42d33be015d4c4c83c73f1f0e588f481" shape="rect" coords="377,152,487,176" alt="">
<area href="sdo_8c.html#c6b5d7d1439d537da992a96644a1ca5d" shape="rect" coords="391,200,473,224" alt="">
<area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="561,200,641,224" alt="">
<area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="700,200,831,224" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="8bddcdce84393146515136d33d063060"></a><!-- doxytag: member="dcf.c::ptrTable" ref="8bddcdce84393146515136d33d063060" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structtd__indextable.html">indextable</a>* <a class="el" href="dcf_8c.html#8bddcdce84393146515136d33d063060">ptrTable</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dcf_8c-source.html#l00045">45</a> of file <a class="el" href="dcf_8c-source.html">dcf.c</a>.
<p>
Referenced by <a class="el" href="objacces_8c-source.html#l00105">_getODentry()</a>, <a class="el" href="objacces_8c-source.html#l00260">_setODentry()</a>, <a class="el" href="dcf_8c-source.html#l00075">decompo_dcf()</a>, and <a class="el" href="states_8c-source.html#l00138">setState()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:09 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>