33 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
33 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
34 |
34 |
35 <p> |
35 <p> |
36 Include dependency graph for can_socket.c:<p><center><img src="can__socket_8c__incl.png" border="0" usemap="#drivers/can_socket/can_socket.c_map" alt=""></center> |
36 Include dependency graph for can_socket.c:<p><center><img src="can__socket_8c__incl.png" border="0" usemap="#drivers/can_socket/can_socket.c_map" alt=""></center> |
37 <map name="drivers/can_socket/can_socket.c_map"> |
37 <map name="drivers/can_socket/can_socket.c_map"> |
38 <area href="win32_2config_8h.html" shape="rect" coords="319,283,394,307" alt=""> |
38 <area href="win32_2config_8h.html" shape="rect" coords="268,291,332,317" alt=""> |
39 <area href="can__driver_8h.html" shape="rect" coords="304,91,408,115" alt=""> |
39 <area href="can__driver_8h.html" shape="rect" coords="256,88,344,115" alt=""> |
40 <area href="win32_2applicfg_8h.html" shape="rect" coords="575,117,663,141" alt=""> |
40 <area href="win32_2applicfg_8h.html" shape="rect" coords="499,113,573,140" alt=""> |
41 <area href="can_8h.html" shape="rect" coords="467,141,526,165" alt=""> |
41 <area href="can_8h.html" shape="rect" coords="401,139,449,165" alt=""> |
42 </map> |
42 </map> |
43 |
43 |
44 <p> |
44 <p> |
45 <a href="can__socket_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
45 <a href="can__socket_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
46 <tr><td></td></tr> |
46 <tr><td></td></tr> |
47 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
47 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#eac0c3db7a1e021f17987bcc76893849">PF_CAN</a> 29</td></tr> |
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#17621bf583b5512955895eea23fbf605">PF_CAN</a> 29</td></tr> |
49 |
49 |
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#546620c7e758f003b24b7fdae4f97bd4">AF_CAN</a> PF_CAN</td></tr> |
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#4b444c39ffe73d7265a8fd1f9574359a">AF_CAN</a> PF_CAN</td></tr> |
51 |
51 |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#b0e2c857f77f55e9d76239af529340ef">CAN_IFNAME</a> "can%s"</td></tr> |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#89884954a188d907256419c1ff3312b9">CAN_IFNAME</a> "can%s"</td></tr> |
53 |
53 |
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#3947ec96c2f7841c6a25f0d2b9989597">CAN_SOCKET</a> socket</td></tr> |
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#4eaf4f417b909f1f45be28cada2c290a">CAN_SOCKET</a> socket</td></tr> |
55 |
55 |
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#4a4bdc94205926096ef572a540e4d025">CAN_CLOSE</a> close</td></tr> |
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#9b4deca58f52eefbbde4f8accefd154d">CAN_CLOSE</a> close</td></tr> |
57 |
57 |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#b78c6a888be103b97e95bfc85f5da083">CAN_RECV</a> recv</td></tr> |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#da8034e638199b5aac1db8434caa10cc">CAN_RECV</a> recv</td></tr> |
59 |
59 |
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#70c9889a227060d2e902e298858c1f36">CAN_SEND</a> send</td></tr> |
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#12cff95e04c908461730b70fbffd53a7">CAN_SEND</a> send</td></tr> |
61 |
61 |
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#f51a5befd644cec65f24d3502b31d630">CAN_BIND</a> bind</td></tr> |
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#7663ba5c0f4cf14506c929080b712100">CAN_BIND</a> bind</td></tr> |
63 |
63 |
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#56776428046c869321581cd587514964">CAN_IOCTL</a> ioctl</td></tr> |
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#133b8d3a55193dcd23c7b3b6e8f733e2">CAN_IOCTL</a> ioctl</td></tr> |
65 |
65 |
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#e9e218c73b4cb73965e4412c4d50eb2e">CAN_ERRNO</a>(err) errno</td></tr> |
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#1aab66d04679810c59d88bb5b3ba706f">CAN_ERRNO</a>(err) errno</td></tr> |
67 |
67 |
68 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
68 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
69 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_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> |
69 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_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> |
70 |
70 |
71 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_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> |
71 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_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> |
72 |
72 |
73 <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__socket_8c.html#945403aba7f36acbd2e7160ade361bab">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
73 <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__socket_8c.html#a91c5884b47322592815c82427be3fac">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
74 |
74 |
75 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#76e6a915d0e40a23b863198b2aaa5545">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0)</td></tr> |
75 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__socket_8c.html#d2f4803f3a623c82a4c3e92d4e75e5a5">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> fd0)</td></tr> |
76 |
76 |
77 </table> |
77 </table> |
78 <hr><h2>Define Documentation</h2> |
78 <hr><h2>Define Documentation</h2> |
79 <a class="anchor" name="546620c7e758f003b24b7fdae4f97bd4"></a><!-- doxytag: member="can_socket.c::AF_CAN" ref="546620c7e758f003b24b7fdae4f97bd4" args="" --> |
79 <a class="anchor" name="4b444c39ffe73d7265a8fd1f9574359a"></a><!-- doxytag: member="can_socket.c::AF_CAN" ref="4b444c39ffe73d7265a8fd1f9574359a" args="" --> |
80 <div class="memitem"> |
80 <div class="memitem"> |
81 <div class="memproto"> |
81 <div class="memproto"> |
82 <table class="memname"> |
82 <table class="memname"> |
83 <tr> |
83 <tr> |
84 <td class="memname">#define AF_CAN PF_CAN </td> |
84 <td class="memname">#define AF_CAN PF_CAN </td> |
270 <p> |
270 <p> |
271 Referenced by <a class="el" href="can__socket_8c-source.html#l00150">canOpen_driver()</a>. |
271 Referenced by <a class="el" href="can__socket_8c-source.html#l00150">canOpen_driver()</a>. |
272 </div> |
272 </div> |
273 </div><p> |
273 </div><p> |
274 <hr><h2>Function Documentation</h2> |
274 <hr><h2>Function Documentation</h2> |
275 <a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_socket.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" --> |
275 <a class="anchor" name="d2f4803f3a623c82a4c3e92d4e75e5a5"></a><!-- doxytag: member="can_socket.c::canClose_driver" ref="d2f4803f3a623c82a4c3e92d4e75e5a5" args="(CAN_HANDLE fd0)" --> |
276 <div class="memitem"> |
276 <div class="memitem"> |
277 <div class="memproto"> |
277 <div class="memproto"> |
278 <table class="memname"> |
278 <table class="memname"> |
279 <tr> |
279 <tr> |
280 <td class="memname">int canClose_driver </td> |
280 <td class="memname">int canClose_driver </td> |
281 <td>(</td> |
281 <td>(</td> |
282 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
282 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
283 <td class="paramname"> <em>fd0</em> </td> |
283 <td class="paramname"> <em>fd0</em> </td> |
284 <td> ) </td> |
284 <td> ) </td> |
285 <td width="100%"></td> |
285 <td width="100%"></td> |
286 </tr> |
286 </tr> |
287 </table> |
287 </table> |
294 Definition at line <a class="el" href="can__socket_8c-source.html#l00228">228</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
294 Definition at line <a class="el" href="can__socket_8c-source.html#l00228">228</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
295 <p> |
295 <p> |
296 References <a class="el" href="can__socket_8c-source.html#l00052">CAN_CLOSE</a>. |
296 References <a class="el" href="can__socket_8c-source.html#l00052">CAN_CLOSE</a>. |
297 </div> |
297 </div> |
298 </div><p> |
298 </div><p> |
299 <a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_socket.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" --> |
299 <a class="anchor" name="a91c5884b47322592815c82427be3fac"></a><!-- doxytag: member="can_socket.c::canOpen_driver" ref="a91c5884b47322592815c82427be3fac" args="(s_BOARD *board)" --> |
300 <div class="memitem"> |
300 <div class="memitem"> |
301 <div class="memproto"> |
301 <div class="memproto"> |
302 <table class="memname"> |
302 <table class="memname"> |
303 <tr> |
303 <tr> |
304 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td> |
304 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> canOpen_driver </td> |
305 <td>(</td> |
305 <td>(</td> |
306 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
306 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
307 <td class="paramname"> <em>board</em> </td> |
307 <td class="paramname"> <em>board</em> </td> |
308 <td> ) </td> |
308 <td> ) </td> |
309 <td width="100%"></td> |
309 <td width="100%"></td> |
318 Definition at line <a class="el" href="can__socket_8c-source.html#l00150">150</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
318 Definition at line <a class="el" href="can__socket_8c-source.html#l00150">150</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
319 <p> |
319 <p> |
320 References <a class="el" href="can__socket_8c-source.html#l00048">AF_CAN</a>, <a class="el" href="can__driver_8h-source.html#l00035">struct_s_BOARD::baudrate</a>, <a class="el" href="can__driver_8h-source.html#l00034">struct_s_BOARD::busname</a>, <a class="el" href="can__socket_8c-source.html#l00055">CAN_BIND</a>, <a class="el" href="can__socket_8c-source.html#l00052">CAN_CLOSE</a>, <a class="el" href="can__socket_8c-source.html#l00057">CAN_ERRNO</a>, <a class="el" href="can__socket_8c-source.html#l00050">CAN_IFNAME</a>, <a class="el" href="can__socket_8c-source.html#l00056">CAN_IOCTL</a>, <a class="el" href="can__socket_8c-source.html#l00051">CAN_SOCKET</a>, and <a class="el" href="can__socket_8c-source.html#l00047">PF_CAN</a>. |
320 References <a class="el" href="can__socket_8c-source.html#l00048">AF_CAN</a>, <a class="el" href="can__driver_8h-source.html#l00035">struct_s_BOARD::baudrate</a>, <a class="el" href="can__driver_8h-source.html#l00034">struct_s_BOARD::busname</a>, <a class="el" href="can__socket_8c-source.html#l00055">CAN_BIND</a>, <a class="el" href="can__socket_8c-source.html#l00052">CAN_CLOSE</a>, <a class="el" href="can__socket_8c-source.html#l00057">CAN_ERRNO</a>, <a class="el" href="can__socket_8c-source.html#l00050">CAN_IFNAME</a>, <a class="el" href="can__socket_8c-source.html#l00056">CAN_IOCTL</a>, <a class="el" href="can__socket_8c-source.html#l00051">CAN_SOCKET</a>, and <a class="el" href="can__socket_8c-source.html#l00047">PF_CAN</a>. |
321 </div> |
321 </div> |
322 </div><p> |
322 </div><p> |
323 <a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_socket.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" --> |
323 <a class="anchor" name="b0b7065be05f6d53009b7bd46626e2c0"></a><!-- doxytag: member="can_socket.c::canReceive_driver" ref="b0b7065be05f6d53009b7bd46626e2c0" args="(CAN_HANDLE fd0, Message *m)" --> |
324 <div class="memitem"> |
324 <div class="memitem"> |
325 <div class="memproto"> |
325 <div class="memproto"> |
326 <table class="memname"> |
326 <table class="memname"> |
327 <tr> |
327 <tr> |
328 <td class="memname">UNS8 canReceive_driver </td> |
328 <td class="memname">UNS8 canReceive_driver </td> |
329 <td>(</td> |
329 <td>(</td> |
330 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
330 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
331 <td class="paramname"> <em>fd0</em>, </td> |
331 <td class="paramname"> <em>fd0</em>, </td> |
332 </tr> |
332 </tr> |
333 <tr> |
333 <tr> |
334 <td class="paramkey"></td> |
334 <td class="paramkey"></td> |
335 <td></td> |
335 <td></td> |
351 Definition at line <a class="el" href="can__socket_8c-source.html#l00064">64</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
351 Definition at line <a class="el" href="can__socket_8c-source.html#l00064">64</a> of file <a class="el" href="can__socket_8c-source.html">can_socket.c</a>. |
352 <p> |
352 <p> |
353 References <a class="el" href="can__socket_8c-source.html#l00057">CAN_ERRNO</a>, <a class="el" href="can__socket_8c-source.html#l00053">CAN_RECV</a>, <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_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
353 References <a class="el" href="can__socket_8c-source.html#l00057">CAN_ERRNO</a>, <a class="el" href="can__socket_8c-source.html#l00053">CAN_RECV</a>, <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_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
354 </div> |
354 </div> |
355 </div><p> |
355 </div><p> |
356 <a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_socket.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" --> |
356 <a class="anchor" name="36327c9e0ec6d284b346963a321e3c2b"></a><!-- doxytag: member="can_socket.c::canSend_driver" ref="36327c9e0ec6d284b346963a321e3c2b" args="(CAN_HANDLE fd0, Message *m)" --> |
357 <div class="memitem"> |
357 <div class="memitem"> |
358 <div class="memproto"> |
358 <div class="memproto"> |
359 <table class="memname"> |
359 <table class="memname"> |
360 <tr> |
360 <tr> |
361 <td class="memname">UNS8 canSend_driver </td> |
361 <td class="memname">UNS8 canSend_driver </td> |
362 <td>(</td> |
362 <td>(</td> |
363 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
363 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
364 <td class="paramname"> <em>fd0</em>, </td> |
364 <td class="paramname"> <em>fd0</em>, </td> |
365 </tr> |
365 </tr> |
366 <tr> |
366 <tr> |
367 <td class="paramkey"></td> |
367 <td class="paramkey"></td> |
368 <td></td> |
368 <td></td> |