215
|
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: examples/win32test/win32test.c Source File</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 Page</span></a></li>
|
|
11 |
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
12 |
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
|
13 |
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
14 |
</ul></div>
|
|
15 |
<div class="tabs">
|
|
16 |
<ul>
|
|
17 |
<li><a href="files.html"><span>File List</span></a></li>
|
|
18 |
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
19 |
</ul></div>
|
|
20 |
<div class="nav">
|
240
|
21 |
<a class="el" href="dir_aa575cee5acc3b84cc5b4489187a1fd3.html">examples</a> » <a class="el" href="dir_2141e986c2caba396c3501b692c2793f.html">win32test</a></div>
|
215
|
22 |
<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
|
|
23 |
<a name="l00002"></a>00002 <span class="comment">/* File generated by gen_cfile.py. Should not be modified. */</span>
|
|
24 |
<a name="l00003"></a>00003
|
|
25 |
<a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="win32test_8h.html">win32test.h</a>"</span>
|
|
26 |
<a name="l00005"></a>00005
|
|
27 |
<a name="l00006"></a>00006 <span class="comment">/**************************************************************************/</span>
|
|
28 |
<a name="l00007"></a>00007 <span class="comment">/* Declaration of the mapped variables */</span>
|
|
29 |
<a name="l00008"></a>00008 <span class="comment">/**************************************************************************/</span>
|
|
30 |
<a name="l00009"></a>00009
|
|
31 |
<a name="l00010"></a>00010 <span class="comment">/**************************************************************************/</span>
|
|
32 |
<a name="l00011"></a>00011 <span class="comment">/* Declaration of the value range types */</span>
|
|
33 |
<a name="l00012"></a>00012 <span class="comment">/**************************************************************************/</span>
|
|
34 |
<a name="l00013"></a>00013
|
240
|
35 |
<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)
|
215
|
36 |
<a name="l00015"></a>00015 {
|
|
37 |
<a name="l00016"></a>00016 <span class="keywordflow">switch</span> (typeValue) {
|
|
38 |
<a name="l00017"></a>00017 }
|
|
39 |
<a name="l00018"></a>00018 <span class="keywordflow">return</span> 0;
|
|
40 |
<a name="l00019"></a>00019 }
|
|
41 |
<a name="l00020"></a>00020
|
|
42 |
<a name="l00021"></a>00021 <span class="comment">/**************************************************************************/</span>
|
|
43 |
<a name="l00022"></a>00022 <span class="comment">/* The node id */</span>
|
|
44 |
<a name="l00023"></a>00023 <span class="comment">/**************************************************************************/</span>
|
|
45 |
<a name="l00024"></a>00024 <span class="comment">/* node_id default value.*/</span>
|
240
|
46 |
<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;
|
215
|
47 |
<a name="l00026"></a>00026
|
|
48 |
<a name="l00027"></a>00027 <span class="comment">/**************************************************************************/</span>
|
|
49 |
<a name="l00028"></a>00028 <span class="comment">/* Array of message processing information */</span>
|
|
50 |
<a name="l00029"></a>00029
|
240
|
51 |
<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;
|
215
|
52 |
<a name="l00031"></a>00031
|
240
|
53 |
<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];
|
215
|
54 |
<a name="l00033"></a>00033
|
|
55 |
<a name="l00034"></a>00034 <span class="comment">/*</span>
|
|
56 |
<a name="l00035"></a>00035 <span class="comment">$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</span>
|
|
57 |
<a name="l00036"></a>00036 <span class="comment"></span>
|
|
58 |
<a name="l00037"></a>00037 <span class="comment"> OBJECT DICTIONARY</span>
|
|
59 |
<a name="l00038"></a>00038 <span class="comment"></span>
|
|
60 |
<a name="l00039"></a>00039 <span class="comment">$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</span>
|
|
61 |
<a name="l00040"></a>00040 <span class="comment">*/</span>
|
|
62 |
<a name="l00041"></a>00041
|
|
63 |
<a name="l00042"></a>00042 <span class="comment">/* index 0x1000 : Device Type. */</span>
|
240
|
64 |
<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>
|
|
65 |
<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>[] =
|
215
|
66 |
<a name="l00045"></a>00045 {
|
240
|
67 |
<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>*)&<a class="code" href="win32test_8c.html#7da0e434f759ab37dd26b54c729171ca">win32test_obj1000</a> }
|
215
|
68 |
<a name="l00047"></a>00047 };
|
|
69 |
<a name="l00048"></a>00048
|
|
70 |
<a name="l00049"></a>00049 <span class="comment">/* index 0x1001 : Error Register. */</span>
|
240
|
71 |
<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>
|
|
72 |
<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>[] =
|
215
|
73 |
<a name="l00052"></a>00052 {
|
240
|
74 |
<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>*)&<a class="code" href="win32test_8c.html#298be281c0839a943148d25df7a9efd7">win32test_obj1001</a> }
|
215
|
75 |
<a name="l00054"></a>00054 };
|
|
76 |
<a name="l00055"></a>00055
|
|
77 |
<a name="l00056"></a>00056 <span class="comment">/* index 0x1005 : SYNC COB ID. */</span>
|
240
|
78 |
<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>
|
|
79 |
<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>[] =
|
215
|
80 |
<a name="l00059"></a>00059 {
|
|
81 |
<a name="l00060"></a>00060 NULL,
|
|
82 |
<a name="l00061"></a>00061 };
|
240
|
83 |
<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>[] =
|
215
|
84 |
<a name="l00063"></a>00063 {
|
240
|
85 |
<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>*)&<a class="code" href="win32test_8c.html#9230b8f7c024b47356efa468bfb99c78">win32test_obj1005</a> }
|
215
|
86 |
<a name="l00065"></a>00065 };
|
|
87 |
<a name="l00066"></a>00066
|
|
88 |
<a name="l00067"></a>00067 <span class="comment">/* index 0x1006 : Communication / Cycle Period */</span>
|
240
|
89 |
<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>
|
215
|
90 |
<a name="l00069"></a>00069
|
|
91 |
<a name="l00070"></a>00070 <span class="comment">/* index 0x1016 : Consumer Heartbeat Time */</span>
|
240
|
92 |
<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;
|
|
93 |
<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};
|
215
|
94 |
<a name="l00073"></a>00073
|
|
95 |
<a name="l00074"></a>00074 <span class="comment">/* index 0x1017 : Producer Heartbeat Time */</span>
|
240
|
96 |
<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>
|
215
|
97 |
<a name="l00076"></a>00076
|
|
98 |
<a name="l00077"></a>00077 <span class="comment">/* index 0x1018 : Identity. */</span>
|
240
|
99 |
<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>
|
|
100 |
<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>
|
|
101 |
<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>
|
|
102 |
<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>
|
|
103 |
<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>
|
|
104 |
<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>[] =
|
215
|
105 |
<a name="l00084"></a>00084 {
|
240
|
106 |
<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>*)&<a class="code" href="win32test_8c.html#93f462321827a52c17a15543a98f2fc9">win32test_highestSubIndex_obj1018</a> },
|
|
107 |
<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>*)&<a class="code" href="win32test_8c.html#4af3d932df13f2915f434c9022601514">win32test_obj1018_Vendor_ID</a> },
|
|
108 |
<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>*)&<a class="code" href="win32test_8c.html#6e010d99716eb5cd749a1c940fa9363e">win32test_obj1018_Product_Code</a> },
|
|
109 |
<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>*)&<a class="code" href="win32test_8c.html#f9996bcba72dd4588f7d9f9750b9cbe3">win32test_obj1018_Revision_Number</a> },
|
|
110 |
<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>*)&<a class="code" href="win32test_8c.html#2cd9a69d9bfd2370fd693d8ffd16c9cd">win32test_obj1018_Serial_Number</a> }
|
215
|
111 |
<a name="l00090"></a>00090 };
|
|
112 |
<a name="l00091"></a>00091
|
|
113 |
<a name="l00092"></a>00092 <span class="comment">/* index 0x1280 : Client SDO 1 Parameter. */</span>
|
240
|
114 |
<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>
|
|
115 |
<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>
|
|
116 |
<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>
|
|
117 |
<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>
|
|
118 |
<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>[] =
|
215
|
119 |
<a name="l00098"></a>00098 {
|
240
|
120 |
<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>*)&<a class="code" href="win32test_8c.html#2c63d2c9f3c16516e0e3d143acfd895c">win32test_highestSubIndex_obj1280</a> },
|
|
121 |
<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>*)&<a class="code" href="win32test_8c.html#ce2d13997d365d7969a2cad6da586e10">win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO</a> },
|
|
122 |
<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>*)&<a class="code" href="win32test_8c.html#9a9283acf69842e5be5fc454eba86011">win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO</a> },
|
|
123 |
<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>*)&<a class="code" href="win32test_8c.html#b3d3170d54796c5480d8c970076ab672">win32test_obj1280_Node_ID_of_the_SDO_Server</a> }
|
215
|
124 |
<a name="l00103"></a>00103 };
|
|
125 |
<a name="l00104"></a>00104
|
240
|
126 |
<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>[] =
|
215
|
127 |
<a name="l00106"></a>00106 {
|
240
|
128 |
<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},
|
|
129 |
<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},
|
|
130 |
<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},
|
|
131 |
<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},
|
|
132 |
<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},
|
215
|
133 |
<a name="l00112"></a>00112 };
|
|
134 |
<a name="l00113"></a>00113
|
240
|
135 |
<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)
|
215
|
136 |
<a name="l00115"></a>00115 {
|
|
137 |
<a name="l00116"></a>00116 <span class="keywordtype">int</span> i;
|
|
138 |
<a name="l00117"></a>00117 *callbacks = NULL;
|
|
139 |
<a name="l00118"></a>00118 <span class="keywordflow">switch</span>(wIndex){
|
|
140 |
<a name="l00119"></a>00119 <span class="keywordflow">case</span> 0x1000: i = 0;<span class="keywordflow">break</span>;
|
|
141 |
<a name="l00120"></a>00120 <span class="keywordflow">case</span> 0x1001: i = 1;<span class="keywordflow">break</span>;
|
240
|
142 |
<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>;
|
215
|
143 |
<a name="l00122"></a>00122 <span class="keywordflow">case</span> 0x1018: i = 3;<span class="keywordflow">break</span>;
|
|
144 |
<a name="l00123"></a>00123 <span class="keywordflow">case</span> 0x1280: i = 4;<span class="keywordflow">break</span>;
|
|
145 |
<a name="l00124"></a>00124 <span class="keywordflow">default</span>:
|
240
|
146 |
<a name="l00125"></a>00125 *errorCode = <a class="code" href="def_8h.html#3f8ca223a1d0262a800f7a14fdd9794c">OD_NO_SUCH_OBJECT</a>;
|
215
|
147 |
<a name="l00126"></a>00126 <span class="keywordflow">return</span> NULL;
|
|
148 |
<a name="l00127"></a>00127 }
|
240
|
149 |
<a name="l00128"></a>00128 *errorCode = <a class="code" href="def_8h.html#a07aae3570321186b5b2233f4f8a9bbe">OD_SUCCESSFUL</a>;
|
|
150 |
<a name="l00129"></a>00129 <span class="keywordflow">return</span> &<a class="code" href="win32test_8c.html#78976c22aaf736715704af50d827c7ca">win32test_objdict</a>[i];
|
215
|
151 |
<a name="l00130"></a>00130 }
|
|
152 |
<a name="l00131"></a>00131
|
|
153 |
<a name="l00132"></a>00132 <span class="comment">/* To count at which received SYNC a PDO must be sent.</span>
|
|
154 |
<a name="l00133"></a>00133 <span class="comment"> * Even if no pdoTransmit are defined, at least one entry is computed</span>
|
|
155 |
<a name="l00134"></a>00134 <span class="comment"> * for compilations issues.</span>
|
|
156 |
<a name="l00135"></a>00135 <span class="comment"> */</span>
|
240
|
157 |
<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,};
|
215
|
158 |
<a name="l00137"></a>00137
|
240
|
159 |
<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> = {
|
215
|
160 |
<a name="l00139"></a>00139 0, <span class="comment">/* SDO_SVR */</span>
|
|
161 |
<a name="l00140"></a>00140 4, <span class="comment">/* SDO_CLT */</span>
|
|
162 |
<a name="l00141"></a>00141 0, <span class="comment">/* PDO_RCV */</span>
|
|
163 |
<a name="l00142"></a>00142 0, <span class="comment">/* PDO_RCV_MAP */</span>
|
|
164 |
<a name="l00143"></a>00143 0, <span class="comment">/* PDO_TRS */</span>
|
|
165 |
<a name="l00144"></a>00144 0 <span class="comment">/* PDO_TRS_MAP */</span>
|
|
166 |
<a name="l00145"></a>00145 };
|
|
167 |
<a name="l00146"></a>00146
|
240
|
168 |
<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> = {
|
215
|
169 |
<a name="l00148"></a>00148 0, <span class="comment">/* SDO_SVR */</span>
|
|
170 |
<a name="l00149"></a>00149 4, <span class="comment">/* SDO_CLT */</span>
|
|
171 |
<a name="l00150"></a>00150 0, <span class="comment">/* PDO_RCV */</span>
|
|
172 |
<a name="l00151"></a>00151 0, <span class="comment">/* PDO_RCV_MAP */</span>
|
|
173 |
<a name="l00152"></a>00152 0, <span class="comment">/* PDO_TRS */</span>
|
|
174 |
<a name="l00153"></a>00153 0 <span class="comment">/* PDO_TRS_MAP */</span>
|
|
175 |
<a name="l00154"></a>00154 };
|
|
176 |
<a name="l00155"></a>00155
|
240
|
177 |
<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]);
|
215
|
178 |
<a name="l00157"></a>00157
|
240
|
179 |
<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);
|
215
|
180 |
<a name="l00159"></a>00159
|
240
|
181 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:16 2007 for CanFestival by
|
215
|
182 |
<a href="http://www.doxygen.org/index.html">
|
|
183 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
184 |
</body>
|
|
185 |
</html>
|