16 <ul> |
16 <ul> |
17 <li><a href="files.html"><span>File List</span></a></li> |
17 <li><a href="files.html"><span>File List</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
19 </ul></div> |
19 </ul></div> |
20 <div class="nav"> |
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> |
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> |
22 <h1>can_virtual.c File Reference</h1><code>#include <stdio.h></code><br> |
23 <code>#include <unistd.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> |
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> |
25 <code>#include "<a class="el" href="def_8h-source.html">def.h</a>"</code><br> |
26 |
26 |
27 <p> |
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> |
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"> |
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=""> |
30 <area href="can__driver_8h.html" shape="rect" coords="248,107,336,133" alt=""> |
31 <area href="def_8h.html" shape="rect" coords="315,153,371,177" 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="569,57,657,81" 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="452,107,511,131" alt=""> |
33 <area href="can_8h.html" shape="rect" coords="393,107,441,133" alt=""> |
34 <area href="config_8h.html" shape="rect" coords="444,155,519,179" alt=""> |
34 <area href="config_8h.html" shape="rect" coords="385,157,449,184" alt=""> |
35 </map> |
35 </map> |
36 |
36 |
37 <p> |
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"> |
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> |
39 <tr><td></td></tr> |
40 <tr><td colspan="2"><br><h2>Data Structures</h2></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> |
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 |
42 |
43 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
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> |
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 |
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> |
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 |
47 |
48 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
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> |
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 |
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> |
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 |
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> |
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 |
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> |
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 |
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> |
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 |
58 |
59 <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
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> |
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 |
61 |
62 </table> |
62 </table> |
63 <hr><h2>Define Documentation</h2> |
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="" --> |
64 <a class="anchor" name="722407e147a7e12159a03b4d7ce8e389"></a><!-- doxytag: member="can_virtual.c::MAX_NB_CAN_PIPES" ref="722407e147a7e12159a03b4d7ce8e389" args="" --> |
65 <div class="memitem"> |
65 <div class="memitem"> |
66 <div class="memproto"> |
66 <div class="memproto"> |
67 <table class="memname"> |
67 <table class="memname"> |
68 <tr> |
68 <tr> |
69 <td class="memname">#define MAX_NB_CAN_PIPES 16 </td> |
69 <td class="memname">#define MAX_NB_CAN_PIPES 16 </td> |
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>. |
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> |
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>. |
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> |
152 </div> |
153 </div><p> |
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)" --> |
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"> |
155 <div class="memitem"> |
156 <div class="memproto"> |
156 <div class="memproto"> |
157 <table class="memname"> |
157 <table class="memname"> |
158 <tr> |
158 <tr> |
159 <td class="memname">UNS8 canReceive_driver </td> |
159 <td class="memname">UNS8 canReceive_driver </td> |
160 <td>(</td> |
160 <td>(</td> |
161 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </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> |
162 <td class="paramname"> <em>fd0</em>, </td> |
163 </tr> |
163 </tr> |
164 <tr> |
164 <tr> |
165 <td class="paramkey"></td> |
165 <td class="paramkey"></td> |
166 <td></td> |
166 <td></td> |
212 <p> |
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>. |
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> |
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>. |
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> |
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> |
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_def95aee49efa13dd047d0b3b5507ad3_cgraph_map"> |
218 <map name="can__virtual_8c_36327c9e0ec6d284b346963a321e3c2b_cgraph_map"> |
219 <area href="can__virtual_8c.html#6baa544d467cbabaf4bacadc74cc6523" shape="rect" coords="183,6,303,30" alt=""> |
219 <area href="can__virtual_8c.html#d1dd3b302365b1f2bd0ce49f3db780d8" shape="rect" coords="160,5,259,32" alt=""> |
220 </map> |
220 </map> |
221 |
221 |
222 </div> |
222 </div> |
223 </div><p> |
223 </div><p> |
224 <a class="anchor" name="6baa544d467cbabaf4bacadc74cc6523"></a><!-- doxytag: member="can_virtual.c::print_message" ref="6baa544d467cbabaf4bacadc74cc6523" args="(Message *m)" --> |
224 <a class="anchor" name="d1dd3b302365b1f2bd0ce49f3db780d8"></a><!-- doxytag: member="can_virtual.c::print_message" ref="d1dd3b302365b1f2bd0ce49f3db780d8" args="(Message *m)" --> |
225 <div class="memitem"> |
225 <div class="memitem"> |
226 <div class="memproto"> |
226 <div class="memproto"> |
227 <table class="memname"> |
227 <table class="memname"> |
228 <tr> |
228 <tr> |
229 <td class="memname">void print_message </td> |
229 <td class="memname">void print_message </td> |
240 <p> |
240 <p> |
241 |
241 |
242 <p> |
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>. |
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> |
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>. |
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> |
246 <p> |
247 Referenced by <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>. |
247 Referenced by <a class="el" href="can__virtual_8c-source.html#l00081">canSend_driver()</a>. |
248 </div> |
248 </div> |
249 </div><p> |
249 </div><p> |
250 <hr><h2>Variable Documentation</h2> |
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]" --> |
251 <a class="anchor" name="a13bbe9d129fed0a2f43085698c79e3e"></a><!-- doxytag: member="can_virtual.c::canpipes" ref="a13bbe9d129fed0a2f43085698c79e3e" args="[MAX_NB_CAN_PIPES]" --> |
252 <div class="memitem"> |
252 <div class="memitem"> |
253 <div class="memproto"> |
253 <div class="memproto"> |
254 <table class="memname"> |
254 <table class="memname"> |
255 <tr> |
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> |
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> |
257 </tr> |
258 </table> |
258 </table> |
259 </div> |
259 </div> |
260 <div class="memdoc"> |
260 <div class="memdoc"> |
261 |
261 |