doc/doxygen/html/win32test_8c-source.html
author lbessard
Thu, 21 Jun 2007 17:08:43 +0200
changeset 223 461f5516176b
parent 215 f49e5a6b7804
child 240 34654679f262
permissions -rw-r--r--
Bug on Domain data writing in gen_cfile fixed
Bug on closing tab fixed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: examples/win32test/win32test.c Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&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_fc8d77725c328f9de5a130dceab5a508.html">examples</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_9da286b31cfbba48738c6a19280b9fcf.html">win32test</a></div>
<h1>win32test.c</h1><a href="win32test_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">/* File generated by gen_cfile.py. Should not be modified. */</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="win32test_8h.html">win32test.h</a>"</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">/**************************************************************************/</span>
<a name="l00007"></a>00007 <span class="comment">/* Declaration of the mapped variables                                    */</span>
<a name="l00008"></a>00008 <span class="comment">/**************************************************************************/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="comment">/**************************************************************************/</span>
<a name="l00011"></a>00011 <span class="comment">/* Declaration of the value range types                                   */</span>
<a name="l00012"></a>00012 <span class="comment">/**************************************************************************/</span>
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="win32test_8h.html#ddda9facea7c64aed8be251225187171">00014</a> <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#ddda9facea7c64aed8be251225187171">win32test_valueRangeTest</a> (<a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> typeValue, <span class="keywordtype">void</span> * value)
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016   <span class="keywordflow">switch</span> (typeValue) {
<a name="l00017"></a>00017   }
<a name="l00018"></a>00018   <span class="keywordflow">return</span> 0;
<a name="l00019"></a>00019 }
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="comment">/**************************************************************************/</span>
<a name="l00022"></a>00022 <span class="comment">/* The node id                                                            */</span>
<a name="l00023"></a>00023 <span class="comment">/**************************************************************************/</span>
<a name="l00024"></a>00024 <span class="comment">/* node_id default value.*/</span>
<a name="l00025"></a><a class="code" href="win32test_8c.html#6bd1210b7b3fa2df7bbd7e583dd8a633">00025</a> <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#6bd1210b7b3fa2df7bbd7e583dd8a633">win32test_bDeviceNodeId</a> = 0x01;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">/**************************************************************************/</span>
<a name="l00028"></a>00028 <span class="comment">/* Array of message processing information */</span>
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="win32test_8c.html#4387f6eb602e3b655e232fc2af56e96e">00030</a> <span class="keyword">const</span> <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#4387f6eb602e3b655e232fc2af56e96e">win32test_iam_a_slave</a> = 0;
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="win32test_8c.html#628523ec286742a2c161afe2af147b45">00032</a> <a class="code" href="timer_8h.html#146f546340de2a44ab2f63681d40de95">TIMER_HANDLE</a> <a class="code" href="win32test_8c.html#628523ec286742a2c161afe2af147b45">win32test_heartBeatTimers</a>[1];
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="comment">/*</span>
<a name="l00035"></a>00035 <span class="comment">$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</span>
<a name="l00036"></a>00036 <span class="comment"></span>
<a name="l00037"></a>00037 <span class="comment">                               OBJECT DICTIONARY</span>
<a name="l00038"></a>00038 <span class="comment"></span>
<a name="l00039"></a>00039 <span class="comment">$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</span>
<a name="l00040"></a>00040 <span class="comment">*/</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="comment">/* index 0x1000 :   Device Type. */</span>
<a name="l00043"></a><a class="code" href="win32test_8c.html#2a4ddb3f5555bb2838de46c20caf9912">00043</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#2a4ddb3f5555bb2838de46c20caf9912">win32test_obj1000</a> = 0x12D;    <span class="comment">/* 301 */</span>
<a name="l00044"></a><a class="code" href="win32test_8c.html#a88dd81ae95d80da9e4753f20953a1f8">00044</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#a88dd81ae95d80da9e4753f20953a1f8">win32test_Index1000</a>[] = 
<a name="l00045"></a>00045                      {
<a name="l00046"></a>00046                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#2a4ddb3f5555bb2838de46c20caf9912">win32test_obj1000</a> }
<a name="l00047"></a>00047                      };
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="comment">/* index 0x1001 :   Error Register. */</span>
<a name="l00050"></a><a class="code" href="win32test_8c.html#02c6c9874b245e06047988c728b03324">00050</a>                     <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#02c6c9874b245e06047988c728b03324">win32test_obj1001</a> = 0x0;       <span class="comment">/* 0 */</span>
<a name="l00051"></a><a class="code" href="win32test_8c.html#94439de2330dfbe25fd901a95ac840ff">00051</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#94439de2330dfbe25fd901a95ac840ff">win32test_Index1001</a>[] = 
<a name="l00052"></a>00052                      {
<a name="l00053"></a>00053                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#2d25bcd37166cc98f0d823cdb8c553ef">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#02c6c9874b245e06047988c728b03324">win32test_obj1001</a> }
<a name="l00054"></a>00054                      };
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="comment">/* index 0x1005 :   SYNC COB ID. */</span>
<a name="l00057"></a><a class="code" href="win32test_8c.html#ca5470828d9a7087fb6b08a9c22e56d1">00057</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#ca5470828d9a7087fb6b08a9c22e56d1">win32test_obj1005</a> = 0x0;      <span class="comment">/* 0 */</span>
<a name="l00058"></a><a class="code" href="win32test_8c.html#e0df0c13eb1dcd2390df4b55493180ce">00058</a>                     <a class="code" href="objdictdef_8h.html#91481b154cacc926ae5824fd121d6b43">ODCallback_t</a> <a class="code" href="win32test_8c.html#e0df0c13eb1dcd2390df4b55493180ce">win32test_Index1005_callbacks</a>[] = 
<a name="l00059"></a>00059                      {
<a name="l00060"></a>00060                        NULL,
<a name="l00061"></a>00061                      };
<a name="l00062"></a><a class="code" href="win32test_8c.html#71199cd8e138dcfff0fbee857843b221">00062</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#71199cd8e138dcfff0fbee857843b221">win32test_Index1005</a>[] = 
<a name="l00063"></a>00063                      {
<a name="l00064"></a>00064                        { <a class="code" href="objdictdef_8h.html#fc4ded33ac0ca43defcce639e965748a">RW</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#ca5470828d9a7087fb6b08a9c22e56d1">win32test_obj1005</a> }
<a name="l00065"></a>00065                      };
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="comment">/* index 0x1006 :   Communication / Cycle Period */</span>
<a name="l00068"></a><a class="code" href="win32test_8c.html#2b5115b5cf0e6854e3f6a3507d9be5ee">00068</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#2b5115b5cf0e6854e3f6a3507d9be5ee">win32test_obj1006</a> = 0x0;   <span class="comment">/* 0 */</span>
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="comment">/* index 0x1016 :   Consumer Heartbeat Time */</span>
<a name="l00071"></a><a class="code" href="win32test_8c.html#a74a4d676eea8e5cfcaa43e2e90c0335">00071</a>                     <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#a74a4d676eea8e5cfcaa43e2e90c0335">win32test_highestSubIndex_obj1016</a> = 0;
<a name="l00072"></a><a class="code" href="win32test_8c.html#cc1acca9c2d2518c2196f3398698022c">00072</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#cc1acca9c2d2518c2196f3398698022c">win32test_obj1016</a>[]={0};
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="comment">/* index 0x1017 :   Producer Heartbeat Time */</span> 
<a name="l00075"></a><a class="code" href="win32test_8c.html#c4bb0d827378009b1b97df84f97cd2f5">00075</a>                     <a class="code" href="hcs12_2applicfg_8h.html#5528eeccf214bfe021532622d78c6a96">UNS16</a> <a class="code" href="win32test_8c.html#c4bb0d827378009b1b97df84f97cd2f5">win32test_obj1017</a> = 0x0;   <span class="comment">/* 0 */</span>
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="comment">/* index 0x1018 :   Identity. */</span>
<a name="l00078"></a><a class="code" href="win32test_8c.html#d91da0a48faf0575e41697791e8ef610">00078</a>                     <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#d91da0a48faf0575e41697791e8ef610">win32test_highestSubIndex_obj1018</a> = 4; <span class="comment">/* number of subindex - 1*/</span>
<a name="l00079"></a><a class="code" href="win32test_8c.html#12941db32b34d3edb2776d4337f4b4eb">00079</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#12941db32b34d3edb2776d4337f4b4eb">win32test_obj1018_Vendor_ID</a> = 0x0;    <span class="comment">/* 0 */</span>
<a name="l00080"></a><a class="code" href="win32test_8c.html#644993164ffedd2403df99e08c0c5ee4">00080</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#644993164ffedd2403df99e08c0c5ee4">win32test_obj1018_Product_Code</a> = 0x0; <span class="comment">/* 0 */</span>
<a name="l00081"></a><a class="code" href="win32test_8c.html#fd1ce4020ec6cef993c215db208dde0d">00081</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#fd1ce4020ec6cef993c215db208dde0d">win32test_obj1018_Revision_Number</a> = 0x0;      <span class="comment">/* 0 */</span>
<a name="l00082"></a><a class="code" href="win32test_8c.html#81775bc0fcc702ab733a716c188ea4db">00082</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#81775bc0fcc702ab733a716c188ea4db">win32test_obj1018_Serial_Number</a> = 0x0;        <span class="comment">/* 0 */</span>
<a name="l00083"></a><a class="code" href="win32test_8c.html#4d55483b81ea7ccc19a4aa1665e86b7f">00083</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#4d55483b81ea7ccc19a4aa1665e86b7f">win32test_Index1018</a>[] = 
<a name="l00084"></a>00084                      {
<a name="l00085"></a>00085                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#2d25bcd37166cc98f0d823cdb8c553ef">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#d91da0a48faf0575e41697791e8ef610">win32test_highestSubIndex_obj1018</a> },
<a name="l00086"></a>00086                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#12941db32b34d3edb2776d4337f4b4eb">win32test_obj1018_Vendor_ID</a> },
<a name="l00087"></a>00087                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#644993164ffedd2403df99e08c0c5ee4">win32test_obj1018_Product_Code</a> },
<a name="l00088"></a>00088                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#fd1ce4020ec6cef993c215db208dde0d">win32test_obj1018_Revision_Number</a> },
<a name="l00089"></a>00089                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#81775bc0fcc702ab733a716c188ea4db">win32test_obj1018_Serial_Number</a> }
<a name="l00090"></a>00090                      };
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="comment">/* index 0x1280 :   Client SDO 1 Parameter. */</span>
<a name="l00093"></a><a class="code" href="win32test_8c.html#409439d11f60c03033b4c89443c5577f">00093</a>                     <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#409439d11f60c03033b4c89443c5577f">win32test_highestSubIndex_obj1280</a> = 3; <span class="comment">/* number of subindex - 1*/</span>
<a name="l00094"></a><a class="code" href="win32test_8c.html#84e216ec2f1cb0b15122114094703241">00094</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#84e216ec2f1cb0b15122114094703241">win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO</a> = 0x0; <span class="comment">/* 0 */</span>
<a name="l00095"></a><a class="code" href="win32test_8c.html#1e7463cdb44885a82090b7059fce7ba2">00095</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#1e7463cdb44885a82090b7059fce7ba2">win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO</a> = 0x0;  <span class="comment">/* 0 */</span>
<a name="l00096"></a><a class="code" href="win32test_8c.html#b279eb1acf7b72e879dda8ceeb7fbd88">00096</a>                     <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> <a class="code" href="win32test_8c.html#b279eb1acf7b72e879dda8ceeb7fbd88">win32test_obj1280_Node_ID_of_the_SDO_Server</a> = 0x0;    <span class="comment">/* 0 */</span>
<a name="l00097"></a><a class="code" href="win32test_8c.html#3a14f70d5c0ddf7d9f29acc21f935395">00097</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#3a14f70d5c0ddf7d9f29acc21f935395">win32test_Index1280</a>[] = 
<a name="l00098"></a>00098                      {
<a name="l00099"></a>00099                        { <a class="code" href="objdictdef_8h.html#628642b04c07236ae1e986c248a79ae5">RO</a>, <a class="code" href="objdictdef_8h.html#2d25bcd37166cc98f0d823cdb8c553ef">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#409439d11f60c03033b4c89443c5577f">win32test_highestSubIndex_obj1280</a> },
<a name="l00100"></a>00100                        { <a class="code" href="objdictdef_8h.html#fc4ded33ac0ca43defcce639e965748a">RW</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#84e216ec2f1cb0b15122114094703241">win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO</a> },
<a name="l00101"></a>00101                        { <a class="code" href="objdictdef_8h.html#fc4ded33ac0ca43defcce639e965748a">RW</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#1e7463cdb44885a82090b7059fce7ba2">win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO</a> },
<a name="l00102"></a>00102                        { <a class="code" href="objdictdef_8h.html#fc4ded33ac0ca43defcce639e965748a">RW</a>, <a class="code" href="objdictdef_8h.html#9695cf1104606879c5d3f0221635a069">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#b279eb1acf7b72e879dda8ceeb7fbd88">win32test_obj1280_Node_ID_of_the_SDO_Server</a> }
<a name="l00103"></a>00103                      };
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">00105</a> <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> <a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">win32test_objdict</a>[] = 
<a name="l00106"></a>00106 {
<a name="l00107"></a>00107   { (<a class="code" href="structtd__subindex.html">subindex</a>*)<a class="code" href="win32test_8c.html#a88dd81ae95d80da9e4753f20953a1f8">win32test_Index1000</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#a88dd81ae95d80da9e4753f20953a1f8">win32test_Index1000</a>)/<span class="keyword">sizeof</span>(win32test_Index1000[0]), 0x1000},
<a name="l00108"></a>00108   { (<a class="code" href="structtd__subindex.html">subindex</a>*)<a class="code" href="win32test_8c.html#94439de2330dfbe25fd901a95ac840ff">win32test_Index1001</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#94439de2330dfbe25fd901a95ac840ff">win32test_Index1001</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#94439de2330dfbe25fd901a95ac840ff">win32test_Index1001</a>[0]), 0x1001},
<a name="l00109"></a>00109   { (<a class="code" href="structtd__subindex.html">subindex</a>*)<a class="code" href="win32test_8c.html#71199cd8e138dcfff0fbee857843b221">win32test_Index1005</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#71199cd8e138dcfff0fbee857843b221">win32test_Index1005</a>)/<span class="keyword">sizeof</span>(win32test_Index1005[0]), 0x1005},
<a name="l00110"></a>00110   { (<a class="code" href="structtd__subindex.html">subindex</a>*)<a class="code" href="win32test_8c.html#4d55483b81ea7ccc19a4aa1665e86b7f">win32test_Index1018</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#4d55483b81ea7ccc19a4aa1665e86b7f">win32test_Index1018</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#4d55483b81ea7ccc19a4aa1665e86b7f">win32test_Index1018</a>[0]), 0x1018},
<a name="l00111"></a>00111   { (<a class="code" href="structtd__subindex.html">subindex</a>*)<a class="code" href="win32test_8c.html#3a14f70d5c0ddf7d9f29acc21f935395">win32test_Index1280</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#3a14f70d5c0ddf7d9f29acc21f935395">win32test_Index1280</a>)/<span class="keyword">sizeof</span>(win32test_Index1280[0]), 0x1280},
<a name="l00112"></a>00112 };
<a name="l00113"></a>00113 
<a name="l00114"></a><a class="code" href="win32test_8h.html#f87ee1a746c3da5f7e47ff820868ad1c">00114</a> <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> * <a class="code" href="win32test_8c.html#f87ee1a746c3da5f7e47ff820868ad1c">win32test_scanIndexOD</a> (<a class="code" href="hcs12_2applicfg_8h.html#5528eeccf214bfe021532622d78c6a96">UNS16</a> wIndex, <a class="code" href="hcs12_2applicfg_8h.html#889a782714194ae2f780002d25d6e0be">UNS32</a> * errorCode, <a class="code" href="objdictdef_8h.html#91481b154cacc926ae5824fd121d6b43">ODCallback_t</a> **callbacks)
<a name="l00115"></a>00115 {
<a name="l00116"></a>00116         <span class="keywordtype">int</span> i;
<a name="l00117"></a>00117         *callbacks = NULL;
<a name="l00118"></a>00118         <span class="keywordflow">switch</span>(wIndex){
<a name="l00119"></a>00119                 <span class="keywordflow">case</span> 0x1000: i = 0;<span class="keywordflow">break</span>;
<a name="l00120"></a>00120                 <span class="keywordflow">case</span> 0x1001: i = 1;<span class="keywordflow">break</span>;
<a name="l00121"></a>00121                 <span class="keywordflow">case</span> 0x1005: i = 2;*callbacks = <a class="code" href="win32test_8c.html#e0df0c13eb1dcd2390df4b55493180ce">win32test_Index1005_callbacks</a>; <span class="keywordflow">break</span>;
<a name="l00122"></a>00122                 <span class="keywordflow">case</span> 0x1018: i = 3;<span class="keywordflow">break</span>;
<a name="l00123"></a>00123                 <span class="keywordflow">case</span> 0x1280: i = 4;<span class="keywordflow">break</span>;
<a name="l00124"></a>00124                 <span class="keywordflow">default</span>:
<a name="l00125"></a>00125                         *errorCode = <a class="code" href="def_8h.html#c52e3a6802662a7fe61a4efdc5b12e52">OD_NO_SUCH_OBJECT</a>;
<a name="l00126"></a>00126                         <span class="keywordflow">return</span> NULL;
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128         *errorCode = <a class="code" href="def_8h.html#cb82b94eb8e368e8c347b2273b6e514e">OD_SUCCESSFUL</a>;
<a name="l00129"></a>00129         <span class="keywordflow">return</span> &amp;<a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">win32test_objdict</a>[i];
<a name="l00130"></a>00130 }
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="comment">/* To count at which received SYNC a PDO must be sent.</span>
<a name="l00133"></a>00133 <span class="comment"> * Even if no pdoTransmit are defined, at least one entry is computed</span>
<a name="l00134"></a>00134 <span class="comment"> * for compilations issues.</span>
<a name="l00135"></a>00135 <span class="comment"> */</span>
<a name="l00136"></a><a class="code" href="win32test_8c.html#7be458c9bd90e8efae1268a4c3a8bb46">00136</a> <a class="code" href="hcs12_2applicfg_8h.html#539234687760592d01a8b0d3357bc00e">UNS8</a> <a class="code" href="win32test_8c.html#7be458c9bd90e8efae1268a4c3a8bb46">win32test_count_sync</a>[1] = {0,};
<a name="l00137"></a>00137 
<a name="l00138"></a><a class="code" href="win32test_8c.html#ab51292ac6627287ea9e2c1b02c1fdb1">00138</a> <a class="code" href="structs__quick__index.html">quick_index</a> <a class="code" href="win32test_8c.html#ab51292ac6627287ea9e2c1b02c1fdb1">win32test_firstIndex</a> = {
<a name="l00139"></a>00139   0, <span class="comment">/* SDO_SVR */</span>
<a name="l00140"></a>00140   4, <span class="comment">/* SDO_CLT */</span>
<a name="l00141"></a>00141   0, <span class="comment">/* PDO_RCV */</span>
<a name="l00142"></a>00142   0, <span class="comment">/* PDO_RCV_MAP */</span>
<a name="l00143"></a>00143   0, <span class="comment">/* PDO_TRS */</span>
<a name="l00144"></a>00144   0 <span class="comment">/* PDO_TRS_MAP */</span>
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 
<a name="l00147"></a><a class="code" href="win32test_8c.html#bb438b8a9d65a330e2489d3de916780b">00147</a> <a class="code" href="structs__quick__index.html">quick_index</a> <a class="code" href="win32test_8c.html#bb438b8a9d65a330e2489d3de916780b">win32test_lastIndex</a> = {
<a name="l00148"></a>00148   0, <span class="comment">/* SDO_SVR */</span>
<a name="l00149"></a>00149   4, <span class="comment">/* SDO_CLT */</span>
<a name="l00150"></a>00150   0, <span class="comment">/* PDO_RCV */</span>
<a name="l00151"></a>00151   0, <span class="comment">/* PDO_RCV_MAP */</span>
<a name="l00152"></a>00152   0, <span class="comment">/* PDO_TRS */</span>
<a name="l00153"></a>00153   0 <span class="comment">/* PDO_TRS_MAP */</span>
<a name="l00154"></a>00154 };
<a name="l00155"></a>00155 
<a name="l00156"></a><a class="code" href="win32test_8c.html#d3739d23a317122fa525fa54dcbc64f0">00156</a> <a class="code" href="hcs12_2applicfg_8h.html#5528eeccf214bfe021532622d78c6a96">UNS16</a> <a class="code" href="win32test_8c.html#d3739d23a317122fa525fa54dcbc64f0">win32test_ObjdictSize</a> = <span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">win32test_objdict</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">win32test_objdict</a>[0]); 
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="win32test_8h.html#b45e9f10c9200481b97d9c2c0c3396b0">00158</a> <a class="code" href="structstruct__CO__Data.html">CO_Data</a> <a class="code" href="win32test_8c.html#b45e9f10c9200481b97d9c2c0c3396b0">win32test_Data</a> = CANOPEN_NODE_DATA_INITIALIZER(win32test);
<a name="l00159"></a>00159 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:39 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>