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">
|
|
21 |
<a class="el" href="dir_fc8d77725c328f9de5a130dceab5a508.html">examples</a> » <a class="el" href="dir_9da286b31cfbba48738c6a19280b9fcf.html">win32test</a></div>
|
|
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
|
|
35 |
<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)
|
|
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>
|
|
46 |
<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;
|
|
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
|
|
51 |
<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;
|
|
52 |
<a name="l00031"></a>00031
|
|
53 |
<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];
|
|
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>
|
|
64 |
<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>
|
|
65 |
<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>[] =
|
|
66 |
<a name="l00045"></a>00045 {
|
|
67 |
<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>*)&<a class="code" href="win32test_8c.html#2a4ddb3f5555bb2838de46c20caf9912">win32test_obj1000</a> }
|
|
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>
|
|
71 |
<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>
|
|
72 |
<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>[] =
|
|
73 |
<a name="l00052"></a>00052 {
|
|
74 |
<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>*)&<a class="code" href="win32test_8c.html#02c6c9874b245e06047988c728b03324">win32test_obj1001</a> }
|
|
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>
|
|
78 |
<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>
|
|
79 |
<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>[] =
|
|
80 |
<a name="l00059"></a>00059 {
|
|
81 |
<a name="l00060"></a>00060 NULL,
|
|
82 |
<a name="l00061"></a>00061 };
|
|
83 |
<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>[] =
|
|
84 |
<a name="l00063"></a>00063 {
|
|
85 |
<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>*)&<a class="code" href="win32test_8c.html#ca5470828d9a7087fb6b08a9c22e56d1">win32test_obj1005</a> }
|
|
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>
|
|
89 |
<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>
|
|
90 |
<a name="l00069"></a>00069
|
|
91 |
<a name="l00070"></a>00070 <span class="comment">/* index 0x1016 : Consumer Heartbeat Time */</span>
|
|
92 |
<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;
|
|
93 |
<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};
|
|
94 |
<a name="l00073"></a>00073
|
|
95 |
<a name="l00074"></a>00074 <span class="comment">/* index 0x1017 : Producer Heartbeat Time */</span>
|
|
96 |
<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>
|
|
97 |
<a name="l00076"></a>00076
|
|
98 |
<a name="l00077"></a>00077 <span class="comment">/* index 0x1018 : Identity. */</span>
|
|
99 |
<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>
|
|
100 |
<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>
|
|
101 |
<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>
|
|
102 |
<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>
|
|
103 |
<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>
|
|
104 |
<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>[] =
|
|
105 |
<a name="l00084"></a>00084 {
|
|
106 |
<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>*)&<a class="code" href="win32test_8c.html#d91da0a48faf0575e41697791e8ef610">win32test_highestSubIndex_obj1018</a> },
|
|
107 |
<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>*)&<a class="code" href="win32test_8c.html#12941db32b34d3edb2776d4337f4b4eb">win32test_obj1018_Vendor_ID</a> },
|
|
108 |
<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>*)&<a class="code" href="win32test_8c.html#644993164ffedd2403df99e08c0c5ee4">win32test_obj1018_Product_Code</a> },
|
|
109 |
<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>*)&<a class="code" href="win32test_8c.html#fd1ce4020ec6cef993c215db208dde0d">win32test_obj1018_Revision_Number</a> },
|
|
110 |
<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>*)&<a class="code" href="win32test_8c.html#81775bc0fcc702ab733a716c188ea4db">win32test_obj1018_Serial_Number</a> }
|
|
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>
|
|
114 |
<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>
|
|
115 |
<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>
|
|
116 |
<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>
|
|
117 |
<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>
|
|
118 |
<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>[] =
|
|
119 |
<a name="l00098"></a>00098 {
|
|
120 |
<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>*)&<a class="code" href="win32test_8c.html#409439d11f60c03033b4c89443c5577f">win32test_highestSubIndex_obj1280</a> },
|
|
121 |
<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>*)&<a class="code" href="win32test_8c.html#84e216ec2f1cb0b15122114094703241">win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO</a> },
|
|
122 |
<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>*)&<a class="code" href="win32test_8c.html#1e7463cdb44885a82090b7059fce7ba2">win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO</a> },
|
|
123 |
<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>*)&<a class="code" href="win32test_8c.html#b279eb1acf7b72e879dda8ceeb7fbd88">win32test_obj1280_Node_ID_of_the_SDO_Server</a> }
|
|
124 |
<a name="l00103"></a>00103 };
|
|
125 |
<a name="l00104"></a>00104
|
|
126 |
<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>[] =
|
|
127 |
<a name="l00106"></a>00106 {
|
|
128 |
<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},
|
|
129 |
<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},
|
|
130 |
<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},
|
|
131 |
<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},
|
|
132 |
<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},
|
|
133 |
<a name="l00112"></a>00112 };
|
|
134 |
<a name="l00113"></a>00113
|
|
135 |
<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)
|
|
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>;
|
|
142 |
<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>;
|
|
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>:
|
|
146 |
<a name="l00125"></a>00125 *errorCode = <a class="code" href="def_8h.html#c52e3a6802662a7fe61a4efdc5b12e52">OD_NO_SUCH_OBJECT</a>;
|
|
147 |
<a name="l00126"></a>00126 <span class="keywordflow">return</span> NULL;
|
|
148 |
<a name="l00127"></a>00127 }
|
|
149 |
<a name="l00128"></a>00128 *errorCode = <a class="code" href="def_8h.html#cb82b94eb8e368e8c347b2273b6e514e">OD_SUCCESSFUL</a>;
|
|
150 |
<a name="l00129"></a>00129 <span class="keywordflow">return</span> &<a class="code" href="win32test_8c.html#02f7c0cfa059c2dfd642f5c61abc9382">win32test_objdict</a>[i];
|
|
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>
|
|
157 |
<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,};
|
|
158 |
<a name="l00137"></a>00137
|
|
159 |
<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> = {
|
|
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
|
|
168 |
<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> = {
|
|
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
|
|
177 |
<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]);
|
|
178 |
<a name="l00157"></a>00157
|
|
179 |
<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);
|
|
180 |
<a name="l00159"></a>00159
|
|
181 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:39 2007 for CanFestival by
|
|
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>
|