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: /home/epimerde/documents/tc11/CanFestival-3/drivers/can_peak_linux/can_peak_linux.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="namespaces.html"><span>Namespaces</span></a></li> |
|
12 <li><a href="annotated.html"><span>Data Structures</span></a></li> |
|
13 <li id="current"><a href="files.html"><span>Files</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 <h1>/home/epimerde/documents/tc11/CanFestival-3/drivers/can_peak_linux/can_peak_linux.c File Reference</h1><code>#include <stdio.h></code><br> |
|
21 <code>#include <string.h></code><br> |
|
22 <code>#include <errno.h></code><br> |
|
23 <code>#include <fcntl.h></code><br> |
|
24 <code>#include "libpcan.h"</code><br> |
|
25 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
|
26 |
|
27 <p> |
|
28 <a href="can__peak__linux_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
29 <tr><td></td></tr> |
|
30 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
|
31 <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> |
|
32 |
|
33 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
34 <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> |
|
35 |
|
36 <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> |
|
37 |
|
38 <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 *optarg)</td></tr> |
|
39 |
|
40 <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> |
|
41 |
|
42 <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> |
|
43 |
|
44 </table> |
|
45 <hr><h2>Define Documentation</h2> |
|
46 <a class="anchor" name="44ef8a15c3be0d9b410c0c21709a12c2"></a><!-- doxytag: member="can_peak_linux.c::CAN_INIT_TYPE_ST_RTR" ref="44ef8a15c3be0d9b410c0c21709a12c2" args="" --> |
|
47 <div class="memitem"> |
|
48 <div class="memproto"> |
|
49 <table class="memname"> |
|
50 <tr> |
|
51 <td class="memname">#define CAN_INIT_TYPE_ST_RTR MSGTYPE_STANDARD | MSGTYPE_RTR </td> |
|
52 </tr> |
|
53 </table> |
|
54 </div> |
|
55 <div class="memdoc"> |
|
56 |
|
57 <p> |
|
58 |
|
59 <p> |
|
60 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00037">37</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
|
61 </div> |
|
62 </div><p> |
|
63 <hr><h2>Function Documentation</h2> |
|
64 <a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_peak_linux.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" --> |
|
65 <div class="memitem"> |
|
66 <div class="memproto"> |
|
67 <table class="memname"> |
|
68 <tr> |
|
69 <td class="memname">int canClose_driver </td> |
|
70 <td>(</td> |
|
71 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
72 <td class="paramname"> <em>fd0</em> </td> |
|
73 <td> ) </td> |
|
74 <td width="100%"></td> |
|
75 </tr> |
|
76 </table> |
|
77 </div> |
|
78 <div class="memdoc"> |
|
79 |
|
80 <p> |
|
81 |
|
82 <p> |
|
83 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>. |
|
84 </div> |
|
85 </div><p> |
|
86 <a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_peak_linux.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" --> |
|
87 <div class="memitem"> |
|
88 <div class="memproto"> |
|
89 <table class="memname"> |
|
90 <tr> |
|
91 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td> |
|
92 <td>(</td> |
|
93 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
|
94 <td class="paramname"> <em>board</em> </td> |
|
95 <td> ) </td> |
|
96 <td width="100%"></td> |
|
97 </tr> |
|
98 </table> |
|
99 </div> |
|
100 <div class="memdoc"> |
|
101 |
|
102 <p> |
|
103 |
|
104 <p> |
|
105 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>. |
|
106 <p> |
|
107 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>. |
|
108 </div> |
|
109 </div><p> |
|
110 <a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_peak_linux.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" --> |
|
111 <div class="memitem"> |
|
112 <div class="memproto"> |
|
113 <table class="memname"> |
|
114 <tr> |
|
115 <td class="memname">UNS8 canReceive_driver </td> |
|
116 <td>(</td> |
|
117 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
118 <td class="paramname"> <em>fd0</em>, </td> |
|
119 </tr> |
|
120 <tr> |
|
121 <td class="paramkey"></td> |
|
122 <td></td> |
|
123 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
124 <td class="paramname"> <em>m</em></td><td> </td> |
|
125 </tr> |
|
126 <tr> |
|
127 <td></td> |
|
128 <td>)</td> |
|
129 <td></td><td></td><td width="100%"></td> |
|
130 </tr> |
|
131 </table> |
|
132 </div> |
|
133 <div class="memdoc"> |
|
134 |
|
135 <p> |
|
136 |
|
137 <p> |
|
138 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>. |
|
139 <p> |
|
140 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>. |
|
141 </div> |
|
142 </div><p> |
|
143 <a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_peak_linux.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" --> |
|
144 <div class="memitem"> |
|
145 <div class="memproto"> |
|
146 <table class="memname"> |
|
147 <tr> |
|
148 <td class="memname">UNS8 canSend_driver </td> |
|
149 <td>(</td> |
|
150 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
151 <td class="paramname"> <em>fd0</em>, </td> |
|
152 </tr> |
|
153 <tr> |
|
154 <td class="paramkey"></td> |
|
155 <td></td> |
|
156 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
157 <td class="paramname"> <em>m</em></td><td> </td> |
|
158 </tr> |
|
159 <tr> |
|
160 <td></td> |
|
161 <td>)</td> |
|
162 <td></td><td></td><td width="100%"></td> |
|
163 </tr> |
|
164 </table> |
|
165 </div> |
|
166 <div class="memdoc"> |
|
167 |
|
168 <p> |
|
169 |
|
170 <p> |
|
171 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>. |
|
172 <p> |
|
173 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>. |
|
174 </div> |
|
175 </div><p> |
|
176 <a class="anchor" name="6820d7fa32e6e79d432c6003e4c15c32"></a><!-- doxytag: member="can_peak_linux.c::TranslateBaudeRate" ref="6820d7fa32e6e79d432c6003e4c15c32" args="(char *optarg)" --> |
|
177 <div class="memitem"> |
|
178 <div class="memproto"> |
|
179 <table class="memname"> |
|
180 <tr> |
|
181 <td class="memname">int TranslateBaudeRate </td> |
|
182 <td>(</td> |
|
183 <td class="paramtype">char * </td> |
|
184 <td class="paramname"> <em>optarg</em> </td> |
|
185 <td> ) </td> |
|
186 <td width="100%"></td> |
|
187 </tr> |
|
188 </table> |
|
189 </div> |
|
190 <div class="memdoc"> |
|
191 |
|
192 <p> |
|
193 |
|
194 <p> |
|
195 Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00089">89</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>. |
|
196 </div> |
|
197 </div><p> |
|
198 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by |
|
199 <a href="http://www.doxygen.org/index.html"> |
|
200 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
201 </body> |
|
202 </html> |
|