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_65dd258ff9b9ef4cd7bd0d22f5e58dba.html">drivers</a> » <a class="el" href="dir_e214fcc19be6ea390978e8fc1683888c.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="248,107,336,133" alt=""> |
|
31 <area href="def_8h.html" shape="rect" coords="268,157,316,184" alt=""> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="499,56,573,83" alt=""> |
|
33 <area href="can_8h.html" shape="rect" coords="393,107,441,133" alt=""> |
|
34 <area href="config_8h.html" shape="rect" coords="385,157,449,184" 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#722407e147a7e12159a03b4d7ce8e389">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#303cb6e9adb33087e17f29b9a75ba379">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#b0b7065be05f6d53009b7bd46626e2c0">canReceive_driver</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">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#d1dd3b302365b1f2bd0ce49f3db780d8">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#36327c9e0ec6d284b346963a321e3c2b">canSend_driver</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">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#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="can__virtual_8c.html#a91c5884b47322592815c82427be3fac">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#d2f4803f3a623c82a4c3e92d4e75e5a5">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">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#a13bbe9d129fed0a2f43085698c79e3e">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="722407e147a7e12159a03b4d7ce8e389"></a><!-- doxytag: member="can_virtual.c::MAX_NB_CAN_PIPES" ref="722407e147a7e12159a03b4d7ce8e389" 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="303cb6e9adb33087e17f29b9a75ba379"></a><!-- doxytag: member="can_virtual.c::MyCase" ref="303cb6e9adb33087e17f29b9a75ba379" 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="d2f4803f3a623c82a4c3e92d4e75e5a5"></a><!-- doxytag: member="can_virtual.c::canClose_driver" ref="d2f4803f3a623c82a4c3e92d4e75e5a5" 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#324227f7b01d51ee83a883174769ac8f">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="a91c5884b47322592815c82427be3fac"></a><!-- doxytag: member="can_virtual.c::canOpen_driver" ref="a91c5884b47322592815c82427be3fac" 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#324227f7b01d51ee83a883174769ac8f">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="b0b7065be05f6d53009b7bd46626e2c0"></a><!-- doxytag: member="can_virtual.c::canReceive_driver" ref="b0b7065be05f6d53009b7bd46626e2c0" 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#324227f7b01d51ee83a883174769ac8f">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="36327c9e0ec6d284b346963a321e3c2b"></a><!-- doxytag: member="can_virtual.c::canSend_driver" ref="36327c9e0ec6d284b346963a321e3c2b" 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#324227f7b01d51ee83a883174769ac8f">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_36327c9e0ec6d284b346963a321e3c2b_cgraph.png" border="0" usemap="#can__virtual_8c_36327c9e0ec6d284b346963a321e3c2b_cgraph_map" alt=""></center> |
|
218 <map name="can__virtual_8c_36327c9e0ec6d284b346963a321e3c2b_cgraph_map"> |
|
219 <area href="can__virtual_8c.html#d1dd3b302365b1f2bd0ce49f3db780d8" shape="rect" coords="160,5,259,32" alt=""> |
|
220 </map> |
|
221 |
|
222 </div> |
|
223 </div><p> |
|
224 <a class="anchor" name="d1dd3b302365b1f2bd0ce49f3db780d8"></a><!-- doxytag: member="can_virtual.c::print_message" ref="d1dd3b302365b1f2bd0ce49f3db780d8" 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#l00084">NMT</a>, <a class="el" href="def_8h-source.html#l00097">NODE_GUARD</a>, <a class="el" href="def_8h-source.html#l00088">PDO1rx</a>, <a class="el" href="def_8h-source.html#l00087">PDO1tx</a>, <a class="el" href="def_8h-source.html#l00090">PDO2rx</a>, <a class="el" href="def_8h-source.html#l00089">PDO2tx</a>, <a class="el" href="def_8h-source.html#l00092">PDO3rx</a>, <a class="el" href="def_8h-source.html#l00091">PDO3tx</a>, <a class="el" href="def_8h-source.html#l00094">PDO4rx</a>, <a class="el" href="def_8h-source.html#l00093">PDO4tx</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="def_8h-source.html#l00096">SDOrx</a>, <a class="el" href="def_8h-source.html#l00095">SDOtx</a>, <a class="el" href="def_8h-source.html#l00085">SYNC</a>, <a class="el" href="def_8h-source.html#l00086">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="a13bbe9d129fed0a2f43085698c79e3e"></a><!-- doxytag: member="can_virtual.c::canpipes" ref="a13bbe9d129fed0a2f43085698c79e3e" 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#a13bbe9d129fed0a2f43085698c79e3e">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 Mon Jul 2 19:10:17 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> |
|