207
|
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/main.c File Reference</title>
|
|
4 |
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
5 |
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
6 |
</head><body>
|
|
7 |
<!-- Generated by Doxygen 1.5.1 -->
|
|
8 |
<div class="tabs">
|
|
9 |
<ul>
|
|
10 |
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
11 |
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
12 |
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
13 |
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
|
14 |
</ul></div>
|
|
15 |
<div class="tabs">
|
|
16 |
<ul>
|
|
17 |
<li><a href="files.html"><span>File List</span></a></li>
|
|
18 |
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
19 |
</ul></div>
|
|
20 |
<h1>examples/win32test/main.c File Reference</h1><code>#include <stdio.h></code><br>
|
|
21 |
<code>#include <stdlib.h></code><br>
|
|
22 |
<code>#include "<a class="el" href="win32test_8h.html">win32test.h</a>"</code><br>
|
|
23 |
<code>#include "<a class="el" href="win32_2canfestival_8h.html">canfestival.h</a>"</code><br>
|
|
24 |
<code>#include <time.h></code><br>
|
|
25 |
<table border="0" cellpadding="0" cellspacing="0">
|
|
26 |
<tr><td></td></tr>
|
|
27 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
|
28 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#912c62bad87e954cee4b1733111a420b">sleep_proc</a>(ms)</td></tr>
|
|
29 |
|
|
30 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#6faddd33869dd1ccf360315b1f11b554">uptime_ms_proc</a> (1000*(time()%86400))</td></tr>
|
|
31 |
|
|
32 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
33 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#b324a2fad227690e3da744b69f7a8119">GetChangeStateResults</a> (UNS8 node_id, UNS8 expected_state, unsigned long timeout_ms)</td></tr>
|
|
34 |
|
|
35 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#d4427585d0ce571277ff22b72adce526">ReadSDO</a> (UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, void *data, UNS8 *size)</td></tr>
|
|
36 |
|
|
37 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
|
|
38 |
|
|
39 |
</table>
|
|
40 |
<hr><h2>Define Documentation</h2>
|
|
41 |
<a class="anchor" name="912c62bad87e954cee4b1733111a420b"></a><!-- doxytag: member="main.c::sleep_proc" ref="912c62bad87e954cee4b1733111a420b" args="(ms)" -->
|
|
42 |
<div class="memitem">
|
|
43 |
<div class="memproto">
|
|
44 |
<table class="memname">
|
|
45 |
<tr>
|
|
46 |
<td class="memname">#define sleep_proc </td>
|
|
47 |
<td>(</td>
|
|
48 |
<td class="paramtype">ms </td>
|
|
49 |
<td class="paramname"> </td>
|
|
50 |
<td> ) </td>
|
|
51 |
<td width="100%"></td>
|
|
52 |
</tr>
|
|
53 |
</table>
|
|
54 |
</div>
|
|
55 |
<div class="memdoc">
|
|
56 |
|
|
57 |
<p>
|
|
58 |
|
|
59 |
</div>
|
|
60 |
</div><p>
|
|
61 |
<a class="anchor" name="6faddd33869dd1ccf360315b1f11b554"></a><!-- doxytag: member="main.c::uptime_ms_proc" ref="6faddd33869dd1ccf360315b1f11b554" args="" -->
|
|
62 |
<div class="memitem">
|
|
63 |
<div class="memproto">
|
|
64 |
<table class="memname">
|
|
65 |
<tr>
|
|
66 |
<td class="memname">#define uptime_ms_proc (1000*(time()%86400)) </td>
|
|
67 |
</tr>
|
|
68 |
</table>
|
|
69 |
</div>
|
|
70 |
<div class="memdoc">
|
|
71 |
|
|
72 |
<p>
|
|
73 |
|
|
74 |
</div>
|
|
75 |
</div><p>
|
|
76 |
<hr><h2>Function Documentation</h2>
|
|
77 |
<a class="anchor" name="b324a2fad227690e3da744b69f7a8119"></a><!-- doxytag: member="main.c::GetChangeStateResults" ref="b324a2fad227690e3da744b69f7a8119" args="(UNS8 node_id, UNS8 expected_state, unsigned long timeout_ms)" -->
|
|
78 |
<div class="memitem">
|
|
79 |
<div class="memproto">
|
|
80 |
<table class="memname">
|
|
81 |
<tr>
|
|
82 |
<td class="memname">UNS8 GetChangeStateResults </td>
|
|
83 |
<td>(</td>
|
|
84 |
<td class="paramtype">UNS8 </td>
|
|
85 |
<td class="paramname"> <em>node_id</em>, </td>
|
|
86 |
</tr>
|
|
87 |
<tr>
|
|
88 |
<td class="paramkey"></td>
|
|
89 |
<td></td>
|
|
90 |
<td class="paramtype">UNS8 </td>
|
|
91 |
<td class="paramname"> <em>expected_state</em>, </td>
|
|
92 |
</tr>
|
|
93 |
<tr>
|
|
94 |
<td class="paramkey"></td>
|
|
95 |
<td></td>
|
|
96 |
<td class="paramtype">unsigned long </td>
|
|
97 |
<td class="paramname"> <em>timeout_ms</em></td><td> </td>
|
|
98 |
</tr>
|
|
99 |
<tr>
|
|
100 |
<td></td>
|
|
101 |
<td>)</td>
|
|
102 |
<td></td><td></td><td width="100%"></td>
|
|
103 |
</tr>
|
|
104 |
</table>
|
|
105 |
</div>
|
|
106 |
<div class="memdoc">
|
|
107 |
|
|
108 |
<p>
|
|
109 |
|
|
110 |
</div>
|
|
111 |
</div><p>
|
|
112 |
<a class="anchor" name="0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="main.c::main" ref="0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" -->
|
|
113 |
<div class="memitem">
|
|
114 |
<div class="memproto">
|
|
115 |
<table class="memname">
|
|
116 |
<tr>
|
|
117 |
<td class="memname">int main </td>
|
|
118 |
<td>(</td>
|
|
119 |
<td class="paramtype">int </td>
|
|
120 |
<td class="paramname"> <em>argc</em>, </td>
|
|
121 |
</tr>
|
|
122 |
<tr>
|
|
123 |
<td class="paramkey"></td>
|
|
124 |
<td></td>
|
|
125 |
<td class="paramtype">char * </td>
|
|
126 |
<td class="paramname"> <em>argv</em>[]</td><td> </td>
|
|
127 |
</tr>
|
|
128 |
<tr>
|
|
129 |
<td></td>
|
|
130 |
<td>)</td>
|
|
131 |
<td></td><td></td><td width="100%"></td>
|
|
132 |
</tr>
|
|
133 |
</table>
|
|
134 |
</div>
|
|
135 |
<div class="memdoc">
|
|
136 |
|
|
137 |
<p>
|
|
138 |
|
|
139 |
</div>
|
|
140 |
</div><p>
|
|
141 |
<a class="anchor" name="d4427585d0ce571277ff22b72adce526"></a><!-- doxytag: member="main.c::ReadSDO" ref="d4427585d0ce571277ff22b72adce526" args="(UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, void *data, UNS8 *size)" -->
|
|
142 |
<div class="memitem">
|
|
143 |
<div class="memproto">
|
|
144 |
<table class="memname">
|
|
145 |
<tr>
|
|
146 |
<td class="memname">UNS8 ReadSDO </td>
|
|
147 |
<td>(</td>
|
|
148 |
<td class="paramtype">UNS8 </td>
|
|
149 |
<td class="paramname"> <em>nodeId</em>, </td>
|
|
150 |
</tr>
|
|
151 |
<tr>
|
|
152 |
<td class="paramkey"></td>
|
|
153 |
<td></td>
|
|
154 |
<td class="paramtype">UNS16 </td>
|
|
155 |
<td class="paramname"> <em>index</em>, </td>
|
|
156 |
</tr>
|
|
157 |
<tr>
|
|
158 |
<td class="paramkey"></td>
|
|
159 |
<td></td>
|
|
160 |
<td class="paramtype">UNS8 </td>
|
|
161 |
<td class="paramname"> <em>subIndex</em>, </td>
|
|
162 |
</tr>
|
|
163 |
<tr>
|
|
164 |
<td class="paramkey"></td>
|
|
165 |
<td></td>
|
|
166 |
<td class="paramtype">UNS8 </td>
|
|
167 |
<td class="paramname"> <em>dataType</em>, </td>
|
|
168 |
</tr>
|
|
169 |
<tr>
|
|
170 |
<td class="paramkey"></td>
|
|
171 |
<td></td>
|
|
172 |
<td class="paramtype">void * </td>
|
|
173 |
<td class="paramname"> <em>data</em>, </td>
|
|
174 |
</tr>
|
|
175 |
<tr>
|
|
176 |
<td class="paramkey"></td>
|
|
177 |
<td></td>
|
|
178 |
<td class="paramtype">UNS8 * </td>
|
|
179 |
<td class="paramname"> <em>size</em></td><td> </td>
|
|
180 |
</tr>
|
|
181 |
<tr>
|
|
182 |
<td></td>
|
|
183 |
<td>)</td>
|
|
184 |
<td></td><td></td><td width="100%"></td>
|
|
185 |
</tr>
|
|
186 |
</table>
|
|
187 |
</div>
|
|
188 |
<div class="memdoc">
|
|
189 |
|
|
190 |
<p>
|
|
191 |
|
|
192 |
</div>
|
|
193 |
</div><p>
|
|
194 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 15:50:45 2007 for CanFestival by
|
|
195 |
<a href="http://www.doxygen.org/index.html">
|
|
196 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
197 |
</body>
|
|
198 |
</html>
|