|
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_peak_win32/can_peak_win32.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_d58fb241e647de6212c31ecccf9cbace.html">drivers</a> » <a class="el" href="dir_cd779dce9851c080a65607e200b2368c.html">can_peak_win32</a></div> |
|
22 <h1>can_peak_win32.c File Reference</h1><code>#include <stdio.h></code><br> |
|
23 <code>#include <string.h></code><br> |
|
24 <code>#include <errno.h></code><br> |
|
25 <code>#include <fcntl.h></code><br> |
|
26 <code>#include "cancfg.h"</code><br> |
|
27 <code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br> |
|
28 |
|
29 <p> |
|
30 Include dependency graph for can_peak_win32.c:<p><center><img src="can__peak__win32_8c__incl.png" border="0" usemap="#drivers/can_peak_win32/can_peak_win32.c_map" alt=""></center> |
|
31 <map name="drivers/can_peak_win32/can_peak_win32.c_map"> |
|
32 <area href="can__driver_8h.html" shape="rect" coords="365,56,469,80" alt=""> |
|
33 <area href="win32_2applicfg_8h.html" shape="rect" coords="625,83,713,107" alt=""> |
|
34 <area href="can_8h.html" shape="rect" coords="517,107,576,131" alt=""> |
|
35 </map> |
|
36 |
|
37 <p> |
|
38 <a href="can__peak__win32_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>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__win32_8c.html#6c15c0d426ae2e61f69f3119d3fe486b">extra_PCAN_init_params</a></td></tr> |
|
42 |
|
43 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_8c.html#44ef8a15c3be0d9b410c0c21709a12c2">CAN_INIT_TYPE_ST_RTR</a> MSGTYPE_STANDARD | MSGTYPE_RTR</td></tr> |
|
44 |
|
45 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
|
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_8c.html#6820d7fa32e6e79d432c6003e4c15c32">TranslateBaudeRate</a> (char *<a class="el" href="TestMasterMicroMod_2getopt_8h.html#db50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a>)</td></tr> |
|
47 |
|
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_8c.html#9f623ce2d3a68e90dfdb1ff0d54a9b57">canInit</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
|
49 |
|
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_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> |
|
51 |
|
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_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 |
|
54 <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__win32_8c.html#945403aba7f36acbd2e7160ade361bab">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr> |
|
55 |
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__win32_8c.html#76e6a915d0e40a23b863198b2aaa5545">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0)</td></tr> |
|
57 |
|
58 </table> |
|
59 <hr><h2>Define Documentation</h2> |
|
60 <a class="anchor" name="44ef8a15c3be0d9b410c0c21709a12c2"></a><!-- doxytag: member="can_peak_win32.c::CAN_INIT_TYPE_ST_RTR" ref="44ef8a15c3be0d9b410c0c21709a12c2" args="" --> |
|
61 <div class="memitem"> |
|
62 <div class="memproto"> |
|
63 <table class="memname"> |
|
64 <tr> |
|
65 <td class="memname">#define CAN_INIT_TYPE_ST_RTR MSGTYPE_STANDARD | MSGTYPE_RTR </td> |
|
66 </tr> |
|
67 </table> |
|
68 </div> |
|
69 <div class="memdoc"> |
|
70 |
|
71 <p> |
|
72 |
|
73 <p> |
|
74 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00052">52</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
75 </div> |
|
76 </div><p> |
|
77 <a class="anchor" name="6c15c0d426ae2e61f69f3119d3fe486b"></a><!-- doxytag: member="can_peak_win32.c::extra_PCAN_init_params" ref="6c15c0d426ae2e61f69f3119d3fe486b" args="" --> |
|
78 <div class="memitem"> |
|
79 <div class="memproto"> |
|
80 <table class="memname"> |
|
81 <tr> |
|
82 <td class="memname">#define extra_PCAN_init_params </td> |
|
83 </tr> |
|
84 </table> |
|
85 </div> |
|
86 <div class="memdoc"> |
|
87 |
|
88 <p> |
|
89 |
|
90 <p> |
|
91 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00036">36</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
92 <p> |
|
93 Referenced by <a class="el" href="can__peak__win32_8c-source.html#l00070">canInit()</a>. |
|
94 </div> |
|
95 </div><p> |
|
96 <hr><h2>Function Documentation</h2> |
|
97 <a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_peak_win32.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" --> |
|
98 <div class="memitem"> |
|
99 <div class="memproto"> |
|
100 <table class="memname"> |
|
101 <tr> |
|
102 <td class="memname">int canClose_driver </td> |
|
103 <td>(</td> |
|
104 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
105 <td class="paramname"> <em>fd0</em> </td> |
|
106 <td> ) </td> |
|
107 <td width="100%"></td> |
|
108 </tr> |
|
109 </table> |
|
110 </div> |
|
111 <div class="memdoc"> |
|
112 |
|
113 <p> |
|
114 |
|
115 <p> |
|
116 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00237">237</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
117 </div> |
|
118 </div><p> |
|
119 <a class="anchor" name="9f623ce2d3a68e90dfdb1ff0d54a9b57"></a><!-- doxytag: member="can_peak_win32.c::canInit" ref="9f623ce2d3a68e90dfdb1ff0d54a9b57" args="(s_BOARD *board)" --> |
|
120 <div class="memitem"> |
|
121 <div class="memproto"> |
|
122 <table class="memname"> |
|
123 <tr> |
|
124 <td class="memname">void canInit </td> |
|
125 <td>(</td> |
|
126 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
|
127 <td class="paramname"> <em>board</em> </td> |
|
128 <td> ) </td> |
|
129 <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__win32_8c-source.html#l00070">70</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
139 <p> |
|
140 References <a class="el" href="can__driver_8h-source.html#l00035">struct_s_BOARD::baudrate</a>, <a class="el" href="can__peak__win32_8c-source.html#l00036">extra_PCAN_init_params</a>, and <a class="el" href="can__peak__linux_8c-source.html#l00089">TranslateBaudeRate()</a>. |
|
141 <p> |
|
142 Referenced by <a class="el" href="can__peak__win32_8c-source.html#l00205">canOpen_driver()</a>, <a class="el" href="can__peak__win32_8c-source.html#l00089">canReceive_driver()</a>, <a class="el" href="can__peak__win32_8c-source.html#l00159">canSend_driver()</a>, and <a class="el" href="appli_8c-source.html#l00170">initSensor()</a>. |
|
143 <p> |
|
144 Here is the call graph for this function:<p><center><img src="can__peak__win32_8c_9f623ce2d3a68e90dfdb1ff0d54a9b57_cgraph.png" border="0" usemap="#can__peak__win32_8c_9f623ce2d3a68e90dfdb1ff0d54a9b57_cgraph_map" alt=""></center> |
|
145 <map name="can__peak__win32_8c_9f623ce2d3a68e90dfdb1ff0d54a9b57_cgraph_map"> |
|
146 <area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="124,6,281,30" alt=""> |
|
147 </map> |
|
148 |
|
149 </div> |
|
150 </div><p> |
|
151 <a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_peak_win32.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" --> |
|
152 <div class="memitem"> |
|
153 <div class="memproto"> |
|
154 <table class="memname"> |
|
155 <tr> |
|
156 <td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td> |
|
157 <td>(</td> |
|
158 <td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td> |
|
159 <td class="paramname"> <em>board</em> </td> |
|
160 <td> ) </td> |
|
161 <td width="100%"></td> |
|
162 </tr> |
|
163 </table> |
|
164 </div> |
|
165 <div class="memdoc"> |
|
166 |
|
167 <p> |
|
168 |
|
169 <p> |
|
170 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00205">205</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
171 <p> |
|
172 References <a class="el" href="can__peak__win32_8c-source.html#l00070">canInit()</a>. |
|
173 <p> |
|
174 Here is the call graph for this function:<p><center><img src="can__peak__win32_8c_945403aba7f36acbd2e7160ade361bab_cgraph.png" border="0" usemap="#can__peak__win32_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map" alt=""></center> |
|
175 <map name="can__peak__win32_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map"> |
|
176 <area href="can__peak__win32_8c.html#9f623ce2d3a68e90dfdb1ff0d54a9b57" shape="rect" coords="186,6,252,30" alt=""> |
|
177 <area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="303,6,460,30" alt=""> |
|
178 </map> |
|
179 |
|
180 </div> |
|
181 </div><p> |
|
182 <a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_peak_win32.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" --> |
|
183 <div class="memitem"> |
|
184 <div class="memproto"> |
|
185 <table class="memname"> |
|
186 <tr> |
|
187 <td class="memname">UNS8 canReceive_driver </td> |
|
188 <td>(</td> |
|
189 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
190 <td class="paramname"> <em>fd0</em>, </td> |
|
191 </tr> |
|
192 <tr> |
|
193 <td class="paramkey"></td> |
|
194 <td></td> |
|
195 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
196 <td class="paramname"> <em>m</em></td><td> </td> |
|
197 </tr> |
|
198 <tr> |
|
199 <td></td> |
|
200 <td>)</td> |
|
201 <td></td><td></td><td width="100%"></td> |
|
202 </tr> |
|
203 </table> |
|
204 </div> |
|
205 <div class="memdoc"> |
|
206 |
|
207 <p> |
|
208 |
|
209 <p> |
|
210 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00089">89</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
211 <p> |
|
212 References <a class="el" href="can__peak__win32_8c-source.html#l00070">canInit()</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>, <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>. |
|
213 <p> |
|
214 Here is the call graph for this function:<p><center><img src="can__peak__win32_8c_6b3248e95acf2b08d1fd8b42610cc5a6_cgraph.png" border="0" usemap="#can__peak__win32_8c_6b3248e95acf2b08d1fd8b42610cc5a6_cgraph_map" alt=""></center> |
|
215 <map name="can__peak__win32_8c_6b3248e95acf2b08d1fd8b42610cc5a6_cgraph_map"> |
|
216 <area href="can__peak__win32_8c.html#9f623ce2d3a68e90dfdb1ff0d54a9b57" shape="rect" coords="202,6,268,30" alt=""> |
|
217 <area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="319,6,476,30" alt=""> |
|
218 </map> |
|
219 |
|
220 </div> |
|
221 </div><p> |
|
222 <a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_peak_win32.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" --> |
|
223 <div class="memitem"> |
|
224 <div class="memproto"> |
|
225 <table class="memname"> |
|
226 <tr> |
|
227 <td class="memname">UNS8 canSend_driver </td> |
|
228 <td>(</td> |
|
229 <td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td> |
|
230 <td class="paramname"> <em>fd0</em>, </td> |
|
231 </tr> |
|
232 <tr> |
|
233 <td class="paramkey"></td> |
|
234 <td></td> |
|
235 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
236 <td class="paramname"> <em>m</em></td><td> </td> |
|
237 </tr> |
|
238 <tr> |
|
239 <td></td> |
|
240 <td>)</td> |
|
241 <td></td><td></td><td width="100%"></td> |
|
242 </tr> |
|
243 </table> |
|
244 </div> |
|
245 <div class="memdoc"> |
|
246 |
|
247 <p> |
|
248 |
|
249 <p> |
|
250 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00159">159</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
251 <p> |
|
252 References <a class="el" href="can__peak__linux_8c-source.html#l00037">CAN_INIT_TYPE_ST_RTR</a>, <a class="el" href="can__peak__win32_8c-source.html#l00070">canInit()</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>, <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>. |
|
253 <p> |
|
254 Here is the call graph for this function:<p><center><img src="can__peak__win32_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph.png" border="0" usemap="#can__peak__win32_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph_map" alt=""></center> |
|
255 <map name="can__peak__win32_8c_def95aee49efa13dd047d0b3b5507ad3_cgraph_map"> |
|
256 <area href="can__peak__win32_8c.html#9f623ce2d3a68e90dfdb1ff0d54a9b57" shape="rect" coords="183,6,249,30" alt=""> |
|
257 <area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="300,6,457,30" alt=""> |
|
258 </map> |
|
259 |
|
260 </div> |
|
261 </div><p> |
|
262 <a class="anchor" name="6820d7fa32e6e79d432c6003e4c15c32"></a><!-- doxytag: member="can_peak_win32.c::TranslateBaudeRate" ref="6820d7fa32e6e79d432c6003e4c15c32" args="(char *optarg)" --> |
|
263 <div class="memitem"> |
|
264 <div class="memproto"> |
|
265 <table class="memname"> |
|
266 <tr> |
|
267 <td class="memname">int TranslateBaudeRate </td> |
|
268 <td>(</td> |
|
269 <td class="paramtype">char * </td> |
|
270 <td class="paramname"> <em>optarg</em> </td> |
|
271 <td> ) </td> |
|
272 <td width="100%"></td> |
|
273 </tr> |
|
274 </table> |
|
275 </div> |
|
276 <div class="memdoc"> |
|
277 |
|
278 <p> |
|
279 |
|
280 <p> |
|
281 Definition at line <a class="el" href="can__peak__win32_8c-source.html#l00055">55</a> of file <a class="el" href="can__peak__win32_8c-source.html">can_peak_win32.c</a>. |
|
282 </div> |
|
283 </div><p> |
|
284 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:40 2007 for CanFestival by |
|
285 <a href="http://www.doxygen.org/index.html"> |
|
286 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
287 </body> |
|
288 </html> |