doc/doxygen/html/win32test_8c-source.html
author etisserant
Fri, 31 Aug 2007 10:19:46 +0200
changeset 263 d221d387ad2f
parent 240 34654679f262
permissions -rw-r--r--
Minor changes in SYNC. Splitted SendSync in SendSync and SendSyncMessage to allow manual SYNC message transmission and separate SYNC proceeding (synced TPDOs)
<!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_aa575cee5acc3b84cc5b4489187a1fd3.html">examples</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_2141e986c2caba396c3501b692c2793f.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#54b23447551f2f34fa71df152f6086e8">00014</a> <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#54b23447551f2f34fa71df152f6086e8">win32test_valueRangeTest</a> (<a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">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#1fd749e063d3901538c294e04fa82d59">00025</a> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#1fd749e063d3901538c294e04fa82d59">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#878ff296a98f2ffa48e25da49b9edb9c">00030</a> <span class="keyword">const</span> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#878ff296a98f2ffa48e25da49b9edb9c">win32test_iam_a_slave</a> = 0;
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="win32test_8c.html#5b3b0f2ad0005fdf4faba3eed3a23388">00032</a> <a class="code" href="timer_8h.html#92d252e2b6f4cf50c0e7450c20d5db48">TIMER_HANDLE</a> <a class="code" href="win32test_8c.html#5b3b0f2ad0005fdf4faba3eed3a23388">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#7da0e434f759ab37dd26b54c729171ca">00043</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#7da0e434f759ab37dd26b54c729171ca">win32test_obj1000</a> = 0x12D;    <span class="comment">/* 301 */</span>
<a name="l00044"></a><a class="code" href="win32test_8c.html#8e47e7a04414f515d611d9cf0db6d047">00044</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#8e47e7a04414f515d611d9cf0db6d047">win32test_Index1000</a>[] = 
<a name="l00045"></a>00045                      {
<a name="l00046"></a>00046                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#7da0e434f759ab37dd26b54c729171ca">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#298be281c0839a943148d25df7a9efd7">00050</a>                     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#298be281c0839a943148d25df7a9efd7">win32test_obj1001</a> = 0x0;       <span class="comment">/* 0 */</span>
<a name="l00051"></a><a class="code" href="win32test_8c.html#35cf9901185865e7f73388b126bf05a9">00051</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#35cf9901185865e7f73388b126bf05a9">win32test_Index1001</a>[] = 
<a name="l00052"></a>00052                      {
<a name="l00053"></a>00053                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#61bd89decb0fbe22d804bd0d33a65e87">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#298be281c0839a943148d25df7a9efd7">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#9230b8f7c024b47356efa468bfb99c78">00057</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#9230b8f7c024b47356efa468bfb99c78">win32test_obj1005</a> = 0x0;      <span class="comment">/* 0 */</span>
<a name="l00058"></a><a class="code" href="win32test_8c.html#fa33e0aeaf03578216c36fb8df1c58ba">00058</a>                     <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> <a class="code" href="win32test_8c.html#fa33e0aeaf03578216c36fb8df1c58ba">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#d2774fb520dcbdcd8df033d7a183fb50">00062</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#d2774fb520dcbdcd8df033d7a183fb50">win32test_Index1005</a>[] = 
<a name="l00063"></a>00063                      {
<a name="l00064"></a>00064                        { <a class="code" href="objdictdef_8h.html#ad0aec3e0810593c9047b44d01209927">RW</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#9230b8f7c024b47356efa468bfb99c78">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#59572ae862eff719eae353f768860fb1">00068</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#59572ae862eff719eae353f768860fb1">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#fc265870c62b1e1d50c3e13a89d5fb12">00071</a>                     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#fc265870c62b1e1d50c3e13a89d5fb12">win32test_highestSubIndex_obj1016</a> = 0;
<a name="l00072"></a><a class="code" href="win32test_8c.html#4803196fbb31d5d53f5ece93d2094617">00072</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#4803196fbb31d5d53f5ece93d2094617">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#a1cce10cd6a2deb1425a50ebf579ceb5">00075</a>                     <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="win32test_8c.html#a1cce10cd6a2deb1425a50ebf579ceb5">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#93f462321827a52c17a15543a98f2fc9">00078</a>                     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#93f462321827a52c17a15543a98f2fc9">win32test_highestSubIndex_obj1018</a> = 4; <span class="comment">/* number of subindex - 1*/</span>
<a name="l00079"></a><a class="code" href="win32test_8c.html#4af3d932df13f2915f434c9022601514">00079</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#4af3d932df13f2915f434c9022601514">win32test_obj1018_Vendor_ID</a> = 0x0;    <span class="comment">/* 0 */</span>
<a name="l00080"></a><a class="code" href="win32test_8c.html#6e010d99716eb5cd749a1c940fa9363e">00080</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#6e010d99716eb5cd749a1c940fa9363e">win32test_obj1018_Product_Code</a> = 0x0; <span class="comment">/* 0 */</span>
<a name="l00081"></a><a class="code" href="win32test_8c.html#f9996bcba72dd4588f7d9f9750b9cbe3">00081</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#f9996bcba72dd4588f7d9f9750b9cbe3">win32test_obj1018_Revision_Number</a> = 0x0;      <span class="comment">/* 0 */</span>
<a name="l00082"></a><a class="code" href="win32test_8c.html#2cd9a69d9bfd2370fd693d8ffd16c9cd">00082</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#2cd9a69d9bfd2370fd693d8ffd16c9cd">win32test_obj1018_Serial_Number</a> = 0x0;        <span class="comment">/* 0 */</span>
<a name="l00083"></a><a class="code" href="win32test_8c.html#154ba64ff0605f91ac57eb3aeff37836">00083</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#154ba64ff0605f91ac57eb3aeff37836">win32test_Index1018</a>[] = 
<a name="l00084"></a>00084                      {
<a name="l00085"></a>00085                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#61bd89decb0fbe22d804bd0d33a65e87">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#93f462321827a52c17a15543a98f2fc9">win32test_highestSubIndex_obj1018</a> },
<a name="l00086"></a>00086                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#4af3d932df13f2915f434c9022601514">win32test_obj1018_Vendor_ID</a> },
<a name="l00087"></a>00087                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#6e010d99716eb5cd749a1c940fa9363e">win32test_obj1018_Product_Code</a> },
<a name="l00088"></a>00088                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#f9996bcba72dd4588f7d9f9750b9cbe3">win32test_obj1018_Revision_Number</a> },
<a name="l00089"></a>00089                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#2cd9a69d9bfd2370fd693d8ffd16c9cd">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#2c63d2c9f3c16516e0e3d143acfd895c">00093</a>                     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#2c63d2c9f3c16516e0e3d143acfd895c">win32test_highestSubIndex_obj1280</a> = 3; <span class="comment">/* number of subindex - 1*/</span>
<a name="l00094"></a><a class="code" href="win32test_8c.html#ce2d13997d365d7969a2cad6da586e10">00094</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#ce2d13997d365d7969a2cad6da586e10">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#9a9283acf69842e5be5fc454eba86011">00095</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#9a9283acf69842e5be5fc454eba86011">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#b3d3170d54796c5480d8c970076ab672">00096</a>                     <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> <a class="code" href="win32test_8c.html#b3d3170d54796c5480d8c970076ab672">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#f4332f98f04fbaa7a3963ed154241a7b">00097</a>                     <a class="code" href="structtd__subindex.html">subindex</a> <a class="code" href="win32test_8c.html#f4332f98f04fbaa7a3963ed154241a7b">win32test_Index1280</a>[] = 
<a name="l00098"></a>00098                      {
<a name="l00099"></a>00099                        { <a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">RO</a>, <a class="code" href="objdictdef_8h.html#61bd89decb0fbe22d804bd0d33a65e87">uint8</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#2c63d2c9f3c16516e0e3d143acfd895c">win32test_highestSubIndex_obj1280</a> },
<a name="l00100"></a>00100                        { <a class="code" href="objdictdef_8h.html#ad0aec3e0810593c9047b44d01209927">RW</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#ce2d13997d365d7969a2cad6da586e10">win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO</a> },
<a name="l00101"></a>00101                        { <a class="code" href="objdictdef_8h.html#ad0aec3e0810593c9047b44d01209927">RW</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#9a9283acf69842e5be5fc454eba86011">win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO</a> },
<a name="l00102"></a>00102                        { <a class="code" href="objdictdef_8h.html#ad0aec3e0810593c9047b44d01209927">RW</a>, <a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">uint32</a>, <span class="keyword">sizeof</span> (<a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a>), (<span class="keywordtype">void</span>*)&amp;<a class="code" href="win32test_8c.html#b3d3170d54796c5480d8c970076ab672">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#78976c22aaf736715704af50d827c7ca">00105</a> <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> <a class="code" href="win32test_8c.html#78976c22aaf736715704af50d827c7ca">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#8e47e7a04414f515d611d9cf0db6d047">win32test_Index1000</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#8e47e7a04414f515d611d9cf0db6d047">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#35cf9901185865e7f73388b126bf05a9">win32test_Index1001</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#35cf9901185865e7f73388b126bf05a9">win32test_Index1001</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#35cf9901185865e7f73388b126bf05a9">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#d2774fb520dcbdcd8df033d7a183fb50">win32test_Index1005</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#d2774fb520dcbdcd8df033d7a183fb50">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#154ba64ff0605f91ac57eb3aeff37836">win32test_Index1018</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#154ba64ff0605f91ac57eb3aeff37836">win32test_Index1018</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#154ba64ff0605f91ac57eb3aeff37836">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#f4332f98f04fbaa7a3963ed154241a7b">win32test_Index1280</a>,<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#f4332f98f04fbaa7a3963ed154241a7b">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#46b7a4a452b371e9bcf483a926252f41">00114</a> <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> * <a class="code" href="win32test_8c.html#46b7a4a452b371e9bcf483a926252f41">win32test_scanIndexOD</a> (<a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> wIndex, <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> * errorCode, <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> **callbacks)
<a name="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#fa33e0aeaf03578216c36fb8df1c58ba">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#3f8ca223a1d0262a800f7a14fdd9794c">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#a07aae3570321186b5b2233f4f8a9bbe">OD_SUCCESSFUL</a>;
<a name="l00129"></a>00129         <span class="keywordflow">return</span> &amp;<a class="code" href="win32test_8c.html#78976c22aaf736715704af50d827c7ca">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#c47dc2136c2819a434248bd24fa9220a">00136</a> <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> <a class="code" href="win32test_8c.html#c47dc2136c2819a434248bd24fa9220a">win32test_count_sync</a>[1] = {0,};
<a name="l00137"></a>00137 
<a name="l00138"></a><a class="code" href="win32test_8c.html#37f5b0437ce998aff8df07edd32596e4">00138</a> <a class="code" href="structs__quick__index.html">quick_index</a> <a class="code" href="win32test_8c.html#37f5b0437ce998aff8df07edd32596e4">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#c19a520f83bd3c79edcc3db0b5ca3f28">00147</a> <a class="code" href="structs__quick__index.html">quick_index</a> <a class="code" href="win32test_8c.html#c19a520f83bd3c79edcc3db0b5ca3f28">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#473b3c016c60e7d16157de8eef1a7827">00156</a> <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="win32test_8c.html#473b3c016c60e7d16157de8eef1a7827">win32test_ObjdictSize</a> = <span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#78976c22aaf736715704af50d827c7ca">win32test_objdict</a>)/<span class="keyword">sizeof</span>(<a class="code" href="win32test_8c.html#78976c22aaf736715704af50d827c7ca">win32test_objdict</a>[0]); 
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="win32test_8h.html#3d4a5690ea87cdfa730cc6acb933c068">00158</a> <a class="code" href="structstruct__CO__Data.html">CO_Data</a> <a class="code" href="win32test_8c.html#3d4a5690ea87cdfa730cc6acb933c068">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 Mon Jul 2 19:10:16 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>