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: drivers/can_virtual/can_virtual.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="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_d58fb241e647de6212c31ecccf9cbace.html">drivers</a> » <a class="el" href="dir_2f1d38949ead60c979d76e04f3273800.html">can_virtual</a></div>
|
|
22 |
<h1>can_virtual.c File Reference</h1><code>#include <stdio.h></code><br>
|
|
23 |
<code>#include <unistd.h></code><br>
|
|
24 |
<code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br>
|
|
25 |
<code>#include "<a class="el" href="def_8h-source.html">def.h</a>"</code><br>
|
|
26 |
|
|
27 |
<p>
|
|
28 |
Include dependency graph for can_virtual.c:<p><center><img src="can__virtual_8c__incl.png" border="0" usemap="#drivers/can_virtual/can_virtual.c_map" alt=""></center>
|
|
29 |
<map name="drivers/can_virtual/can_virtual.c_map">
|
|
30 |
<area href="can__driver_8h.html" shape="rect" coords="291,104,395,128" alt="">
|
|
31 |
<area href="def_8h.html" shape="rect" coords="315,153,371,177" alt="">
|
|
32 |
<area href="win32_2applicfg_8h.html" shape="rect" coords="569,57,657,81" alt="">
|
|
33 |
<area href="can_8h.html" shape="rect" coords="452,107,511,131" alt="">
|
|
34 |
<area href="config_8h.html" shape="rect" coords="444,155,519,179" alt="">
|
|
35 |
</map>
|
|
36 |
|
|
37 |
<p>
|
|
38 |
<a href="can__virtual_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
39 |
<tr><td></td></tr>
|
|
40 |
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
|
|
41 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structCANPipe.html">CANPipe</a></td></tr>
|
|
42 |
|
|
43 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
|
44 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#b2f51095e950bbeab1ea15fac21e6146">MAX_NB_CAN_PIPES</a> 16</td></tr>
|
|
45 |
|
|
46 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#124cab530f97a752eb2e110c1b398c11">MyCase</a>(fc) case fc: printf(#fc);break;</td></tr>
|
|
47 |
|
|
48 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
49 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#6b3248e95acf2b08d1fd8b42610cc5a6">canReceive_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
|
|
50 |
|
|
51 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#6baa544d467cbabaf4bacadc74cc6523">print_message</a> (<a class="el" href="structMessage.html">Message</a> *m)</td></tr>
|
|
52 |
|
|
53 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#def95aee49efa13dd047d0b3b5507ad3">canSend_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
|
|
54 |
|
|
55 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#945403aba7f36acbd2e7160ade361bab">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr>
|
|
56 |
|
|
57 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#76e6a915d0e40a23b863198b2aaa5545">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0)</td></tr>
|
|
58 |
|
|
59 |
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structCANPipe.html">CANPipe</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#53fd0e34e8d4d31bf381700a9d8ae72b">canpipes</a> [MAX_NB_CAN_PIPES] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},}</td></tr>
|
|
61 |
|
|
62 |
</table>
|
|
63 |
<hr><h2>Define Documentation</h2>
|
|
64 |
<a class="anchor" name="b2f51095e950bbeab1ea15fac21e6146"></a><!-- doxytag: member="can_virtual.c::MAX_NB_CAN_PIPES" ref="b2f51095e950bbeab1ea15fac21e6146" args="" -->
|
|
65 |
<div class="memitem">
|
|
66 |
<div class="memproto">
|
|
67 |
<table class="memname">
|
|
68 |
<tr>
|
|
69 |
<td class="memname">#define MAX_NB_CAN_PIPES 16 </td>
|
|
70 |
</tr>
|
|
71 |
</table>
|
|
72 |
</div>
|
|
73 |
<div class="memdoc">
|
|
74 |
|
|
75 |
<p>
|
|
76 |
|
|
77 |
<p>
|
|
78 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00033">33</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
79 |
<p>
|
|
80 |
Referenced by <a class="el" href="can__virtual_8c-source.html#l00121">canOpen_driver()</a>, and <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>.
|
|
81 |
</div>
|
|
82 |
</div><p>
|
|
83 |
<a class="anchor" name="124cab530f97a752eb2e110c1b398c11"></a><!-- doxytag: member="can_virtual.c::MyCase" ref="124cab530f97a752eb2e110c1b398c11" args="(fc)" -->
|
|
84 |
<div class="memitem">
|
|
85 |
<div class="memproto">
|
|
86 |
<table class="memname">
|
|
87 |
<tr>
|
|
88 |
<td class="memname">#define MyCase </td>
|
|
89 |
<td>(</td>
|
|
90 |
<td class="paramtype">fc </td>
|
|
91 |
<td class="paramname"> </td>
|
|
92 |
<td> ) </td>
|
|
93 |
<td width="100%"> case fc: printf(#fc);break;</td>
|
|
94 |
</tr>
|
|
95 |
</table>
|
|
96 |
</div>
|
|
97 |
<div class="memdoc">
|
|
98 |
|
|
99 |
<p>
|
|
100 |
|
|
101 |
<p>
|
|
102 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00052">52</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
103 |
<p>
|
|
104 |
Referenced by <a class="el" href="can__virtual_8c-source.html#l00053">print_message()</a>.
|
|
105 |
</div>
|
|
106 |
</div><p>
|
|
107 |
<hr><h2>Function Documentation</h2>
|
|
108 |
<a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_virtual.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" -->
|
|
109 |
<div class="memitem">
|
|
110 |
<div class="memproto">
|
|
111 |
<table class="memname">
|
|
112 |
<tr>
|
|
113 |
<td class="memname">int canClose_driver </td>
|
|
114 |
<td>(</td>
|
|
115 |
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
|
|
116 |
<td class="paramname"> <em>fd0</em> </td>
|
|
117 |
<td> ) </td>
|
|
118 |
<td width="100%"></td>
|
|
119 |
</tr>
|
|
120 |
</table>
|
|
121 |
</div>
|
|
122 |
<div class="memdoc">
|
|
123 |
|
|
124 |
<p>
|
|
125 |
|
|
126 |
<p>
|
|
127 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00142">142</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
128 |
</div>
|
|
129 |
</div><p>
|
|
130 |
<a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_virtual.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" -->
|
|
131 |
<div class="memitem">
|
|
132 |
<div class="memproto">
|
|
133 |
<table class="memname">
|
|
134 |
<tr>
|
|
135 |
<td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td>
|
|
136 |
<td>(</td>
|
|
137 |
<td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td>
|
|
138 |
<td class="paramname"> <em>board</em> </td>
|
|
139 |
<td> ) </td>
|
|
140 |
<td width="100%"></td>
|
|
141 |
</tr>
|
|
142 |
</table>
|
|
143 |
</div>
|
|
144 |
<div class="memdoc">
|
|
145 |
|
|
146 |
<p>
|
|
147 |
|
|
148 |
<p>
|
|
149 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00121">121</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
150 |
<p>
|
|
151 |
References <a class="el" href="can__virtual_8c-source.html#l00040">canpipes</a>, <a class="el" href="can__virtual_8c-source.html#l00033">MAX_NB_CAN_PIPES</a>, and <a class="el" href="can__virtual_8c-source.html#l00036">CANPipe::used</a>.
|
|
152 |
</div>
|
|
153 |
</div><p>
|
|
154 |
<a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_virtual.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" -->
|
|
155 |
<div class="memitem">
|
|
156 |
<div class="memproto">
|
|
157 |
<table class="memname">
|
|
158 |
<tr>
|
|
159 |
<td class="memname">UNS8 canReceive_driver </td>
|
|
160 |
<td>(</td>
|
|
161 |
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
|
|
162 |
<td class="paramname"> <em>fd0</em>, </td>
|
|
163 |
</tr>
|
|
164 |
<tr>
|
|
165 |
<td class="paramkey"></td>
|
|
166 |
<td></td>
|
|
167 |
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
|
|
168 |
<td class="paramname"> <em>m</em></td><td> </td>
|
|
169 |
</tr>
|
|
170 |
<tr>
|
|
171 |
<td></td>
|
|
172 |
<td>)</td>
|
|
173 |
<td></td><td></td><td width="100%"></td>
|
|
174 |
</tr>
|
|
175 |
</table>
|
|
176 |
</div>
|
|
177 |
<div class="memdoc">
|
|
178 |
|
|
179 |
<p>
|
|
180 |
|
|
181 |
<p>
|
|
182 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00043">43</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
183 |
</div>
|
|
184 |
</div><p>
|
|
185 |
<a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_virtual.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" -->
|
|
186 |
<div class="memitem">
|
|
187 |
<div class="memproto">
|
|
188 |
<table class="memname">
|
|
189 |
<tr>
|
|
190 |
<td class="memname">UNS8 canSend_driver </td>
|
|
191 |
<td>(</td>
|
|
192 |
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
|
|
193 |
<td class="paramname"> <em>fd0</em>, </td>
|
|
194 |
</tr>
|
|
195 |
<tr>
|
|
196 |
<td class="paramkey"></td>
|
|
197 |
<td></td>
|
|
198 |
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
|
|
199 |
<td class="paramname"> <em>m</em></td><td> </td>
|
|
200 |
</tr>
|
|
201 |
<tr>
|
|
202 |
<td></td>
|
|
203 |
<td>)</td>
|
|
204 |
<td></td><td></td><td width="100%"></td>
|
|
205 |
</tr>
|
|
206 |
</table>
|
|
207 |
</div>
|
|
208 |
<div class="memdoc">
|
|
209 |
|
|
210 |
<p>
|
|
211 |
|
|
212 |
<p>
|
|
213 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00081">81</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
214 |
<p>
|
|
215 |
References <a class="el" href="can__virtual_8c-source.html#l00040">canpipes</a>, <a class="el" href="can__virtual_8c-source.html#l00033">MAX_NB_CAN_PIPES</a>, and <a class="el" href="can__virtual_8c-source.html#l00053">print_message()</a>.
|
|
216 |
<p>
|
|
217 |
Here is the call graph for this function:<p><center><img src="can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph.png" border="0" usemap="#can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph_map" alt=""></center>
|
|
218 |
<map name="can__virtual_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph_map">
|
|
219 |
<area href="can__virtual_8c.html#6baa544d467cbabaf4bacadc74cc6523" shape="rect" coords="183,6,303,30" alt="">
|
|
220 |
</map>
|
|
221 |
|
|
222 |
</div>
|
|
223 |
</div><p>
|
|
224 |
<a class="anchor" name="6baa544d467cbabaf4bacadc74cc6523"></a><!-- doxytag: member="can_virtual.c::print_message" ref="6baa544d467cbabaf4bacadc74cc6523" args="(Message *m)" -->
|
|
225 |
<div class="memitem">
|
|
226 |
<div class="memproto">
|
|
227 |
<table class="memname">
|
|
228 |
<tr>
|
|
229 |
<td class="memname">void print_message </td>
|
|
230 |
<td>(</td>
|
|
231 |
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
|
|
232 |
<td class="paramname"> <em>m</em> </td>
|
|
233 |
<td> ) </td>
|
|
234 |
<td width="100%"></td>
|
|
235 |
</tr>
|
|
236 |
</table>
|
|
237 |
</div>
|
|
238 |
<div class="memdoc">
|
|
239 |
|
|
240 |
<p>
|
|
241 |
|
|
242 |
<p>
|
|
243 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00053">53</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
244 |
<p>
|
|
245 |
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="can__virtual_8c-source.html#l00052">MyCase</a>, <a class="el" href="def_8h-source.html#l00086">NMT</a>, <a class="el" href="def_8h-source.html#l00099">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00090">PDO1rx</a>, <a class="el" href="def_8h-source.html#l00089">PDO1tx</a>, <a class="el" href="def_8h-source.html#l00092">PDO2rx</a>, <a class="el" href="def_8h-source.html#l00091">PDO2tx</a>, <a class="el" href="def_8h-source.html#l00094">PDO3rx</a>, <a class="el" href="def_8h-source.html#l00093">PDO3tx</a>, <a class="el" href="def_8h-source.html#l00096">PDO4rx</a>, <a class="el" href="def_8h-source.html#l00095">PDO4tx</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="def_8h-source.html#l00098">SDOrx</a>, <a class="el" href="def_8h-source.html#l00097">SDOtx</a>, <a class="el" href="def_8h-source.html#l00087">SYNC</a>, <a class="el" href="def_8h-source.html#l00088">TIME_STAMP</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
|
|
246 |
<p>
|
|
247 |
Referenced by <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>.
|
|
248 |
</div>
|
|
249 |
</div><p>
|
|
250 |
<hr><h2>Variable Documentation</h2>
|
|
251 |
<a class="anchor" name="53fd0e34e8d4d31bf381700a9d8ae72b"></a><!-- doxytag: member="can_virtual.c::canpipes" ref="53fd0e34e8d4d31bf381700a9d8ae72b" args="[MAX_NB_CAN_PIPES]" -->
|
|
252 |
<div class="memitem">
|
|
253 |
<div class="memproto">
|
|
254 |
<table class="memname">
|
|
255 |
<tr>
|
|
256 |
<td class="memname"><a class="el" href="structCANPipe.html">CANPipe</a> <a class="el" href="can__virtual_8c.html#53fd0e34e8d4d31bf381700a9d8ae72b">canpipes</a>[MAX_NB_CAN_PIPES] = {{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},{0,},} </td>
|
|
257 |
</tr>
|
|
258 |
</table>
|
|
259 |
</div>
|
|
260 |
<div class="memdoc">
|
|
261 |
|
|
262 |
<p>
|
|
263 |
|
|
264 |
<p>
|
|
265 |
Definition at line <a class="el" href="can__virtual_8c-source.html#l00040">40</a> of file <a class="el" href="can__virtual_8c-source.html">can_virtual.c</a>.
|
|
266 |
<p>
|
|
267 |
Referenced by <a class="el" href="can__virtual_8c-source.html#l00121">canOpen_driver()</a>, and <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>.
|
|
268 |
</div>
|
|
269 |
</div><p>
|
|
270 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:41 2007 for CanFestival by
|
|
271 |
<a href="http://www.doxygen.org/index.html">
|
|
272 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
273 |
</body>
|
|
274 |
</html>
|