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_99c3ac25e5cd4387d44a6b6f620347a9.html">can_peak_linux</a></div> |
21 <a class="el" href="dir_65dd258ff9b9ef4cd7bd0d22f5e58dba.html">drivers</a> » <a class="el" href="dir_dac1b16a9f4caf1e9f0ce0f4cf1709cf.html">can_peak_linux</a></div> |
22 <h1>can_peak_linux.c File Reference</h1><code>#include <stdio.h></code><br> |
22 <h1>can_peak_linux.c File Reference</h1><code>#include <stdio.h></code><br> |
23 <code>#include <string.h></code><br> |
23 <code>#include <string.h></code><br> |
24 <code>#include <errno.h></code><br> |
24 <code>#include <errno.h></code><br> |
25 <code>#include <fcntl.h></code><br> |
25 <code>#include <fcntl.h></code><br> |
26 <code>#include "libpcan.h"</code><br> |
26 <code>#include "libpcan.h"</code><br> |
27 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
27 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
28 |
28 |
29 <p> |
29 <p> |
30 Include dependency graph for can_peak_linux.c:<p><center><img src="can__peak__linux_8c__incl.png" border="0" usemap="#drivers/can_peak_linux/can_peak_linux.c_map" alt=""></center> |
30 Include dependency graph for can_peak_linux.c:<p><center><img src="can__peak__linux_8c__incl.png" border="0" usemap="#drivers/can_peak_linux/can_peak_linux.c_map" alt=""></center> |
31 <map name="drivers/can_peak_linux/can_peak_linux.c_map"> |
31 <map name="drivers/can_peak_linux/can_peak_linux.c_map"> |
32 <area href="can__driver_8h.html" shape="rect" coords="352,56,456,80" alt=""> |
32 <area href="can__driver_8h.html" shape="rect" coords="299,53,387,80" alt=""> |
33 <area href="win32_2applicfg_8h.html" shape="rect" coords="612,83,700,107" alt=""> |
33 <area href="win32_2applicfg_8h.html" shape="rect" coords="533,79,608,105" alt=""> |
34 <area href="can_8h.html" shape="rect" coords="504,107,563,131" alt=""> |
34 <area href="can_8h.html" shape="rect" coords="436,104,484,131" alt=""> |
35 </map> |
35 </map> |
36 |
36 |
37 <p> |
37 <p> |
38 <a href="can__peak__linux_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
38 <a href="can__peak__linux_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>Defines</h2></td></tr> |
40 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#44ef8a15c3be0d9b410c0c21709a12c2">CAN_INIT_TYPE_ST_RTR</a> MSGTYPE_STANDARD | MSGTYPE_RTR</td></tr> |
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#3682c04219b007e9a4bd0894b1ad9dcb">CAN_INIT_TYPE_ST_RTR</a> MSGTYPE_STANDARD | MSGTYPE_RTR</td></tr> |
42 |
42 |
43 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
43 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_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> |
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_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> |
45 |
45 |
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_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> |
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_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> |
47 |
47 |
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32">TranslateBaudeRate</a> (char *<a class="el" href="TestMasterMicroMod_2getopt_8h.html#db50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a>)</td></tr> |
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#1c65c88802a2cbd96ea05284860c5ba4">TranslateBaudeRate</a> (char *<a class="el" href="TestMasterMicroMod_2getopt_8h.html#a2d33a77952a7e6973146c1284042818">optarg</a>)</td></tr> |
49 |
49 |
50 <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__peak__linux_8c.html#945403aba7f36acbd2e7160ade361bab">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
50 <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__peak__linux_8c.html#a91c5884b47322592815c82427be3fac">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
51 |
51 |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#76e6a915d0e40a23b863198b2aaa5545">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0)</td></tr> |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#d2f4803f3a623c82a4c3e92d4e75e5a5">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> fd0)</td></tr> |
53 |
53 |
54 </table> |
54 </table> |
55 <hr><h2>Define Documentation</h2> |
55 <hr><h2>Define Documentation</h2> |
56 <a class="anchor" name="44ef8a15c3be0d9b410c0c21709a12c2"></a><!-- doxytag: member="can_peak_linux.c::CAN_INIT_TYPE_ST_RTR" ref="44ef8a15c3be0d9b410c0c21709a12c2" args="" --> |
56 <a class="anchor" name="3682c04219b007e9a4bd0894b1ad9dcb"></a><!-- doxytag: member="can_peak_linux.c::CAN_INIT_TYPE_ST_RTR" ref="3682c04219b007e9a4bd0894b1ad9dcb" args="" --> |
57 <div class="memitem"> |
57 <div class="memitem"> |
58 <div class="memproto"> |
58 <div class="memproto"> |
59 <table class="memname"> |
59 <table class="memname"> |
60 <tr> |
60 <tr> |
61 <td class="memname">#define CAN_INIT_TYPE_ST_RTR MSGTYPE_STANDARD | MSGTYPE_RTR </td> |
61 <td class="memname">#define CAN_INIT_TYPE_ST_RTR MSGTYPE_STANDARD | MSGTYPE_RTR </td> |
71 <p> |
71 <p> |
72 Referenced by <a class="el" href="can__peak__linux_8c-source.html#l00064">canSend_driver()</a>. |
72 Referenced by <a class="el" href="can__peak__linux_8c-source.html#l00064">canSend_driver()</a>. |
73 </div> |
73 </div> |
74 </div><p> |
74 </div><p> |
75 <hr><h2>Function Documentation</h2> |
75 <hr><h2>Function Documentation</h2> |
76 <a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_peak_linux.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" --> |
76 <a class="anchor" name="d2f4803f3a623c82a4c3e92d4e75e5a5"></a><!-- doxytag: member="can_peak_linux.c::canClose_driver" ref="d2f4803f3a623c82a4c3e92d4e75e5a5" args="(CAN_HANDLE fd0)" --> |
77 <div class="memitem"> |
77 <div class="memitem"> |
78 <div class="memproto"> |
78 <div class="memproto"> |
79 <table class="memname"> |
79 <table class="memname"> |
80 <tr> |
80 <tr> |
81 <td class="memname">int canClose_driver </td> |
81 <td class="memname">int canClose_driver </td> |
82 <td>(</td> |
82 <td>(</td> |
83 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
83 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
84 <td class="paramname"> <em>fd0</em> </td> |
84 <td class="paramname"> <em>fd0</em> </td> |
85 <td> ) </td> |
85 <td> ) </td> |
86 <td width="100%"></td> |
86 <td width="100%"></td> |
87 </tr> |
87 </tr> |
88 </table> |
88 </table> |
93 |
93 |
94 <p> |
94 <p> |
95 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00129">129</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
95 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00129">129</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
96 </div> |
96 </div> |
97 </div><p> |
97 </div><p> |
98 <a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_peak_linux.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" --> |
98 <a class="anchor" name="a91c5884b47322592815c82427be3fac"></a><!-- doxytag: member="can_peak_linux.c::canOpen_driver" ref="a91c5884b47322592815c82427be3fac" args="(s_BOARD *board)" --> |
99 <div class="memitem"> |
99 <div class="memitem"> |
100 <div class="memproto"> |
100 <div class="memproto"> |
101 <table class="memname"> |
101 <table class="memname"> |
102 <tr> |
102 <tr> |
103 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td> |
103 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> canOpen_driver </td> |
104 <td>(</td> |
104 <td>(</td> |
105 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
105 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
106 <td class="paramname"> <em>board</em> </td> |
106 <td class="paramname"> <em>board</em> </td> |
107 <td> ) </td> |
107 <td> ) </td> |
108 <td width="100%"></td> |
108 <td width="100%"></td> |
116 <p> |
116 <p> |
117 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00104">104</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
117 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00104">104</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
118 <p> |
118 <p> |
119 References <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>, and <a class="el" href="can__peak__linux_8c-source.html#l00089">TranslateBaudeRate()</a>. |
119 References <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>, and <a class="el" href="can__peak__linux_8c-source.html#l00089">TranslateBaudeRate()</a>. |
120 <p> |
120 <p> |
121 Here is the call graph for this function:<p><center><img src="can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph.png" border="0" usemap="#can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map" alt=""></center> |
121 Here is the call graph for this function:<p><center><img src="can__peak__linux_8c_a91c5884b47322592815c82427be3fac_cgraph.png" border="0" usemap="#can__peak__linux_8c_a91c5884b47322592815c82427be3fac_cgraph_map" alt=""></center> |
122 <map name="can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map"> |
122 <map name="can__peak__linux_8c_a91c5884b47322592815c82427be3fac_cgraph_map"> |
123 <area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="185,6,343,30" alt=""> |
123 <area href="can__peak__linux_8c.html#1c65c88802a2cbd96ea05284860c5ba4" shape="rect" coords="161,5,289,32" alt=""> |
124 </map> |
124 </map> |
125 |
125 |
126 </div> |
126 </div> |
127 </div><p> |
127 </div><p> |
128 <a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_peak_linux.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" --> |
128 <a class="anchor" name="b0b7065be05f6d53009b7bd46626e2c0"></a><!-- doxytag: member="can_peak_linux.c::canReceive_driver" ref="b0b7065be05f6d53009b7bd46626e2c0" args="(CAN_HANDLE fd0, Message *m)" --> |
129 <div class="memitem"> |
129 <div class="memitem"> |
130 <div class="memproto"> |
130 <div class="memproto"> |
131 <table class="memname"> |
131 <table class="memname"> |
132 <tr> |
132 <tr> |
133 <td class="memname">UNS8 canReceive_driver </td> |
133 <td class="memname">UNS8 canReceive_driver </td> |
134 <td>(</td> |
134 <td>(</td> |
135 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
135 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
136 <td class="paramname"> <em>fd0</em>, </td> |
136 <td class="paramname"> <em>fd0</em>, </td> |
137 </tr> |
137 </tr> |
138 <tr> |
138 <tr> |
139 <td class="paramkey"></td> |
139 <td class="paramkey"></td> |
140 <td></td> |
140 <td></td> |
156 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00040">40</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
156 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00040">40</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
157 <p> |
157 <p> |
158 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_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
158 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_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>. |
159 </div> |
159 </div> |
160 </div><p> |
160 </div><p> |
161 <a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_peak_linux.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" --> |
161 <a class="anchor" name="36327c9e0ec6d284b346963a321e3c2b"></a><!-- doxytag: member="can_peak_linux.c::canSend_driver" ref="36327c9e0ec6d284b346963a321e3c2b" args="(CAN_HANDLE fd0, Message *m)" --> |
162 <div class="memitem"> |
162 <div class="memitem"> |
163 <div class="memproto"> |
163 <div class="memproto"> |
164 <table class="memname"> |
164 <table class="memname"> |
165 <tr> |
165 <tr> |
166 <td class="memname">UNS8 canSend_driver </td> |
166 <td class="memname">UNS8 canSend_driver </td> |
167 <td>(</td> |
167 <td>(</td> |
168 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
168 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#324227f7b01d51ee83a883174769ac8f">CAN_HANDLE</a> </td> |
169 <td class="paramname"> <em>fd0</em>, </td> |
169 <td class="paramname"> <em>fd0</em>, </td> |
170 </tr> |
170 </tr> |
171 <tr> |
171 <tr> |
172 <td class="paramkey"></td> |
172 <td class="paramkey"></td> |
173 <td></td> |
173 <td></td> |
189 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00064">64</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
189 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00064">64</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
190 <p> |
190 <p> |
191 References <a class="el" href="can__peak__linux_8c-source.html#l00037">CAN_INIT_TYPE_ST_RTR</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="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
191 References <a class="el" href="can__peak__linux_8c-source.html#l00037">CAN_INIT_TYPE_ST_RTR</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="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
192 </div> |
192 </div> |
193 </div><p> |
193 </div><p> |
194 <a class="anchor" name="6820d7fa32e6e79d432c6003e4c15c32"></a><!-- doxytag: member="can_peak_linux.c::TranslateBaudeRate" ref="6820d7fa32e6e79d432c6003e4c15c32" args="(char *optarg)" --> |
194 <a class="anchor" name="1c65c88802a2cbd96ea05284860c5ba4"></a><!-- doxytag: member="can_peak_linux.c::TranslateBaudeRate" ref="1c65c88802a2cbd96ea05284860c5ba4" args="(char *optarg)" --> |
195 <div class="memitem"> |
195 <div class="memitem"> |
196 <div class="memproto"> |
196 <div class="memproto"> |
197 <table class="memname"> |
197 <table class="memname"> |
198 <tr> |
198 <tr> |
199 <td class="memname">int TranslateBaudeRate </td> |
199 <td class="memname">int TranslateBaudeRate </td> |