doc/doxygen/html/sdo_8h.html
changeset 210 6b5a4c21e061
parent 209 2cb34a4ac65a
child 211 2a4c2ca03555
equal deleted inserted replaced
209:2cb34a4ac65a 210:6b5a4c21e061
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
       
     3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/include/sdo.h File Reference</title>
       
     4 <link href="doxygen.css" rel="stylesheet" type="text/css">
       
     5 <link href="tabs.css" rel="stylesheet" type="text/css">
       
     6 </head><body>
       
     7 <!-- Generated by Doxygen 1.5.1 -->
       
     8 <div class="tabs">
       
     9   <ul>
       
    10     <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
       
    11     <li><a href="namespaces.html"><span>Namespaces</span></a></li>
       
    12     <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
       
    13     <li id="current"><a href="files.html"><span>Files</span></a></li>
       
    14   </ul></div>
       
    15 <div class="tabs">
       
    16   <ul>
       
    17     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
       
    18     <li><a href="globals.html"><span>Globals</span></a></li>
       
    19   </ul></div>
       
    20 <h1>/home/epimerde/documents/tc11/CanFestival-3/include/sdo.h File Reference</h1><code>#include &quot;<a class="el" href="timer_8h-source.html">timer.h</a>&quot;</code><br>
       
    21 <code>#include &quot;<a class="el" href="data_8h-source.html">data.h</a>&quot;</code><br>
       
    22 
       
    23 <p>
       
    24 <a href="sdo_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
       
    25 <tr><td></td></tr>
       
    26 <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
       
    27 <tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstruct__s__transfer.html">struct_s_transfer</a></td></tr>
       
    28 
       
    29 <tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBODY.html">BODY</a></td></tr>
       
    30 
       
    31 <tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstruct__s__SDO.html">struct_s_SDO</a></td></tr>
       
    32 
       
    33 <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
       
    34 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)</td></tr>
       
    35 
       
    36 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structstruct__s__transfer.html">struct_s_transfer</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#0c41985ac8cf4546cbce64eb0f2ac897">s_transfer</a></td></tr>
       
    37 
       
    38 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structstruct__s__SDO.html">struct_s_SDO</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#f9e5cbdc9fba242ca4060f6bffa6d7c8">s_SDO</a></td></tr>
       
    39 
       
    40 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
       
    41 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#9309025e29b59e09026abcd3b45a5b61">SDOTimeoutAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id)</td></tr>
       
    42 
       
    43 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#1f4f07eccc4890a11ccf4f632da7740b">resetSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>
       
    44 
       
    45 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#2eb5309dca3a7363da5e5e7230b85d58">SDOlineToObjdict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr>
       
    46 
       
    47 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#29427a80fd1aeabff30bf0602fbc220f">objdictToSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr>
       
    48 
       
    49 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#ad6eb8be03b832ebba4dfb87aaba4065">lineToSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr>
       
    50 
       
    51 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#18b6f7e9c9441640a88ffef1e8720694">SDOtoLine</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes, UNS8 *data)</td></tr>
       
    52 
       
    53 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#2019db2a4d17e6d29c055cbae173e2b9">failedSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr>
       
    54 
       
    55 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#42d33be015d4c4c83c73f1f0e588f481">resetSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line)</td></tr>
       
    56 
       
    57 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#b9c873a15f55b29112b5527a6cc6898d">initSDOline</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 state)</td></tr>
       
    58 
       
    59 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#58d1f9691977617601beb9e5b4123252">getSDOfreeLine</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, UNS8 *line)</td></tr>
       
    60 
       
    61 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#bb0c376b048ab2c6e0524b135b62376f">getSDOlineOnUse</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami, UNS8 *line)</td></tr>
       
    62 
       
    63 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#555a772d3a88a29c495f33513f8b2d58">closeSDOtransfer</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS8 whoami)</td></tr>
       
    64 
       
    65 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#acceb714c6e457e98deb9ba164ba2a2f">getSDOlineRestBytes</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 *nbBytes)</td></tr>
       
    66 
       
    67 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#601a837ecb5f21bf4c66b058c5ae7810">setSDOlineRestBytes</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 line, UNS8 nbBytes)</td></tr>
       
    68 
       
    69 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#c6b5d7d1439d537da992a96644a1ca5d">sendSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, <a class="el" href="structstruct__s__SDO.html">s_SDO</a> sdo)</td></tr>
       
    70 
       
    71 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#b26c3f2fb63d81055809d6ccaa785b7c">sendSDOabort</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)</td></tr>
       
    72 
       
    73 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#2a93a7c780472b1d8666d89aa270f661">proceedSDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
       
    74 
       
    75 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#bc20ed246e00053dcf71faa8f45ee39c">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)</td></tr>
       
    76 
       
    77 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#f4ec05293fb8971a1b282994498ed4f5">writeNetworkDictCallBack</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)</td></tr>
       
    78 
       
    79 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#0e102a0835e4115920cd406e80a8d135">readNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType)</td></tr>
       
    80 
       
    81 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#542a5cdd20c00aa130a39fe68295e769">readNetworkDictCallback</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a> Callback)</td></tr>
       
    82 
       
    83 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#05b0c8eee1faee3c7a2f6e2ba3a16533">getReadResultNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)</td></tr>
       
    84 
       
    85 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo_8h.html#8671e306873f19362c60bb50ab930d1d">getWriteResultNetworkDict</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId, UNS32 *abortCode)</td></tr>
       
    86 
       
    87 </table>
       
    88 <hr><h2>Typedef Documentation</h2>
       
    89 <a class="anchor" name="f9e5cbdc9fba242ca4060f6bffa6d7c8"></a><!-- doxytag: member="sdo.h::s_SDO" ref="f9e5cbdc9fba242ca4060f6bffa6d7c8" args="" -->
       
    90 <div class="memitem">
       
    91 <div class="memproto">
       
    92       <table class="memname">
       
    93         <tr>
       
    94           <td class="memname">typedef struct <a class="el" href="structstruct__s__SDO.html">struct_s_SDO</a> <a class="el" href="structstruct__s__SDO.html">s_SDO</a>          </td>
       
    95         </tr>
       
    96       </table>
       
    97 </div>
       
    98 <div class="memdoc">
       
    99 
       
   100 <p>
       
   101 
       
   102 <p>
       
   103 Definition at line <a class="el" href="sdo_8h-source.html#l00086">86</a> of file <a class="el" href="sdo_8h-source.html">sdo.h</a>.
       
   104 </div>
       
   105 </div><p>
       
   106 <a class="anchor" name="0c41985ac8cf4546cbce64eb0f2ac897"></a><!-- doxytag: member="sdo.h::s_transfer" ref="0c41985ac8cf4546cbce64eb0f2ac897" args="" -->
       
   107 <div class="memitem">
       
   108 <div class="memproto">
       
   109       <table class="memname">
       
   110         <tr>
       
   111           <td class="memname">typedef struct <a class="el" href="structstruct__s__transfer.html">struct_s_transfer</a> <a class="el" href="structstruct__s__transfer.html">s_transfer</a>          </td>
       
   112         </tr>
       
   113       </table>
       
   114 </div>
       
   115 <div class="memdoc">
       
   116 
       
   117 <p>
       
   118 
       
   119 <p>
       
   120 Definition at line <a class="el" href="sdo_8h-source.html#l00069">69</a> of file <a class="el" href="sdo_8h-source.html">sdo.h</a>.
       
   121 </div>
       
   122 </div><p>
       
   123 <a class="anchor" name="606eccfef67e572723e1efba3f0d87ba"></a><!-- doxytag: member="sdo.h::SDOCallback_t" ref="606eccfef67e572723e1efba3f0d87ba" args="(CO_Data *d, UNS8 nodeId)" -->
       
   124 <div class="memitem">
       
   125 <div class="memproto">
       
   126       <table class="memname">
       
   127         <tr>
       
   128           <td class="memname">typedef void(*) <a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a>(<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS8 nodeId)          </td>
       
   129         </tr>
       
   130       </table>
       
   131 </div>
       
   132 <div class="memdoc">
       
   133 
       
   134 <p>
       
   135 
       
   136 <p>
       
   137 Definition at line <a class="el" href="sdo_8h-source.html#l00030">30</a> of file <a class="el" href="sdo_8h-source.html">sdo.h</a>.
       
   138 </div>
       
   139 </div><p>
       
   140 <hr><h2>Function Documentation</h2>
       
   141 <a class="anchor" name="555a772d3a88a29c495f33513f8b2d58"></a><!-- doxytag: member="sdo.h::closeSDOtransfer" ref="555a772d3a88a29c495f33513f8b2d58" args="(CO_Data *d, UNS8 nodeId, UNS8 whoami)" -->
       
   142 <div class="memitem">
       
   143 <div class="memproto">
       
   144       <table class="memname">
       
   145         <tr>
       
   146           <td class="memname">UNS8 closeSDOtransfer           </td>
       
   147           <td>(</td>
       
   148           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   149           <td class="paramname"> <em>d</em>, </td>
       
   150         </tr>
       
   151         <tr>
       
   152           <td class="paramkey"></td>
       
   153           <td></td>
       
   154           <td class="paramtype">UNS8&nbsp;</td>
       
   155           <td class="paramname"> <em>nodeId</em>, </td>
       
   156         </tr>
       
   157         <tr>
       
   158           <td class="paramkey"></td>
       
   159           <td></td>
       
   160           <td class="paramtype">UNS8&nbsp;</td>
       
   161           <td class="paramname"> <em>whoami</em></td><td>&nbsp;</td>
       
   162         </tr>
       
   163         <tr>
       
   164           <td></td>
       
   165           <td>)</td>
       
   166           <td></td><td></td><td width="100%"></td>
       
   167         </tr>
       
   168       </table>
       
   169 </div>
       
   170 <div class="memdoc">
       
   171 
       
   172 <p>
       
   173 Close a transmission. nodeId : Node id of the server if both server or client whoami : Line opened as SDO_CLIENT or SDO_SERVER 
       
   174 <p>
       
   175 Definition at line <a class="el" href="sdo_8c-source.html#l00318">318</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   176 <p>
       
   177 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8c-source.html#l00301">getSDOlineOnUse()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8c-source.html#l00253">resetSDOline()</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   178 </div>
       
   179 </div><p>
       
   180 <a class="anchor" name="2019db2a4d17e6d29c055cbae173e2b9"></a><!-- doxytag: member="sdo.h::failedSDO" ref="2019db2a4d17e6d29c055cbae173e2b9" args="(CO_Data *d, UNS8 nodeId, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)" -->
       
   181 <div class="memitem">
       
   182 <div class="memproto">
       
   183       <table class="memname">
       
   184         <tr>
       
   185           <td class="memname">UNS8 failedSDO           </td>
       
   186           <td>(</td>
       
   187           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   188           <td class="paramname"> <em>d</em>, </td>
       
   189         </tr>
       
   190         <tr>
       
   191           <td class="paramkey"></td>
       
   192           <td></td>
       
   193           <td class="paramtype">UNS8&nbsp;</td>
       
   194           <td class="paramname"> <em>nodeId</em>, </td>
       
   195         </tr>
       
   196         <tr>
       
   197           <td class="paramkey"></td>
       
   198           <td></td>
       
   199           <td class="paramtype">UNS8&nbsp;</td>
       
   200           <td class="paramname"> <em>whoami</em>, </td>
       
   201         </tr>
       
   202         <tr>
       
   203           <td class="paramkey"></td>
       
   204           <td></td>
       
   205           <td class="paramtype">UNS16&nbsp;</td>
       
   206           <td class="paramname"> <em>index</em>, </td>
       
   207         </tr>
       
   208         <tr>
       
   209           <td class="paramkey"></td>
       
   210           <td></td>
       
   211           <td class="paramtype">UNS8&nbsp;</td>
       
   212           <td class="paramname"> <em>subIndex</em>, </td>
       
   213         </tr>
       
   214         <tr>
       
   215           <td class="paramkey"></td>
       
   216           <td></td>
       
   217           <td class="paramtype">UNS32&nbsp;</td>
       
   218           <td class="paramname"> <em>abortCode</em></td><td>&nbsp;</td>
       
   219         </tr>
       
   220         <tr>
       
   221           <td></td>
       
   222           <td>)</td>
       
   223           <td></td><td></td><td width="100%"></td>
       
   224         </tr>
       
   225       </table>
       
   226 </div>
       
   227 <div class="memdoc">
       
   228 
       
   229 <p>
       
   230 Called when an internal SDO abort occurs. Release the line * Only if server * If client, the line must be released manually in the core application. The reason of that is to permit the program to read the transfers[][] structure before its reset, because many informations are stored on it : index, subindex, data received or trasmited, ... In all cases, sends a SDO abort. Returns 0 
       
   231 <p>
       
   232 Definition at line <a class="el" href="sdo_8c-source.html#l00227">227</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   233 <p>
       
   234 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8c-source.html#l00301">getSDOlineOnUse()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8c-source.html#l00253">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="sdo_8c-source.html#l00424">sendSDOabort()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8c-source.html#l00116">StopSDO_TIMER</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   235 </div>
       
   236 </div><p>
       
   237 <a class="anchor" name="05b0c8eee1faee3c7a2f6e2ba3a16533"></a><!-- doxytag: member="sdo.h::getReadResultNetworkDict" ref="05b0c8eee1faee3c7a2f6e2ba3a16533" args="(CO_Data *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode)" -->
       
   238 <div class="memitem">
       
   239 <div class="memproto">
       
   240       <table class="memname">
       
   241         <tr>
       
   242           <td class="memname">UNS8 getReadResultNetworkDict           </td>
       
   243           <td>(</td>
       
   244           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   245           <td class="paramname"> <em>d</em>, </td>
       
   246         </tr>
       
   247         <tr>
       
   248           <td class="paramkey"></td>
       
   249           <td></td>
       
   250           <td class="paramtype">UNS8&nbsp;</td>
       
   251           <td class="paramname"> <em>nodeId</em>, </td>
       
   252         </tr>
       
   253         <tr>
       
   254           <td class="paramkey"></td>
       
   255           <td></td>
       
   256           <td class="paramtype">void *&nbsp;</td>
       
   257           <td class="paramname"> <em>data</em>, </td>
       
   258         </tr>
       
   259         <tr>
       
   260           <td class="paramkey"></td>
       
   261           <td></td>
       
   262           <td class="paramtype">UNS8 *&nbsp;</td>
       
   263           <td class="paramname"> <em>size</em>, </td>
       
   264         </tr>
       
   265         <tr>
       
   266           <td class="paramkey"></td>
       
   267           <td></td>
       
   268           <td class="paramtype">UNS32 *&nbsp;</td>
       
   269           <td class="paramname"> <em>abortCode</em></td><td>&nbsp;</td>
       
   270         </tr>
       
   271         <tr>
       
   272           <td></td>
       
   273           <td>)</td>
       
   274           <td></td><td></td><td width="100%"></td>
       
   275         </tr>
       
   276       </table>
       
   277 </div>
       
   278 <div class="memdoc">
       
   279 
       
   280 <p>
       
   281 Use this function after a readNetworkDict to get the result. Returns : SDO_FINISHED // data is available SDO_ABORTED_RCV // Transfert failed. (abort SDO received) SDO_ABORTED_INTERNAL // Transfert failed. Internal abort. SDO_UPLOAD_IN_PROGRESS // Data not yet available SDO_DOWNLOAD_IN_PROGRESS // Should not arrive !<p>
       
   282 dataType (defined in <a class="el" href="objdictdef_8h.html">objdictdef.h</a>) : type expected. put "visible_string" for strings, 0 for integers or reals. abortCode : 0 = not available. Else : SDO abort code. (received if return SDO_ABORTED_RCV) example : UNS32 data; UNS8 size; readNetworkDict(0, 0x05, 0x1016, 1, 0) // get the data index 1016 subindex 1 of node 5 while (getReadResultNetworkDict (0, 0x05, &amp;data, &amp;size) != SDO_UPLOAD_IN_PROGRESS); 
       
   283 <p>
       
   284 Definition at line <a class="el" href="sdo_8c-source.html#l01295">1295</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   285 <p>
       
   286 References <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#l00056">struct_s_transfer::data</a>, <a class="el" href="sdo_8h-source.html#l00057">struct_s_transfer::dataType</a>, <a class="el" href="sdo_8c-source.html#l00301">getSDOlineOnUse()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="def_8h-source.html#l00071">SDO_FINISHED</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="objdictdef_8h-source.html#l00040">visible_string</a>.
       
   287 </div>
       
   288 </div><p>
       
   289 <a class="anchor" name="58d1f9691977617601beb9e5b4123252"></a><!-- doxytag: member="sdo.h::getSDOfreeLine" ref="58d1f9691977617601beb9e5b4123252" args="(CO_Data *d, UNS8 whoami, UNS8 *line)" -->
       
   290 <div class="memitem">
       
   291 <div class="memproto">
       
   292       <table class="memname">
       
   293         <tr>
       
   294           <td class="memname">UNS8 getSDOfreeLine           </td>
       
   295           <td>(</td>
       
   296           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   297           <td class="paramname"> <em>d</em>, </td>
       
   298         </tr>
       
   299         <tr>
       
   300           <td class="paramkey"></td>
       
   301           <td></td>
       
   302           <td class="paramtype">UNS8&nbsp;</td>
       
   303           <td class="paramname"> <em>whoami</em>, </td>
       
   304         </tr>
       
   305         <tr>
       
   306           <td class="paramkey"></td>
       
   307           <td></td>
       
   308           <td class="paramtype">UNS8 *&nbsp;</td>
       
   309           <td class="paramname"> <em>line</em></td><td>&nbsp;</td>
       
   310         </tr>
       
   311         <tr>
       
   312           <td></td>
       
   313           <td>)</td>
       
   314           <td></td><td></td><td width="100%"></td>
       
   315         </tr>
       
   316       </table>
       
   317 </div>
       
   318 <div class="memdoc">
       
   319 
       
   320 <p>
       
   321 Search for an unused line in the transfers array to store a new SDO. ie a line which value of the field "state" is "SDO_RESET" An unused line have the field "state" at the value SDO_RESET bus_id is hardware dependant whoami : create the line for a SDO_SERVER or SDO_CLIENT. return 0xFF if all the lines are on use. Else, return 0 
       
   322 <p>
       
   323 Definition at line <a class="el" href="sdo_8c-source.html#l00284">284</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   324 <p>
       
   325 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="config_8h-source.html#l00029">SDO_MAX_SIMULTANEOUS_TRANSFERTS</a>, <a class="el" href="def_8h-source.html#l00070">SDO_RESET</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="sdo_8h-source.html#l00041">struct_s_transfer::whoami</a>.
       
   326 </div>
       
   327 </div><p>
       
   328 <a class="anchor" name="bb0c376b048ab2c6e0524b135b62376f"></a><!-- doxytag: member="sdo.h::getSDOlineOnUse" ref="bb0c376b048ab2c6e0524b135b62376f" args="(CO_Data *d, UNS8 nodeId, UNS8 whoami, UNS8 *line)" -->
       
   329 <div class="memitem">
       
   330 <div class="memproto">
       
   331       <table class="memname">
       
   332         <tr>
       
   333           <td class="memname">UNS8 getSDOlineOnUse           </td>
       
   334           <td>(</td>
       
   335           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   336           <td class="paramname"> <em>d</em>, </td>
       
   337         </tr>
       
   338         <tr>
       
   339           <td class="paramkey"></td>
       
   340           <td></td>
       
   341           <td class="paramtype">UNS8&nbsp;</td>
       
   342           <td class="paramname"> <em>nodeId</em>, </td>
       
   343         </tr>
       
   344         <tr>
       
   345           <td class="paramkey"></td>
       
   346           <td></td>
       
   347           <td class="paramtype">UNS8&nbsp;</td>
       
   348           <td class="paramname"> <em>whoami</em>, </td>
       
   349         </tr>
       
   350         <tr>
       
   351           <td class="paramkey"></td>
       
   352           <td></td>
       
   353           <td class="paramtype">UNS8 *&nbsp;</td>
       
   354           <td class="paramname"> <em>line</em></td><td>&nbsp;</td>
       
   355         </tr>
       
   356         <tr>
       
   357           <td></td>
       
   358           <td>)</td>
       
   359           <td></td><td></td><td width="100%"></td>
       
   360         </tr>
       
   361       </table>
       
   362 </div>
       
   363 <div class="memdoc">
       
   364 
       
   365 <p>
       
   366 Search for the line, in the transfers array, which contains the beginning of the reception of a fragmented SDO whoami takes 2 values : look for a line opened as SDO_CLIENT or SDO_SERVER bus_id is hardware dependant nodeId correspond to the message node-id return 0xFF if error. Else, return 0 
       
   367 <p>
       
   368 Definition at line <a class="el" href="sdo_8c-source.html#l00301">301</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   369 <p>
       
   370 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00039">struct_s_transfer::nodeId</a>, <a class="el" href="config_8h-source.html#l00029">SDO_MAX_SIMULTANEOUS_TRANSFERTS</a>, <a class="el" href="def_8h-source.html#l00070">SDO_RESET</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="sdo_8h-source.html#l00041">struct_s_transfer::whoami</a>.
       
   371 </div>
       
   372 </div><p>
       
   373 <a class="anchor" name="acceb714c6e457e98deb9ba164ba2a2f"></a><!-- doxytag: member="sdo.h::getSDOlineRestBytes" ref="acceb714c6e457e98deb9ba164ba2a2f" args="(CO_Data *d, UNS8 line, UNS8 *nbBytes)" -->
       
   374 <div class="memitem">
       
   375 <div class="memproto">
       
   376       <table class="memname">
       
   377         <tr>
       
   378           <td class="memname">UNS8 getSDOlineRestBytes           </td>
       
   379           <td>(</td>
       
   380           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   381           <td class="paramname"> <em>d</em>, </td>
       
   382         </tr>
       
   383         <tr>
       
   384           <td class="paramkey"></td>
       
   385           <td></td>
       
   386           <td class="paramtype">UNS8&nbsp;</td>
       
   387           <td class="paramname"> <em>line</em>, </td>
       
   388         </tr>
       
   389         <tr>
       
   390           <td class="paramkey"></td>
       
   391           <td></td>
       
   392           <td class="paramtype">UNS8 *&nbsp;</td>
       
   393           <td class="paramname"> <em>nbBytes</em></td><td>&nbsp;</td>
       
   394         </tr>
       
   395         <tr>
       
   396           <td></td>
       
   397           <td>)</td>
       
   398           <td></td><td></td><td width="100%"></td>
       
   399         </tr>
       
   400       </table>
       
   401 </div>
       
   402 <div class="memdoc">
       
   403 
       
   404 <p>
       
   405 Bytes in the line structure which must be transmited (or received) bus_id is hardware dependant. return 0. 
       
   406 <p>
       
   407 Definition at line <a class="el" href="sdo_8c-source.html#l00332">332</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   408 <p>
       
   409 References <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#l00050">struct_s_transfer::offset</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   410 </div>
       
   411 </div><p>
       
   412 <a class="anchor" name="8671e306873f19362c60bb50ab930d1d"></a><!-- doxytag: member="sdo.h::getWriteResultNetworkDict" ref="8671e306873f19362c60bb50ab930d1d" args="(CO_Data *d, UNS8 nodeId, UNS32 *abortCode)" -->
       
   413 <div class="memitem">
       
   414 <div class="memproto">
       
   415       <table class="memname">
       
   416         <tr>
       
   417           <td class="memname">UNS8 getWriteResultNetworkDict           </td>
       
   418           <td>(</td>
       
   419           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   420           <td class="paramname"> <em>d</em>, </td>
       
   421         </tr>
       
   422         <tr>
       
   423           <td class="paramkey"></td>
       
   424           <td></td>
       
   425           <td class="paramtype">UNS8&nbsp;</td>
       
   426           <td class="paramname"> <em>nodeId</em>, </td>
       
   427         </tr>
       
   428         <tr>
       
   429           <td class="paramkey"></td>
       
   430           <td></td>
       
   431           <td class="paramtype">UNS32 *&nbsp;</td>
       
   432           <td class="paramname"> <em>abortCode</em></td><td>&nbsp;</td>
       
   433         </tr>
       
   434         <tr>
       
   435           <td></td>
       
   436           <td>)</td>
       
   437           <td></td><td></td><td width="100%"></td>
       
   438         </tr>
       
   439       </table>
       
   440 </div>
       
   441 <div class="memdoc">
       
   442 
       
   443 <p>
       
   444 Use this function after a writeNetworkDict to get the result of the write It is mandatory to call this function because it is releasing the line used for the transfer. Returns : SDO_FINISHED // data is available SDO_ABORTED_RCV // Transfert failed. (abort SDO received) SDO_ABORTED_INTERNAL // Transfert failed. Internal abort. SDO_DOWNLOAD_IN_PROGRESS // Data not yet available SDO_UPLOAD_IN_PROGRESS // Should not arrive ! abortCode : 0 = not available. Else : SDO abort code. (received if return SDO_ABORTED_RCV) example : UNS32 data = 0x50; UNS8 size; UNS32 abortCode; writeNetworkDict(0, 0x05, 0x1016, 1, size, &amp;data) // write the data index 1016 subindex 1 of node 5 while ( getWriteResultNetworkDict (0, 0x05, &amp;abortCode) != SDO_DOWNLOAD_IN_PROGRESS); 
       
   445 <p>
       
   446 Definition at line <a class="el" href="sdo_8c-source.html#l01329">1329</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   447 <p>
       
   448 References <a class="el" href="sdo_8h-source.html#l00044">struct_s_transfer::abortCode</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8c-source.html#l00301">getSDOlineOnUse()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00079">SDO_CLIENT</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   449 </div>
       
   450 </div><p>
       
   451 <a class="anchor" name="b9c873a15f55b29112b5527a6cc6898d"></a><!-- doxytag: member="sdo.h::initSDOline" ref="b9c873a15f55b29112b5527a6cc6898d" args="(CO_Data *d, UNS8 line, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 state)" -->
       
   452 <div class="memitem">
       
   453 <div class="memproto">
       
   454       <table class="memname">
       
   455         <tr>
       
   456           <td class="memname">UNS8 initSDOline           </td>
       
   457           <td>(</td>
       
   458           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   459           <td class="paramname"> <em>d</em>, </td>
       
   460         </tr>
       
   461         <tr>
       
   462           <td class="paramkey"></td>
       
   463           <td></td>
       
   464           <td class="paramtype">UNS8&nbsp;</td>
       
   465           <td class="paramname"> <em>line</em>, </td>
       
   466         </tr>
       
   467         <tr>
       
   468           <td class="paramkey"></td>
       
   469           <td></td>
       
   470           <td class="paramtype">UNS8&nbsp;</td>
       
   471           <td class="paramname"> <em>nodeId</em>, </td>
       
   472         </tr>
       
   473         <tr>
       
   474           <td class="paramkey"></td>
       
   475           <td></td>
       
   476           <td class="paramtype">UNS16&nbsp;</td>
       
   477           <td class="paramname"> <em>index</em>, </td>
       
   478         </tr>
       
   479         <tr>
       
   480           <td class="paramkey"></td>
       
   481           <td></td>
       
   482           <td class="paramtype">UNS8&nbsp;</td>
       
   483           <td class="paramname"> <em>subIndex</em>, </td>
       
   484         </tr>
       
   485         <tr>
       
   486           <td class="paramkey"></td>
       
   487           <td></td>
       
   488           <td class="paramtype">UNS8&nbsp;</td>
       
   489           <td class="paramname"> <em>state</em></td><td>&nbsp;</td>
       
   490         </tr>
       
   491         <tr>
       
   492           <td></td>
       
   493           <td>)</td>
       
   494           <td></td><td></td><td width="100%"></td>
       
   495         </tr>
       
   496       </table>
       
   497 </div>
       
   498 <div class="memdoc">
       
   499 
       
   500 <p>
       
   501 Initialize some fields of the structure. Returns 0 
       
   502 <p>
       
   503 Definition at line <a class="el" href="sdo_8c-source.html#l00263">263</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   504 <p>
       
   505 References <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</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#l00057">struct_s_transfer::dataType</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="sdo_8h-source.html#l00039">struct_s_transfer::nodeId</a>, <a class="el" href="sdo_8h-source.html#l00050">struct_s_transfer::offset</a>, <a class="el" href="def_8h-source.html#l00074">SDO_DOWNLOAD_IN_PROGRESS</a>, <a class="el" href="def_8h-source.html#l00075">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="sdo_8c-source.html#l00120">StartSDO_TIMER</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8c-source.html#l00116">StopSDO_TIMER</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="sdo_8h-source.html#l00043">struct_s_transfer::toggle</a>, and <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>.
       
   506 </div>
       
   507 </div><p>
       
   508 <a class="anchor" name="ad6eb8be03b832ebba4dfb87aaba4065"></a><!-- doxytag: member="sdo.h::lineToSDO" ref="ad6eb8be03b832ebba4dfb87aaba4065" args="(CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)" -->
       
   509 <div class="memitem">
       
   510 <div class="memproto">
       
   511       <table class="memname">
       
   512         <tr>
       
   513           <td class="memname">UNS8 lineToSDO           </td>
       
   514           <td>(</td>
       
   515           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   516           <td class="paramname"> <em>d</em>, </td>
       
   517         </tr>
       
   518         <tr>
       
   519           <td class="paramkey"></td>
       
   520           <td></td>
       
   521           <td class="paramtype">UNS8&nbsp;</td>
       
   522           <td class="paramname"> <em>line</em>, </td>
       
   523         </tr>
       
   524         <tr>
       
   525           <td class="paramkey"></td>
       
   526           <td></td>
       
   527           <td class="paramtype">UNS8&nbsp;</td>
       
   528           <td class="paramname"> <em>nbBytes</em>, </td>
       
   529         </tr>
       
   530         <tr>
       
   531           <td class="paramkey"></td>
       
   532           <td></td>
       
   533           <td class="paramtype">UNS8 *&nbsp;</td>
       
   534           <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
       
   535         </tr>
       
   536         <tr>
       
   537           <td></td>
       
   538           <td>)</td>
       
   539           <td></td><td></td><td width="100%"></td>
       
   540         </tr>
       
   541       </table>
       
   542 </div>
       
   543 <div class="memdoc">
       
   544 
       
   545 <p>
       
   546 copy data from an existant line in the argument "* data" Returns 0xFF if error. Else, returns 0; 
       
   547 <p>
       
   548 Definition at line <a class="el" href="sdo_8c-source.html#l00189">189</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   549 <p>
       
   550 References <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#l00056">struct_s_transfer::data</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="sdo_8h-source.html#l00050">struct_s_transfer::offset</a>, <a class="el" href="config_8h-source.html#l00028">SDO_MAX_LENGTH_TRANSFERT</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   551 </div>
       
   552 </div><p>
       
   553 <a class="anchor" name="29427a80fd1aeabff30bf0602fbc220f"></a><!-- doxytag: member="sdo.h::objdictToSDOline" ref="29427a80fd1aeabff30bf0602fbc220f" args="(CO_Data *d, UNS8 line)" -->
       
   554 <div class="memitem">
       
   555 <div class="memproto">
       
   556       <table class="memname">
       
   557         <tr>
       
   558           <td class="memname">UNS32 objdictToSDOline           </td>
       
   559           <td>(</td>
       
   560           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   561           <td class="paramname"> <em>d</em>, </td>
       
   562         </tr>
       
   563         <tr>
       
   564           <td class="paramkey"></td>
       
   565           <td></td>
       
   566           <td class="paramtype">UNS8&nbsp;</td>
       
   567           <td class="paramname"> <em>line</em></td><td>&nbsp;</td>
       
   568         </tr>
       
   569         <tr>
       
   570           <td></td>
       
   571           <td>)</td>
       
   572           <td></td><td></td><td width="100%"></td>
       
   573         </tr>
       
   574       </table>
       
   575 </div>
       
   576 <div class="memdoc">
       
   577 
       
   578 <p>
       
   579 Copy the data from the object dictionary to the SDO line for a network transfert. Returns SDO error code if error. Else, returns 0; 
       
   580 <p>
       
   581 Definition at line <a class="el" href="sdo_8c-source.html#l00157">157</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   582 <p>
       
   583 References <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#l00056">struct_s_transfer::data</a>, <a class="el" href="objacces_8c-source.html#l00145">getODentry()</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="sdo_8h-source.html#l00050">struct_s_transfer::offset</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</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>.
       
   584 </div>
       
   585 </div><p>
       
   586 <a class="anchor" name="2a93a7c780472b1d8666d89aa270f661"></a><!-- doxytag: member="sdo.h::proceedSDO" ref="2a93a7c780472b1d8666d89aa270f661" args="(CO_Data *d, Message *m)" -->
       
   587 <div class="memitem">
       
   588 <div class="memproto">
       
   589       <table class="memname">
       
   590         <tr>
       
   591           <td class="memname">UNS8 proceedSDO           </td>
       
   592           <td>(</td>
       
   593           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   594           <td class="paramname"> <em>d</em>, </td>
       
   595         </tr>
       
   596         <tr>
       
   597           <td class="paramkey"></td>
       
   598           <td></td>
       
   599           <td class="paramtype"><a class="el" href="structMessage.html">Message</a> *&nbsp;</td>
       
   600           <td class="paramname"> <em>m</em></td><td>&nbsp;</td>
       
   601         </tr>
       
   602         <tr>
       
   603           <td></td>
       
   604           <td>)</td>
       
   605           <td></td><td></td><td width="100%"></td>
       
   606         </tr>
       
   607       </table>
       
   608 </div>
       
   609 <div class="memdoc">
       
   610 
       
   611 <p>
       
   612 Treat a SDO frame reception bus_id is hardware dependant call the function sendSDO return 0xFF if error 0x80 if transfert aborted by the server 0x0 ok 
       
   613 <p>
       
   614 Definition at line <a class="el" href="sdo_8c-source.html#l00447">447</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   615 <p>
       
   616 References <a class="el" href="sdo_8h-source.html#l00044">struct_s_transfer::abortCode</a>, <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <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="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="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="sdo_8c-source.html#l00227">failedSDO()</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="sdo_8c-source.html#l00075">getSDOc</a>, <a class="el" href="sdo_8c-source.html#l00055">getSDOcs</a>, <a class="el" href="sdo_8c-source.html#l00067">getSDOe</a>, <a class="el" href="sdo_8c-source.html#l00284">getSDOfreeLine()</a>, <a class="el" href="sdo_8c-source.html#l00083">getSDOindex</a>, <a class="el" href="sdo_8c-source.html#l00301">getSDOlineOnUse()</a>, <a class="el" href="sdo_8c-source.html#l00332">getSDOlineRestBytes()</a>, <a class="el" href="sdo_8c-source.html#l00059">getSDOn2</a>, <a class="el" href="sdo_8c-source.html#l00063">getSDOn3</a>, <a class="el" href="sdo_8c-source.html#l00071">getSDOs</a>, <a class="el" href="sdo_8c-source.html#l00088">getSDOsubIndex</a>, <a class="el" href="sdo_8c-source.html#l00079">getSDOt</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="sdo_8c-source.html#l00263">initSDOline()</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="sdo_8c-source.html#l00189">lineToSDO()</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_8c-source.html#l00157">objdictToSDOline()</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#l00253">resetSDOline()</a>, <a class="el" href="sdo_8c-source.html#l00124">RestartSDO_TIMER</a>, <a class="el" href="def_8h-source.html#l00072">SDO_ABORTED_RCV</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="def_8h-source.html#l00071">SDO_FINISHED</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="objdictdef_8h-source.html#l00116">s_quick_index::SDO_SVR</a>, <a class="el" href="def_8h-source.html#l00080">SDO_UNKNOWN</a>, <a class="el" href="def_8h-source.html#l00075">SDO_UPLOAD_IN_PROGRESS</a>, <a class="el" href="def_8h-source.html#l00045">SDOABT_GENERAL_ERROR</a>, <a class="el" href="def_8h-source.html#l00046">SDOABT_LOCAL_CTRL_ERROR</a>, <a class="el" href="def_8h-source.html#l00042">SDOABT_TOGGLE_NOT_ALTERNED</a>, <a class="el" href="sdo_8c-source.html#l00141">SDOlineToObjdict()</a>, <a class="el" href="sdo_8c-source.html#l00210">SDOtoLine()</a>, <a class="el" href="sdo_8c-source.html#l00354">sendSDO()</a>, <a class="el" href="sdo_8c-source.html#l00342">setSDOlineRestBytes()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8c-source.html#l00116">StopSDO_TIMER</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="sdo_8h-source.html#l00043">struct_s_transfer::toggle</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>.
       
   617 </div>
       
   618 </div><p>
       
   619 <a class="anchor" name="0e102a0835e4115920cd406e80a8d135"></a><!-- doxytag: member="sdo.h::readNetworkDict" ref="0e102a0835e4115920cd406e80a8d135" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType)" -->
       
   620 <div class="memitem">
       
   621 <div class="memproto">
       
   622       <table class="memname">
       
   623         <tr>
       
   624           <td class="memname">UNS8 readNetworkDict           </td>
       
   625           <td>(</td>
       
   626           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   627           <td class="paramname"> <em>d</em>, </td>
       
   628         </tr>
       
   629         <tr>
       
   630           <td class="paramkey"></td>
       
   631           <td></td>
       
   632           <td class="paramtype">UNS8&nbsp;</td>
       
   633           <td class="paramname"> <em>nodeId</em>, </td>
       
   634         </tr>
       
   635         <tr>
       
   636           <td class="paramkey"></td>
       
   637           <td></td>
       
   638           <td class="paramtype">UNS16&nbsp;</td>
       
   639           <td class="paramname"> <em>index</em>, </td>
       
   640         </tr>
       
   641         <tr>
       
   642           <td class="paramkey"></td>
       
   643           <td></td>
       
   644           <td class="paramtype">UNS8&nbsp;</td>
       
   645           <td class="paramname"> <em>subIndex</em>, </td>
       
   646         </tr>
       
   647         <tr>
       
   648           <td class="paramkey"></td>
       
   649           <td></td>
       
   650           <td class="paramtype">UNS8&nbsp;</td>
       
   651           <td class="paramname"> <em>dataType</em></td><td>&nbsp;</td>
       
   652         </tr>
       
   653         <tr>
       
   654           <td></td>
       
   655           <td>)</td>
       
   656           <td></td><td></td><td width="100%"></td>
       
   657         </tr>
       
   658       </table>
       
   659 </div>
       
   660 <div class="memdoc">
       
   661 
       
   662 <p>
       
   663 Used by the application to send a SDO request frame to read in the dictionary of a server node whose node_id is ID at the index and subIndex indicated bus_id is hardware dependant datatype (defined in <a class="el" href="objdictdef_8h.html">objdictdef.h</a>) : put "visible_string" for strings, 0 for integers or reals or other value. return 0xFF if error, else return 0 
       
   664 <p>
       
   665 Definition at line <a class="el" href="sdo_8c-source.html#l01282">1282</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   666 <p>
       
   667 References <a class="el" href="sdo_8c-source.html#l01198">_readNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>.
       
   668 </div>
       
   669 </div><p>
       
   670 <a class="anchor" name="542a5cdd20c00aa130a39fe68295e769"></a><!-- doxytag: member="sdo.h::readNetworkDictCallback" ref="542a5cdd20c00aa130a39fe68295e769" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback)" -->
       
   671 <div class="memitem">
       
   672 <div class="memproto">
       
   673       <table class="memname">
       
   674         <tr>
       
   675           <td class="memname">UNS8 readNetworkDictCallback           </td>
       
   676           <td>(</td>
       
   677           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   678           <td class="paramname"> <em>d</em>, </td>
       
   679         </tr>
       
   680         <tr>
       
   681           <td class="paramkey"></td>
       
   682           <td></td>
       
   683           <td class="paramtype">UNS8&nbsp;</td>
       
   684           <td class="paramname"> <em>nodeId</em>, </td>
       
   685         </tr>
       
   686         <tr>
       
   687           <td class="paramkey"></td>
       
   688           <td></td>
       
   689           <td class="paramtype">UNS16&nbsp;</td>
       
   690           <td class="paramname"> <em>index</em>, </td>
       
   691         </tr>
       
   692         <tr>
       
   693           <td class="paramkey"></td>
       
   694           <td></td>
       
   695           <td class="paramtype">UNS8&nbsp;</td>
       
   696           <td class="paramname"> <em>subIndex</em>, </td>
       
   697         </tr>
       
   698         <tr>
       
   699           <td class="paramkey"></td>
       
   700           <td></td>
       
   701           <td class="paramtype">UNS8&nbsp;</td>
       
   702           <td class="paramname"> <em>dataType</em>, </td>
       
   703         </tr>
       
   704         <tr>
       
   705           <td class="paramkey"></td>
       
   706           <td></td>
       
   707           <td class="paramtype"><a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a>&nbsp;</td>
       
   708           <td class="paramname"> <em>Callback</em></td><td>&nbsp;</td>
       
   709         </tr>
       
   710         <tr>
       
   711           <td></td>
       
   712           <td>)</td>
       
   713           <td></td><td></td><td width="100%"></td>
       
   714         </tr>
       
   715       </table>
       
   716 </div>
       
   717 <div class="memdoc">
       
   718 
       
   719 <p>
       
   720 Used to send a SDO request frame to read in a distant node dictionnary. The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort). 
       
   721 <p>
       
   722 Definition at line <a class="el" href="sdo_8c-source.html#l01288">1288</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   723 <p>
       
   724 References <a class="el" href="sdo_8c-source.html#l01198">_readNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>.
       
   725 </div>
       
   726 </div><p>
       
   727 <a class="anchor" name="1f4f07eccc4890a11ccf4f632da7740b"></a><!-- doxytag: member="sdo.h::resetSDO" ref="1f4f07eccc4890a11ccf4f632da7740b" args="(CO_Data *d)" -->
       
   728 <div class="memitem">
       
   729 <div class="memproto">
       
   730       <table class="memname">
       
   731         <tr>
       
   732           <td class="memname">void resetSDO           </td>
       
   733           <td>(</td>
       
   734           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   735           <td class="paramname"> <em>d</em>          </td>
       
   736           <td>&nbsp;)&nbsp;</td>
       
   737           <td width="100%"></td>
       
   738         </tr>
       
   739       </table>
       
   740 </div>
       
   741 <div class="memdoc">
       
   742 
       
   743 <p>
       
   744 Reset all sdo buffers 
       
   745 <p>
       
   746 Definition at line <a class="el" href="sdo_8c-source.html#l00131">131</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   747 <p>
       
   748 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8c-source.html#l00253">resetSDOline()</a>, <a class="el" href="config_8h-source.html#l00029">SDO_MAX_SIMULTANEOUS_TRANSFERTS</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   749 </div>
       
   750 </div><p>
       
   751 <a class="anchor" name="42d33be015d4c4c83c73f1f0e588f481"></a><!-- doxytag: member="sdo.h::resetSDOline" ref="42d33be015d4c4c83c73f1f0e588f481" args="(CO_Data *d, UNS8 line)" -->
       
   752 <div class="memitem">
       
   753 <div class="memproto">
       
   754       <table class="memname">
       
   755         <tr>
       
   756           <td class="memname">void resetSDOline           </td>
       
   757           <td>(</td>
       
   758           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   759           <td class="paramname"> <em>d</em>, </td>
       
   760         </tr>
       
   761         <tr>
       
   762           <td class="paramkey"></td>
       
   763           <td></td>
       
   764           <td class="paramtype">UNS8&nbsp;</td>
       
   765           <td class="paramname"> <em>line</em></td><td>&nbsp;</td>
       
   766         </tr>
       
   767         <tr>
       
   768           <td></td>
       
   769           <td>)</td>
       
   770           <td></td><td></td><td width="100%"></td>
       
   771         </tr>
       
   772       </table>
       
   773 </div>
       
   774 <div class="memdoc">
       
   775 
       
   776 <p>
       
   777 Reset an unused line. 
       
   778 <p>
       
   779 Definition at line <a class="el" href="sdo_8c-source.html#l00253">253</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   780 <p>
       
   781 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00056">struct_s_transfer::data</a>, <a class="el" href="sdo_8c-source.html#l00263">initSDOline()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="config_8h-source.html#l00028">SDO_MAX_LENGTH_TRANSFERT</a>, <a class="el" href="def_8h-source.html#l00070">SDO_RESET</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   782 </div>
       
   783 </div><p>
       
   784 <a class="anchor" name="2eb5309dca3a7363da5e5e7230b85d58"></a><!-- doxytag: member="sdo.h::SDOlineToObjdict" ref="2eb5309dca3a7363da5e5e7230b85d58" args="(CO_Data *d, UNS8 line)" -->
       
   785 <div class="memitem">
       
   786 <div class="memproto">
       
   787       <table class="memname">
       
   788         <tr>
       
   789           <td class="memname">UNS32 SDOlineToObjdict           </td>
       
   790           <td>(</td>
       
   791           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   792           <td class="paramname"> <em>d</em>, </td>
       
   793         </tr>
       
   794         <tr>
       
   795           <td class="paramkey"></td>
       
   796           <td></td>
       
   797           <td class="paramtype">UNS8&nbsp;</td>
       
   798           <td class="paramname"> <em>line</em></td><td>&nbsp;</td>
       
   799         </tr>
       
   800         <tr>
       
   801           <td></td>
       
   802           <td>)</td>
       
   803           <td></td><td></td><td width="100%"></td>
       
   804         </tr>
       
   805       </table>
       
   806 </div>
       
   807 <div class="memdoc">
       
   808 
       
   809 <p>
       
   810 Copy the data received from the SDO line transfert to the object dictionary Returns SDO error code if error. Else, returns 0; 
       
   811 <p>
       
   812 Definition at line <a class="el" href="sdo_8c-source.html#l00141">141</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   813 <p>
       
   814 References <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#l00056">struct_s_transfer::data</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="objacces_8c-source.html#l00257">setODentry()</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</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>.
       
   815 </div>
       
   816 </div><p>
       
   817 <a class="anchor" name="9309025e29b59e09026abcd3b45a5b61"></a><!-- doxytag: member="sdo.h::SDOTimeoutAlarm" ref="9309025e29b59e09026abcd3b45a5b61" args="(CO_Data *d, UNS32 id)" -->
       
   818 <div class="memitem">
       
   819 <div class="memproto">
       
   820       <table class="memname">
       
   821         <tr>
       
   822           <td class="memname">void SDOTimeoutAlarm           </td>
       
   823           <td>(</td>
       
   824           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   825           <td class="paramname"> <em>d</em>, </td>
       
   826         </tr>
       
   827         <tr>
       
   828           <td class="paramkey"></td>
       
   829           <td></td>
       
   830           <td class="paramtype">UNS32&nbsp;</td>
       
   831           <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
       
   832         </tr>
       
   833         <tr>
       
   834           <td></td>
       
   835           <td>)</td>
       
   836           <td></td><td></td><td width="100%"></td>
       
   837         </tr>
       
   838       </table>
       
   839 </div>
       
   840 <div class="memdoc">
       
   841 
       
   842 <p>
       
   843 Reset of a SDO exchange on timeout. Send a SDO abort 
       
   844 <p>
       
   845 Definition at line <a class="el" href="sdo_8c-source.html#l00093">93</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   846 <p>
       
   847 References <a class="el" href="sdo_8h-source.html#l00044">struct_s_transfer::abortCode</a>, <a class="el" href="sdo_8h-source.html#l00067">struct_s_transfer::Callback</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00047">struct_s_transfer::index</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#l00039">struct_s_transfer::nodeId</a>, <a class="el" href="sdo_8c-source.html#l00253">resetSDOline()</a>, <a class="el" href="def_8h-source.html#l00073">SDO_ABORTED_INTERNAL</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="def_8h-source.html#l00043">SDOABT_TIMED_OUT</a>, <a class="el" href="sdo_8c-source.html#l00424">sendSDOabort()</a>, <a class="el" href="sdo_8h-source.html#l00042">struct_s_transfer::state</a>, <a class="el" href="sdo_8h-source.html#l00048">struct_s_transfer::subIndex</a>, <a class="el" href="sdo_8h-source.html#l00061">struct_s_transfer::timer</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="sdo_8h-source.html#l00041">struct_s_transfer::whoami</a>.
       
   848 </div>
       
   849 </div><p>
       
   850 <a class="anchor" name="18b6f7e9c9441640a88ffef1e8720694"></a><!-- doxytag: member="sdo.h::SDOtoLine" ref="18b6f7e9c9441640a88ffef1e8720694" args="(CO_Data *d, UNS8 line, UNS8 nbBytes, UNS8 *data)" -->
       
   851 <div class="memitem">
       
   852 <div class="memproto">
       
   853       <table class="memname">
       
   854         <tr>
       
   855           <td class="memname">UNS8 SDOtoLine           </td>
       
   856           <td>(</td>
       
   857           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   858           <td class="paramname"> <em>d</em>, </td>
       
   859         </tr>
       
   860         <tr>
       
   861           <td class="paramkey"></td>
       
   862           <td></td>
       
   863           <td class="paramtype">UNS8&nbsp;</td>
       
   864           <td class="paramname"> <em>line</em>, </td>
       
   865         </tr>
       
   866         <tr>
       
   867           <td class="paramkey"></td>
       
   868           <td></td>
       
   869           <td class="paramtype">UNS8&nbsp;</td>
       
   870           <td class="paramname"> <em>nbBytes</em>, </td>
       
   871         </tr>
       
   872         <tr>
       
   873           <td class="paramkey"></td>
       
   874           <td></td>
       
   875           <td class="paramtype">UNS8 *&nbsp;</td>
       
   876           <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
       
   877         </tr>
       
   878         <tr>
       
   879           <td></td>
       
   880           <td>)</td>
       
   881           <td></td><td></td><td width="100%"></td>
       
   882         </tr>
       
   883       </table>
       
   884 </div>
       
   885 <div class="memdoc">
       
   886 
       
   887 <p>
       
   888 Add data to an existant line Returns 0xFF if error. Else, returns 0; 
       
   889 <p>
       
   890 Definition at line <a class="el" href="sdo_8c-source.html#l00210">210</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   891 <p>
       
   892 References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sdo_8h-source.html#l00056">struct_s_transfer::data</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="sdo_8h-source.html#l00050">struct_s_transfer::offset</a>, <a class="el" href="config_8h-source.html#l00028">SDO_MAX_LENGTH_TRANSFERT</a>, <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   893 </div>
       
   894 </div><p>
       
   895 <a class="anchor" name="c6b5d7d1439d537da992a96644a1ca5d"></a><!-- doxytag: member="sdo.h::sendSDO" ref="c6b5d7d1439d537da992a96644a1ca5d" args="(CO_Data *d, UNS8 whoami, s_SDO sdo)" -->
       
   896 <div class="memitem">
       
   897 <div class="memproto">
       
   898       <table class="memname">
       
   899         <tr>
       
   900           <td class="memname">UNS8 sendSDO           </td>
       
   901           <td>(</td>
       
   902           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   903           <td class="paramname"> <em>d</em>, </td>
       
   904         </tr>
       
   905         <tr>
       
   906           <td class="paramkey"></td>
       
   907           <td></td>
       
   908           <td class="paramtype">UNS8&nbsp;</td>
       
   909           <td class="paramname"> <em>whoami</em>, </td>
       
   910         </tr>
       
   911         <tr>
       
   912           <td class="paramkey"></td>
       
   913           <td></td>
       
   914           <td class="paramtype"><a class="el" href="structstruct__s__SDO.html">s_SDO</a>&nbsp;</td>
       
   915           <td class="paramname"> <em>sdo</em></td><td>&nbsp;</td>
       
   916         </tr>
       
   917         <tr>
       
   918           <td></td>
       
   919           <td>)</td>
       
   920           <td></td><td></td><td width="100%"></td>
       
   921         </tr>
       
   922       </table>
       
   923 </div>
       
   924 <div class="memdoc">
       
   925 
       
   926 <p>
       
   927 Transmit a SDO frame on the bus bus_id sdo is a structure which contains the sdo to transmit bus_id is hardware dependant whoami takes 2 values : SDO_CLIENT or SDO_SERVER return canSend(bus_id,&amp;m) or 0xFF if error 
       
   928 <p>
       
   929 Definition at line <a class="el" href="sdo_8c-source.html#l00354">354</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   930 <p>
       
   931 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="data_8h-source.html#l00090">struct_CO_Data::canHandle</a>, <a class="el" href="canOpenDriver_8c-source.html#l00505">canSend()</a>, <a class="el" href="can_8h-source.html#l00042">Message::cob_id</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="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</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#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="def_8h-source.html#l00055">NOT_A_REQUEST</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646c747c16a9c4d7dec65cdab6e38df99b7">Pre_operational</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="objdictdef_8h-source.html#l00117">s_quick_index::SDO_CLT</a>, <a class="el" href="def_8h-source.html#l00078">SDO_SERVER</a>, <a class="el" href="objdictdef_8h-source.html#l00116">s_quick_index::SDO_SVR</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>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
       
   932 </div>
       
   933 </div><p>
       
   934 <a class="anchor" name="b26c3f2fb63d81055809d6ccaa785b7c"></a><!-- doxytag: member="sdo.h::sendSDOabort" ref="b26c3f2fb63d81055809d6ccaa785b7c" args="(CO_Data *d, UNS8 whoami, UNS16 index, UNS8 subIndex, UNS32 abortCode)" -->
       
   935 <div class="memitem">
       
   936 <div class="memproto">
       
   937       <table class="memname">
       
   938         <tr>
       
   939           <td class="memname">UNS8 sendSDOabort           </td>
       
   940           <td>(</td>
       
   941           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   942           <td class="paramname"> <em>d</em>, </td>
       
   943         </tr>
       
   944         <tr>
       
   945           <td class="paramkey"></td>
       
   946           <td></td>
       
   947           <td class="paramtype">UNS8&nbsp;</td>
       
   948           <td class="paramname"> <em>whoami</em>, </td>
       
   949         </tr>
       
   950         <tr>
       
   951           <td class="paramkey"></td>
       
   952           <td></td>
       
   953           <td class="paramtype">UNS16&nbsp;</td>
       
   954           <td class="paramname"> <em>index</em>, </td>
       
   955         </tr>
       
   956         <tr>
       
   957           <td class="paramkey"></td>
       
   958           <td></td>
       
   959           <td class="paramtype">UNS8&nbsp;</td>
       
   960           <td class="paramname"> <em>subIndex</em>, </td>
       
   961         </tr>
       
   962         <tr>
       
   963           <td class="paramkey"></td>
       
   964           <td></td>
       
   965           <td class="paramtype">UNS32&nbsp;</td>
       
   966           <td class="paramname"> <em>abortCode</em></td><td>&nbsp;</td>
       
   967         </tr>
       
   968         <tr>
       
   969           <td></td>
       
   970           <td>)</td>
       
   971           <td></td><td></td><td width="100%"></td>
       
   972         </tr>
       
   973       </table>
       
   974 </div>
       
   975 <div class="memdoc">
       
   976 
       
   977 <p>
       
   978 Transmit a SDO error to the client. The reasons may be : Read/Write to a undefined object Read/Write to a undefined subindex Read/write a not valid length object Write a read only object whoami takes 2 values : SDO_CLIENT or SDO_SERVER 
       
   979 <p>
       
   980 Definition at line <a class="el" href="sdo_8c-source.html#l00424">424</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
   981 <p>
       
   982 References <a class="el" href="data_8h-source.html#l00047">struct_CO_Data::bDeviceNodeId</a>, <a class="el" href="sdo_8h-source.html#l00082">struct_s_SDO::body</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="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="sdo_8c-source.html#l00354">sendSDO()</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
       
   983 </div>
       
   984 </div><p>
       
   985 <a class="anchor" name="601a837ecb5f21bf4c66b058c5ae7810"></a><!-- doxytag: member="sdo.h::setSDOlineRestBytes" ref="601a837ecb5f21bf4c66b058c5ae7810" args="(CO_Data *d, UNS8 line, UNS8 nbBytes)" -->
       
   986 <div class="memitem">
       
   987 <div class="memproto">
       
   988       <table class="memname">
       
   989         <tr>
       
   990           <td class="memname">UNS8 setSDOlineRestBytes           </td>
       
   991           <td>(</td>
       
   992           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
   993           <td class="paramname"> <em>d</em>, </td>
       
   994         </tr>
       
   995         <tr>
       
   996           <td class="paramkey"></td>
       
   997           <td></td>
       
   998           <td class="paramtype">UNS8&nbsp;</td>
       
   999           <td class="paramname"> <em>line</em>, </td>
       
  1000         </tr>
       
  1001         <tr>
       
  1002           <td class="paramkey"></td>
       
  1003           <td></td>
       
  1004           <td class="paramtype">UNS8&nbsp;</td>
       
  1005           <td class="paramname"> <em>nbBytes</em></td><td>&nbsp;</td>
       
  1006         </tr>
       
  1007         <tr>
       
  1008           <td></td>
       
  1009           <td>)</td>
       
  1010           <td></td><td></td><td width="100%"></td>
       
  1011         </tr>
       
  1012       </table>
       
  1013 </div>
       
  1014 <div class="memdoc">
       
  1015 
       
  1016 <p>
       
  1017 Store in the line structure the nb of bytes which must be transmited (or received) bus_id is hardware dependant. return 0 if success, 0xFF if error. 
       
  1018 <p>
       
  1019 Definition at line <a class="el" href="sdo_8c-source.html#l00342">342</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
  1020 <p>
       
  1021 References <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="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</a>, <a class="el" href="config_8h-source.html#l00028">SDO_MAX_LENGTH_TRANSFERT</a>, and <a class="el" href="data_8h-source.html#l00057">struct_CO_Data::transfers</a>.
       
  1022 </div>
       
  1023 </div><p>
       
  1024 <a class="anchor" name="bc20ed246e00053dcf71faa8f45ee39c"></a><!-- doxytag: member="sdo.h::writeNetworkDict" ref="bc20ed246e00053dcf71faa8f45ee39c" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data)" -->
       
  1025 <div class="memitem">
       
  1026 <div class="memproto">
       
  1027       <table class="memname">
       
  1028         <tr>
       
  1029           <td class="memname">UNS8 writeNetworkDict           </td>
       
  1030           <td>(</td>
       
  1031           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
  1032           <td class="paramname"> <em>d</em>, </td>
       
  1033         </tr>
       
  1034         <tr>
       
  1035           <td class="paramkey"></td>
       
  1036           <td></td>
       
  1037           <td class="paramtype">UNS8&nbsp;</td>
       
  1038           <td class="paramname"> <em>nodeId</em>, </td>
       
  1039         </tr>
       
  1040         <tr>
       
  1041           <td class="paramkey"></td>
       
  1042           <td></td>
       
  1043           <td class="paramtype">UNS16&nbsp;</td>
       
  1044           <td class="paramname"> <em>index</em>, </td>
       
  1045         </tr>
       
  1046         <tr>
       
  1047           <td class="paramkey"></td>
       
  1048           <td></td>
       
  1049           <td class="paramtype">UNS8&nbsp;</td>
       
  1050           <td class="paramname"> <em>subIndex</em>, </td>
       
  1051         </tr>
       
  1052         <tr>
       
  1053           <td class="paramkey"></td>
       
  1054           <td></td>
       
  1055           <td class="paramtype">UNS8&nbsp;</td>
       
  1056           <td class="paramname"> <em>count</em>, </td>
       
  1057         </tr>
       
  1058         <tr>
       
  1059           <td class="paramkey"></td>
       
  1060           <td></td>
       
  1061           <td class="paramtype">UNS8&nbsp;</td>
       
  1062           <td class="paramname"> <em>dataType</em>, </td>
       
  1063         </tr>
       
  1064         <tr>
       
  1065           <td class="paramkey"></td>
       
  1066           <td></td>
       
  1067           <td class="paramtype">void *&nbsp;</td>
       
  1068           <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
       
  1069         </tr>
       
  1070         <tr>
       
  1071           <td></td>
       
  1072           <td>)</td>
       
  1073           <td></td><td></td><td width="100%"></td>
       
  1074         </tr>
       
  1075       </table>
       
  1076 </div>
       
  1077 <div class="memdoc">
       
  1078 
       
  1079 <p>
       
  1080 Used by the application to send a SDO request frame to write the data *data at the index and subIndex indicated in the dictionary of the slave whose node_id is nodeId Count : nb of bytes to write in the dictionnary. datatype (defined in <a class="el" href="objdictdef_8h.html">objdictdef.h</a>) : put "visible_string" for strings, 0 for integers or reals or other value. bus_id is hardware dependant return 0xFF if error, else return 0 
       
  1081 <p>
       
  1082 Definition at line <a class="el" href="sdo_8c-source.html#l01182">1182</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
  1083 <p>
       
  1084 References <a class="el" href="sdo_8c-source.html#l01072">_writeNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>.
       
  1085 </div>
       
  1086 </div><p>
       
  1087 <a class="anchor" name="f4ec05293fb8971a1b282994498ed4f5"></a><!-- doxytag: member="sdo.h::writeNetworkDictCallBack" ref="f4ec05293fb8971a1b282994498ed4f5" args="(CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback)" -->
       
  1088 <div class="memitem">
       
  1089 <div class="memproto">
       
  1090       <table class="memname">
       
  1091         <tr>
       
  1092           <td class="memname">UNS8 writeNetworkDictCallBack           </td>
       
  1093           <td>(</td>
       
  1094           <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
       
  1095           <td class="paramname"> <em>d</em>, </td>
       
  1096         </tr>
       
  1097         <tr>
       
  1098           <td class="paramkey"></td>
       
  1099           <td></td>
       
  1100           <td class="paramtype">UNS8&nbsp;</td>
       
  1101           <td class="paramname"> <em>nodeId</em>, </td>
       
  1102         </tr>
       
  1103         <tr>
       
  1104           <td class="paramkey"></td>
       
  1105           <td></td>
       
  1106           <td class="paramtype">UNS16&nbsp;</td>
       
  1107           <td class="paramname"> <em>index</em>, </td>
       
  1108         </tr>
       
  1109         <tr>
       
  1110           <td class="paramkey"></td>
       
  1111           <td></td>
       
  1112           <td class="paramtype">UNS8&nbsp;</td>
       
  1113           <td class="paramname"> <em>subIndex</em>, </td>
       
  1114         </tr>
       
  1115         <tr>
       
  1116           <td class="paramkey"></td>
       
  1117           <td></td>
       
  1118           <td class="paramtype">UNS8&nbsp;</td>
       
  1119           <td class="paramname"> <em>count</em>, </td>
       
  1120         </tr>
       
  1121         <tr>
       
  1122           <td class="paramkey"></td>
       
  1123           <td></td>
       
  1124           <td class="paramtype">UNS8&nbsp;</td>
       
  1125           <td class="paramname"> <em>dataType</em>, </td>
       
  1126         </tr>
       
  1127         <tr>
       
  1128           <td class="paramkey"></td>
       
  1129           <td></td>
       
  1130           <td class="paramtype">void *&nbsp;</td>
       
  1131           <td class="paramname"> <em>data</em>, </td>
       
  1132         </tr>
       
  1133         <tr>
       
  1134           <td class="paramkey"></td>
       
  1135           <td></td>
       
  1136           <td class="paramtype"><a class="el" href="sdo_8h.html#606eccfef67e572723e1efba3f0d87ba">SDOCallback_t</a>&nbsp;</td>
       
  1137           <td class="paramname"> <em>Callback</em></td><td>&nbsp;</td>
       
  1138         </tr>
       
  1139         <tr>
       
  1140           <td></td>
       
  1141           <td>)</td>
       
  1142           <td></td><td></td><td width="100%"></td>
       
  1143         </tr>
       
  1144       </table>
       
  1145 </div>
       
  1146 <div class="memdoc">
       
  1147 
       
  1148 <p>
       
  1149 Used to send a SDO request frame to write in a distant node dictionnary. The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort). 
       
  1150 <p>
       
  1151 Definition at line <a class="el" href="sdo_8c-source.html#l01190">1190</a> of file <a class="el" href="sdo_8c-source.html">sdo.c</a>.
       
  1152 <p>
       
  1153 References <a class="el" href="sdo_8c-source.html#l01072">_writeNetworkDict()</a>, and <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>.
       
  1154 </div>
       
  1155 </div><p>
       
  1156 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by&nbsp;
       
  1157 <a href="http://www.doxygen.org/index.html">
       
  1158 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
       
  1159 </body>
       
  1160 </html>