|
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/hcs12/canOpenDriver.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/hcs12/canOpenDriver.c File Reference</h1><code>#include <stddef.h></code><br> |
|
21 <code>#include "../include/hcs12/asm-m68hc12/portsaccess.h"</code><br> |
|
22 <code>#include "../include/hcs12/asm-m68hc12/ports_def.h"</code><br> |
|
23 <code>#include "../include/hcs12/asm-m68hc12/ports.h"</code><br> |
|
24 <code>#include "../include/data.h"</code><br> |
|
25 <code>#include "../include/hcs12/applicfg.h"</code><br> |
|
26 <code>#include "../include/hcs12/candriver.h"</code><br> |
|
27 <code>#include "../include/hcs12/interrupt.h"</code><br> |
|
28 <code>#include "../include/hcs12/canOpenDriver.h"</code><br> |
|
29 <code>#include "../include/can.h"</code><br> |
|
30 <code>#include "../include/objdictdef.h"</code><br> |
|
31 <code>#include "../include/timer.h"</code><br> |
|
32 |
|
33 <p> |
|
34 <a href="canOpenDriver_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
35 <tr><td></td></tr> |
|
36 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
|
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#4f52c00ab0d519e2965ebaa533975904">DEBUG_WAR_CONSOLE_ON</a></td></tr> |
|
38 |
|
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#bb416887a32f7e4333e095356774f07f">DEBUG_ERR_CONSOLE_ON</a></td></tr> |
|
40 |
|
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#ffe776513b24d84b39af8ab0930fef7f">max</a>(a, b) a>b?a:b</td></tr> |
|
42 |
|
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="canOpenDriver_8c.html#0bf58f014d47581c9ffd1b2db9a858d7">f_can_receive</a> (UNS8 notused, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
|
45 |
|
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977">canSend</a> (UNS8 notused, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
|
47 |
|
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#445500277ba0e363873b34cffc015745">__attribute__</a> ((interrupt))</td></tr> |
|
49 |
|
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#24dbe63e88d184388542037d16a8208d">getElapsedTime</a> ()</td></tr> |
|
51 |
|
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#339b24f4eee897d3c45d88de9a4901e8">resetTimer</a> (void)</td></tr> |
|
53 |
|
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#02922529b60419a94afe8f369dda070b">initTimer</a> (void)</td></tr> |
|
55 |
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#f86db4b817c1a59a819cbdd51779bfaa">initSCI_0</a> (void)</td></tr> |
|
57 |
|
58 <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialisation of the serial port 0. <a href="#f86db4b817c1a59a819cbdd51779bfaa"></a><br></td></tr> |
|
59 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#b56fa1754706a57059103710178bdb68">initSCI_1</a> (void)</td></tr> |
|
60 |
|
61 <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialisation of the serial port 1. <a href="#b56fa1754706a57059103710178bdb68"></a><br></td></tr> |
|
62 <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#2a9aef0efc98c5b41ef97ef91ad403e5">hex_convert</a> (char *buf, unsigned long value, char lastCar)</td></tr> |
|
63 |
|
64 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#6e3075ae435e83aefc018e5218c197d0">printSCI_str</a> (char sci, const char *str)</td></tr> |
|
65 |
|
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#80f5dbbc046cba0e5e9cf2bcc4c1e78e">printSCI_nbr</a> (char sci, unsigned long nbr, char lastCar)</td></tr> |
|
67 |
|
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#51e71c727eb7a49e2fde962a3d190a6b">initPLL</a> (void)</td></tr> |
|
69 |
|
70 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#c71399958d35a7f703416f025603ee26">initHCS12</a> (void)</td></tr> |
|
71 |
|
72 <tr><td class="mdescLeft"> </td><td class="mdescRight">Put here all the code to init the HCS12. <a href="#c71399958d35a7f703416f025603ee26"></a><br></td></tr> |
|
73 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#acfd181d5b055d1403930442e28ac643">canAddIdToFilter</a> (UNS16 adrCAN, UNS8 nFilter, UNS16 id)</td></tr> |
|
74 |
|
75 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#751a41c9747b96ab400b5599370cea83">canChangeFilter</a> (UNS16 adrCAN, <a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> fi)</td></tr> |
|
76 |
|
77 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#5a53a89d2e348d70331e6ebe269d155a">canEnable</a> (UNS16 adrCAN)</td></tr> |
|
78 |
|
79 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#3c4f7a31d94e5e7c7322535467b806de">canInit</a> (UNS16 adrCAN, <a class="el" href="structcanBusInit.html">canBusInit</a> <a class="el" href="candriver_8h.html#c731fd3e22e0f2c414b1e3f511c85423">bi</a>)</td></tr> |
|
80 |
|
81 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#6ec3ce6d79012dd8a08fa5aeb6a0489f">canInitClock</a> (UNS16 adrCAN, <a class="el" href="structcanBusTime.html">canBusTime</a> clk)</td></tr> |
|
82 |
|
83 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#5fb549697afb7918607aa113e01c543d">canInit1Filter</a> (UNS16 adrCAN, UNS8 nFilter, UNS16 ar, UNS16 mr)</td></tr> |
|
84 |
|
85 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#b4502eef7616b25c74b1ac5a2245b085">canInitFilter</a> (UNS16 adrCAN, <a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> fi)</td></tr> |
|
86 |
|
87 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#0b98e4800c82d99981833aa4207f1eb9">canInitMode</a> (UNS16 adrCAN)</td></tr> |
|
88 |
|
89 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#00ffb46abacfdfa56ebc70e15164113e">canInitModeQ</a> (UNS16 adrCAN)</td></tr> |
|
90 |
|
91 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba">canMsgTransmit</a> (UNS16 adrCAN, <a class="el" href="structMessage.html">Message</a> msg)</td></tr> |
|
92 |
|
93 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#5ad8616a3276f7f40149b551f09aa6a1">canSetInterrupt</a> (UNS16 adrCAN)</td></tr> |
|
94 |
|
95 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#c7773223579ec7e0fab5238df214da89">canSleepMode</a> (UNS16 adrCAN)</td></tr> |
|
96 |
|
97 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#a89f28005eea54f5b216eb72a18d45f3">canSleepModeQ</a> (UNS16 adrCAN)</td></tr> |
|
98 |
|
99 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#1ae1ad5d66ac87085baf5b9d0a4e62ca">canSleepWupMode</a> (UNS16 adrCAN)</td></tr> |
|
100 |
|
101 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#6beefe951b3c9de786c585257488fa82">canTestInitMode</a> (UNS16 adrCAN)</td></tr> |
|
102 |
|
103 <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8c.html#fa79f2ac95a8143c2fb087260df39820">canTestSleepMode</a> (UNS16 adrCAN)</td></tr> |
|
104 |
|
105 </table> |
|
106 <hr><h2>Define Documentation</h2> |
|
107 <a class="anchor" name="bb416887a32f7e4333e095356774f07f"></a><!-- doxytag: member="canOpenDriver.c::DEBUG_ERR_CONSOLE_ON" ref="bb416887a32f7e4333e095356774f07f" args="" --> |
|
108 <div class="memitem"> |
|
109 <div class="memproto"> |
|
110 <table class="memname"> |
|
111 <tr> |
|
112 <td class="memname">#define DEBUG_ERR_CONSOLE_ON </td> |
|
113 </tr> |
|
114 </table> |
|
115 </div> |
|
116 <div class="memdoc"> |
|
117 |
|
118 <p> |
|
119 |
|
120 <p> |
|
121 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00024">24</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
122 </div> |
|
123 </div><p> |
|
124 <a class="anchor" name="4f52c00ab0d519e2965ebaa533975904"></a><!-- doxytag: member="canOpenDriver.c::DEBUG_WAR_CONSOLE_ON" ref="4f52c00ab0d519e2965ebaa533975904" args="" --> |
|
125 <div class="memitem"> |
|
126 <div class="memproto"> |
|
127 <table class="memname"> |
|
128 <tr> |
|
129 <td class="memname">#define DEBUG_WAR_CONSOLE_ON </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="canOpenDriver_8c-source.html#l00023">23</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
139 </div> |
|
140 </div><p> |
|
141 <a class="anchor" name="ffe776513b24d84b39af8ab0930fef7f"></a><!-- doxytag: member="canOpenDriver.c::max" ref="ffe776513b24d84b39af8ab0930fef7f" args="(a, b)" --> |
|
142 <div class="memitem"> |
|
143 <div class="memproto"> |
|
144 <table class="memname"> |
|
145 <tr> |
|
146 <td class="memname">#define max </td> |
|
147 <td>(</td> |
|
148 <td class="paramtype">a, <tr> |
|
149 <td class="paramkey"></td> |
|
150 <td></td> |
|
151 <td class="paramtype">b </td> |
|
152 <td class="paramname"> </td> |
|
153 <td> ) </td> |
|
154 <td width="100%"> a>b?a:b</td> |
|
155 </tr> |
|
156 </table> |
|
157 </div> |
|
158 <div class="memdoc"> |
|
159 |
|
160 <p> |
|
161 |
|
162 </div> |
|
163 </div><p> |
|
164 <hr><h2>Function Documentation</h2> |
|
165 <a class="anchor" name="445500277ba0e363873b34cffc015745"></a><!-- doxytag: member="canOpenDriver.c::__attribute__" ref="445500277ba0e363873b34cffc015745" args="((interrupt))" --> |
|
166 <div class="memitem"> |
|
167 <div class="memproto"> |
|
168 <table class="memname"> |
|
169 <tr> |
|
170 <td class="memname">void __attribute__ </td> |
|
171 <td>(</td> |
|
172 <td class="paramtype">(interrupt) </td> |
|
173 <td class="paramname"> </td> |
|
174 <td> ) </td> |
|
175 <td width="100%"></td> |
|
176 </tr> |
|
177 </table> |
|
178 </div> |
|
179 <div class="memdoc"> |
|
180 |
|
181 <p> |
|
182 <a class="el" href="structMessage.html">Message</a> transmitted on MSCAN 0 |
|
183 <p> |
|
184 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00054">54</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
185 <p> |
|
186 References <a class="el" href="portsaccess_8h-source.html#l00046">IO_PORTS_16</a>, and <a class="el" href="ports__def_8h-source.html#l00119">TC4H</a>. |
|
187 </div> |
|
188 </div><p> |
|
189 <a class="anchor" name="acfd181d5b055d1403930442e28ac643"></a><!-- doxytag: member="canOpenDriver.c::canAddIdToFilter" ref="acfd181d5b055d1403930442e28ac643" args="(UNS16 adrCAN, UNS8 nFilter, UNS16 id)" --> |
|
190 <div class="memitem"> |
|
191 <div class="memproto"> |
|
192 <table class="memname"> |
|
193 <tr> |
|
194 <td class="memname">char canAddIdToFilter </td> |
|
195 <td>(</td> |
|
196 <td class="paramtype">UNS16 </td> |
|
197 <td class="paramname"> <em>adrCAN</em>, </td> |
|
198 </tr> |
|
199 <tr> |
|
200 <td class="paramkey"></td> |
|
201 <td></td> |
|
202 <td class="paramtype">UNS8 </td> |
|
203 <td class="paramname"> <em>nFilter</em>, </td> |
|
204 </tr> |
|
205 <tr> |
|
206 <td class="paramkey"></td> |
|
207 <td></td> |
|
208 <td class="paramtype">UNS16 </td> |
|
209 <td class="paramname"> <em>id</em></td><td> </td> |
|
210 </tr> |
|
211 <tr> |
|
212 <td></td> |
|
213 <td>)</td> |
|
214 <td></td><td></td><td width="100%"></td> |
|
215 </tr> |
|
216 </table> |
|
217 </div> |
|
218 <div class="memdoc"> |
|
219 |
|
220 <p> |
|
221 |
|
222 <p> |
|
223 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00210">210</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
224 <p> |
|
225 References <a class="el" href="ports__def_8h-source.html#l00714">CANIDAR0</a>, <a class="el" href="ports__def_8h-source.html#l00716">CANIDAR2</a>, <a class="el" href="ports__def_8h-source.html#l00722">CANIDAR4</a>, <a class="el" href="ports__def_8h-source.html#l00724">CANIDAR6</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="portsaccess_8h-source.html#l00046">IO_PORTS_16</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
|
226 </div> |
|
227 </div><p> |
|
228 <a class="anchor" name="751a41c9747b96ab400b5599370cea83"></a><!-- doxytag: member="canOpenDriver.c::canChangeFilter" ref="751a41c9747b96ab400b5599370cea83" args="(UNS16 adrCAN, canBusFilterInit fi)" --> |
|
229 <div class="memitem"> |
|
230 <div class="memproto"> |
|
231 <table class="memname"> |
|
232 <tr> |
|
233 <td class="memname">char canChangeFilter </td> |
|
234 <td>(</td> |
|
235 <td class="paramtype">UNS16 </td> |
|
236 <td class="paramname"> <em>adrCAN</em>, </td> |
|
237 </tr> |
|
238 <tr> |
|
239 <td class="paramkey"></td> |
|
240 <td></td> |
|
241 <td class="paramtype"><a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> </td> |
|
242 <td class="paramname"> <em>fi</em></td><td> </td> |
|
243 </tr> |
|
244 <tr> |
|
245 <td></td> |
|
246 <td>)</td> |
|
247 <td></td><td></td><td width="100%"></td> |
|
248 </tr> |
|
249 </table> |
|
250 </div> |
|
251 <div class="memdoc"> |
|
252 |
|
253 <p> |
|
254 |
|
255 <p> |
|
256 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00250">250</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
257 <p> |
|
258 References <a class="el" href="canOpenDriver_8c-source.html#l00364">canInitFilter()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00392">canInitMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00401">canInitModeQ()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00445">canSetInterrupt()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00452">canSleepMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00466">canSleepModeQ()</a>, and <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>. |
|
259 </div> |
|
260 </div><p> |
|
261 <a class="anchor" name="5a53a89d2e348d70331e6ebe269d155a"></a><!-- doxytag: member="canOpenDriver.c::canEnable" ref="5a53a89d2e348d70331e6ebe269d155a" args="(UNS16 adrCAN)" --> |
|
262 <div class="memitem"> |
|
263 <div class="memproto"> |
|
264 <table class="memname"> |
|
265 <tr> |
|
266 <td class="memname">char canEnable </td> |
|
267 <td>(</td> |
|
268 <td class="paramtype">UNS16 </td> |
|
269 <td class="paramname"> <em>adrCAN</em> </td> |
|
270 <td> ) </td> |
|
271 <td width="100%"></td> |
|
272 </tr> |
|
273 </table> |
|
274 </div> |
|
275 <div class="memdoc"> |
|
276 |
|
277 <p> |
|
278 |
|
279 <p> |
|
280 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00266">266</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
281 <p> |
|
282 References <a class="el" href="ports__def_8h-source.html#l00705">CANCTL1</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
283 </div> |
|
284 </div><p> |
|
285 <a class="anchor" name="3c4f7a31d94e5e7c7322535467b806de"></a><!-- doxytag: member="canOpenDriver.c::canInit" ref="3c4f7a31d94e5e7c7322535467b806de" args="(UNS16 adrCAN, canBusInit bi)" --> |
|
286 <div class="memitem"> |
|
287 <div class="memproto"> |
|
288 <table class="memname"> |
|
289 <tr> |
|
290 <td class="memname">char canInit </td> |
|
291 <td>(</td> |
|
292 <td class="paramtype">UNS16 </td> |
|
293 <td class="paramname"> <em>adrCAN</em>, </td> |
|
294 </tr> |
|
295 <tr> |
|
296 <td class="paramkey"></td> |
|
297 <td></td> |
|
298 <td class="paramtype"><a class="el" href="structcanBusInit.html">canBusInit</a> </td> |
|
299 <td class="paramname"> <em>bi</em></td><td> </td> |
|
300 </tr> |
|
301 <tr> |
|
302 <td></td> |
|
303 <td>)</td> |
|
304 <td></td><td></td><td width="100%"></td> |
|
305 </tr> |
|
306 </table> |
|
307 </div> |
|
308 <div class="memdoc"> |
|
309 |
|
310 <p> |
|
311 |
|
312 <p> |
|
313 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00277">277</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
314 <p> |
|
315 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="ports__def_8h-source.html#l00705">CANCTL1</a>, <a class="el" href="candriver_8h-source.html#l00156">canBusInit::cane</a>, <a class="el" href="canOpenDriver_8c-source.html#l00266">canEnable()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00313">canInitClock()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00364">canInitFilter()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00392">canInitMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00401">canInitModeQ()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00445">canSetInterrupt()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00452">canSleepMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00466">canSleepModeQ()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="candriver_8h-source.html#l00162">canBusInit::clk</a>, <a class="el" href="candriver_8h-source.html#l00154">canBusInit::cswai</a>, <a class="el" href="candriver_8h-source.html#l00164">canBusInit::fi</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="candriver_8h-source.html#l00159">canBusInit::listen</a>, <a class="el" href="candriver_8h-source.html#l00158">canBusInit::loopb</a>, <a class="el" href="candriver_8h-source.html#l00155">canBusInit::time</a>, and <a class="el" href="candriver_8h-source.html#l00160">canBusInit::wupm</a>. |
|
316 </div> |
|
317 </div><p> |
|
318 <a class="anchor" name="5fb549697afb7918607aa113e01c543d"></a><!-- doxytag: member="canOpenDriver.c::canInit1Filter" ref="5fb549697afb7918607aa113e01c543d" args="(UNS16 adrCAN, UNS8 nFilter, UNS16 ar, UNS16 mr)" --> |
|
319 <div class="memitem"> |
|
320 <div class="memproto"> |
|
321 <table class="memname"> |
|
322 <tr> |
|
323 <td class="memname">char canInit1Filter </td> |
|
324 <td>(</td> |
|
325 <td class="paramtype">UNS16 </td> |
|
326 <td class="paramname"> <em>adrCAN</em>, </td> |
|
327 </tr> |
|
328 <tr> |
|
329 <td class="paramkey"></td> |
|
330 <td></td> |
|
331 <td class="paramtype">UNS8 </td> |
|
332 <td class="paramname"> <em>nFilter</em>, </td> |
|
333 </tr> |
|
334 <tr> |
|
335 <td class="paramkey"></td> |
|
336 <td></td> |
|
337 <td class="paramtype">UNS16 </td> |
|
338 <td class="paramname"> <em>ar</em>, </td> |
|
339 </tr> |
|
340 <tr> |
|
341 <td class="paramkey"></td> |
|
342 <td></td> |
|
343 <td class="paramtype">UNS16 </td> |
|
344 <td class="paramname"> <em>mr</em></td><td> </td> |
|
345 </tr> |
|
346 <tr> |
|
347 <td></td> |
|
348 <td>)</td> |
|
349 <td></td><td></td><td width="100%"></td> |
|
350 </tr> |
|
351 </table> |
|
352 </div> |
|
353 <div class="memdoc"> |
|
354 |
|
355 <p> |
|
356 |
|
357 <p> |
|
358 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00335">335</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
359 <p> |
|
360 References <a class="el" href="ports__def_8h-source.html#l00714">CANIDAR0</a>, <a class="el" href="ports__def_8h-source.html#l00716">CANIDAR2</a>, <a class="el" href="ports__def_8h-source.html#l00722">CANIDAR4</a>, <a class="el" href="ports__def_8h-source.html#l00724">CANIDAR6</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
|
361 </div> |
|
362 </div><p> |
|
363 <a class="anchor" name="6ec3ce6d79012dd8a08fa5aeb6a0489f"></a><!-- doxytag: member="canOpenDriver.c::canInitClock" ref="6ec3ce6d79012dd8a08fa5aeb6a0489f" args="(UNS16 adrCAN, canBusTime clk)" --> |
|
364 <div class="memitem"> |
|
365 <div class="memproto"> |
|
366 <table class="memname"> |
|
367 <tr> |
|
368 <td class="memname">char canInitClock </td> |
|
369 <td>(</td> |
|
370 <td class="paramtype">UNS16 </td> |
|
371 <td class="paramname"> <em>adrCAN</em>, </td> |
|
372 </tr> |
|
373 <tr> |
|
374 <td class="paramkey"></td> |
|
375 <td></td> |
|
376 <td class="paramtype"><a class="el" href="structcanBusTime.html">canBusTime</a> </td> |
|
377 <td class="paramname"> <em>clk</em></td><td> </td> |
|
378 </tr> |
|
379 <tr> |
|
380 <td></td> |
|
381 <td>)</td> |
|
382 <td></td><td></td><td width="100%"></td> |
|
383 </tr> |
|
384 </table> |
|
385 </div> |
|
386 <div class="memdoc"> |
|
387 |
|
388 <p> |
|
389 |
|
390 <p> |
|
391 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00313">313</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
392 <p> |
|
393 References <a class="el" href="candriver_8h-source.html#l00101">canBusTime::brp</a>, <a class="el" href="ports__def_8h-source.html#l00706">CANBTR0</a>, <a class="el" href="ports__def_8h-source.html#l00707">CANBTR1</a>, <a class="el" href="ports__def_8h-source.html#l00705">CANCTL1</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="candriver_8h-source.html#l00100">canBusTime::clksrc</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="candriver_8h-source.html#l00103">canBusTime::samp</a>, <a class="el" href="candriver_8h-source.html#l00102">canBusTime::sjw</a>, <a class="el" href="candriver_8h-source.html#l00105">canBusTime::tseg1</a>, and <a class="el" href="candriver_8h-source.html#l00104">canBusTime::tseg2</a>. |
|
394 </div> |
|
395 </div><p> |
|
396 <a class="anchor" name="b4502eef7616b25c74b1ac5a2245b085"></a><!-- doxytag: member="canOpenDriver.c::canInitFilter" ref="b4502eef7616b25c74b1ac5a2245b085" args="(UNS16 adrCAN, canBusFilterInit fi)" --> |
|
397 <div class="memitem"> |
|
398 <div class="memproto"> |
|
399 <table class="memname"> |
|
400 <tr> |
|
401 <td class="memname">char canInitFilter </td> |
|
402 <td>(</td> |
|
403 <td class="paramtype">UNS16 </td> |
|
404 <td class="paramname"> <em>adrCAN</em>, </td> |
|
405 </tr> |
|
406 <tr> |
|
407 <td class="paramkey"></td> |
|
408 <td></td> |
|
409 <td class="paramtype"><a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> </td> |
|
410 <td class="paramname"> <em>fi</em></td><td> </td> |
|
411 </tr> |
|
412 <tr> |
|
413 <td></td> |
|
414 <td>)</td> |
|
415 <td></td><td></td><td width="100%"></td> |
|
416 </tr> |
|
417 </table> |
|
418 </div> |
|
419 <div class="memdoc"> |
|
420 |
|
421 <p> |
|
422 |
|
423 <p> |
|
424 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00364">364</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
425 <p> |
|
426 References <a class="el" href="ports__def_8h-source.html#l00713">CANIDAC</a>, <a class="el" href="ports__def_8h-source.html#l00714">CANIDAR0</a>, <a class="el" href="candriver_8h-source.html#l00113">canBusFilterInit::canidar0</a>, <a class="el" href="ports__def_8h-source.html#l00715">CANIDAR1</a>, <a class="el" href="candriver_8h-source.html#l00115">canBusFilterInit::canidar1</a>, <a class="el" href="ports__def_8h-source.html#l00716">CANIDAR2</a>, <a class="el" href="candriver_8h-source.html#l00117">canBusFilterInit::canidar2</a>, <a class="el" href="ports__def_8h-source.html#l00717">CANIDAR3</a>, <a class="el" href="candriver_8h-source.html#l00119">canBusFilterInit::canidar3</a>, <a class="el" href="ports__def_8h-source.html#l00722">CANIDAR4</a>, <a class="el" href="candriver_8h-source.html#l00121">canBusFilterInit::canidar4</a>, <a class="el" href="ports__def_8h-source.html#l00723">CANIDAR5</a>, <a class="el" href="candriver_8h-source.html#l00123">canBusFilterInit::canidar5</a>, <a class="el" href="ports__def_8h-source.html#l00724">CANIDAR6</a>, <a class="el" href="candriver_8h-source.html#l00125">canBusFilterInit::canidar6</a>, <a class="el" href="ports__def_8h-source.html#l00725">CANIDAR7</a>, <a class="el" href="candriver_8h-source.html#l00127">canBusFilterInit::canidar7</a>, <a class="el" href="ports__def_8h-source.html#l00718">CANIDMR0</a>, <a class="el" href="candriver_8h-source.html#l00114">canBusFilterInit::canidmr0</a>, <a class="el" href="ports__def_8h-source.html#l00719">CANIDMR1</a>, <a class="el" href="candriver_8h-source.html#l00116">canBusFilterInit::canidmr1</a>, <a class="el" href="ports__def_8h-source.html#l00720">CANIDMR2</a>, <a class="el" href="candriver_8h-source.html#l00118">canBusFilterInit::canidmr2</a>, <a class="el" href="ports__def_8h-source.html#l00721">CANIDMR3</a>, <a class="el" href="candriver_8h-source.html#l00120">canBusFilterInit::canidmr3</a>, <a class="el" href="ports__def_8h-source.html#l00726">CANIDMR4</a>, <a class="el" href="candriver_8h-source.html#l00122">canBusFilterInit::canidmr4</a>, <a class="el" href="ports__def_8h-source.html#l00727">CANIDMR5</a>, <a class="el" href="candriver_8h-source.html#l00124">canBusFilterInit::canidmr5</a>, <a class="el" href="ports__def_8h-source.html#l00728">CANIDMR6</a>, <a class="el" href="candriver_8h-source.html#l00126">canBusFilterInit::canidmr6</a>, <a class="el" href="ports__def_8h-source.html#l00729">CANIDMR7</a>, <a class="el" href="candriver_8h-source.html#l00128">canBusFilterInit::canidmr7</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="candriver_8h-source.html#l00112">canBusFilterInit::idam</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>. |
|
427 </div> |
|
428 </div><p> |
|
429 <a class="anchor" name="0b98e4800c82d99981833aa4207f1eb9"></a><!-- doxytag: member="canOpenDriver.c::canInitMode" ref="0b98e4800c82d99981833aa4207f1eb9" args="(UNS16 adrCAN)" --> |
|
430 <div class="memitem"> |
|
431 <div class="memproto"> |
|
432 <table class="memname"> |
|
433 <tr> |
|
434 <td class="memname">char canInitMode </td> |
|
435 <td>(</td> |
|
436 <td class="paramtype">UNS16 </td> |
|
437 <td class="paramname"> <em>adrCAN</em> </td> |
|
438 <td> ) </td> |
|
439 <td width="100%"></td> |
|
440 </tr> |
|
441 </table> |
|
442 </div> |
|
443 <div class="memdoc"> |
|
444 |
|
445 <p> |
|
446 |
|
447 <p> |
|
448 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00392">392</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
449 <p> |
|
450 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
451 </div> |
|
452 </div><p> |
|
453 <a class="anchor" name="00ffb46abacfdfa56ebc70e15164113e"></a><!-- doxytag: member="canOpenDriver.c::canInitModeQ" ref="00ffb46abacfdfa56ebc70e15164113e" args="(UNS16 adrCAN)" --> |
|
454 <div class="memitem"> |
|
455 <div class="memproto"> |
|
456 <table class="memname"> |
|
457 <tr> |
|
458 <td class="memname">char canInitModeQ </td> |
|
459 <td>(</td> |
|
460 <td class="paramtype">UNS16 </td> |
|
461 <td class="paramname"> <em>adrCAN</em> </td> |
|
462 <td> ) </td> |
|
463 <td width="100%"></td> |
|
464 </tr> |
|
465 </table> |
|
466 </div> |
|
467 <div class="memdoc"> |
|
468 |
|
469 <p> |
|
470 |
|
471 <p> |
|
472 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00401">401</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
473 <p> |
|
474 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
475 </div> |
|
476 </div><p> |
|
477 <a class="anchor" name="2f2d1ed55cfd9d7f85883f8d70d318ba"></a><!-- doxytag: member="canOpenDriver.c::canMsgTransmit" ref="2f2d1ed55cfd9d7f85883f8d70d318ba" args="(UNS16 adrCAN, Message msg)" --> |
|
478 <div class="memitem"> |
|
479 <div class="memproto"> |
|
480 <table class="memname"> |
|
481 <tr> |
|
482 <td class="memname">char canMsgTransmit </td> |
|
483 <td>(</td> |
|
484 <td class="paramtype">UNS16 </td> |
|
485 <td class="paramname"> <em>adrCAN</em>, </td> |
|
486 </tr> |
|
487 <tr> |
|
488 <td class="paramkey"></td> |
|
489 <td></td> |
|
490 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> </td> |
|
491 <td class="paramname"> <em>msg</em></td><td> </td> |
|
492 </tr> |
|
493 <tr> |
|
494 <td></td> |
|
495 <td>)</td> |
|
496 <td></td><td></td><td width="100%"></td> |
|
497 </tr> |
|
498 </table> |
|
499 </div> |
|
500 <div class="memdoc"> |
|
501 |
|
502 <p> |
|
503 |
|
504 <p> |
|
505 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00410">410</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
506 <p> |
|
507 References <a class="el" href="ports__def_8h-source.html#l00712">CANTBSEL</a>, <a class="el" href="ports__def_8h-source.html#l00710">CANTFLG</a>, <a class="el" href="ports__def_8h-source.html#l00738">CANTRSDTA</a>, <a class="el" href="ports__def_8h-source.html#l00737">CANTRSID</a>, <a class="el" href="ports__def_8h-source.html#l00739">CANTRSLEN</a>, <a class="el" href="ports__def_8h-source.html#l00740">CANTRSPRI</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="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</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>. |
|
508 </div> |
|
509 </div><p> |
|
510 <a class="anchor" name="b57b4b3c000e9f61135175495e874977"></a><!-- doxytag: member="canOpenDriver.c::canSend" ref="b57b4b3c000e9f61135175495e874977" args="(UNS8 notused, Message *m)" --> |
|
511 <div class="memitem"> |
|
512 <div class="memproto"> |
|
513 <table class="memname"> |
|
514 <tr> |
|
515 <td class="memname">UNS8 canSend </td> |
|
516 <td>(</td> |
|
517 <td class="paramtype">UNS8 </td> |
|
518 <td class="paramname"> <em>notused</em>, </td> |
|
519 </tr> |
|
520 <tr> |
|
521 <td class="paramkey"></td> |
|
522 <td></td> |
|
523 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
524 <td class="paramname"> <em>m</em></td><td> </td> |
|
525 </tr> |
|
526 <tr> |
|
527 <td></td> |
|
528 <td>)</td> |
|
529 <td></td><td></td><td width="100%"></td> |
|
530 </tr> |
|
531 </table> |
|
532 </div> |
|
533 <div class="memdoc"> |
|
534 |
|
535 <p> |
|
536 |
|
537 <p> |
|
538 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00505">505</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
539 <p> |
|
540 References <a class="el" href="canOpenDriver_8c-source.html#l00410">canMsgTransmit()</a>, and <a class="el" href="candriver_8h-source.html#l00053">CANOPEN_LINE_NUMBER_USED</a>. |
|
541 </div> |
|
542 </div><p> |
|
543 <a class="anchor" name="5ad8616a3276f7f40149b551f09aa6a1"></a><!-- doxytag: member="canOpenDriver.c::canSetInterrupt" ref="5ad8616a3276f7f40149b551f09aa6a1" args="(UNS16 adrCAN)" --> |
|
544 <div class="memitem"> |
|
545 <div class="memproto"> |
|
546 <table class="memname"> |
|
547 <tr> |
|
548 <td class="memname">char canSetInterrupt </td> |
|
549 <td>(</td> |
|
550 <td class="paramtype">UNS16 </td> |
|
551 <td class="paramname"> <em>adrCAN</em> </td> |
|
552 <td> ) </td> |
|
553 <td width="100%"></td> |
|
554 </tr> |
|
555 </table> |
|
556 </div> |
|
557 <div class="memdoc"> |
|
558 |
|
559 <p> |
|
560 |
|
561 <p> |
|
562 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00445">445</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
563 <p> |
|
564 References <a class="el" href="ports__def_8h-source.html#l00709">CANRIER</a>, <a class="el" href="ports__def_8h-source.html#l00711">CANTIER</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
565 </div> |
|
566 </div><p> |
|
567 <a class="anchor" name="c7773223579ec7e0fab5238df214da89"></a><!-- doxytag: member="canOpenDriver.c::canSleepMode" ref="c7773223579ec7e0fab5238df214da89" args="(UNS16 adrCAN)" --> |
|
568 <div class="memitem"> |
|
569 <div class="memproto"> |
|
570 <table class="memname"> |
|
571 <tr> |
|
572 <td class="memname">char canSleepMode </td> |
|
573 <td>(</td> |
|
574 <td class="paramtype">UNS16 </td> |
|
575 <td class="paramname"> <em>adrCAN</em> </td> |
|
576 <td> ) </td> |
|
577 <td width="100%"></td> |
|
578 </tr> |
|
579 </table> |
|
580 </div> |
|
581 <div class="memdoc"> |
|
582 |
|
583 <p> |
|
584 |
|
585 <p> |
|
586 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00452">452</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
587 <p> |
|
588 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="canOpenDriver_8c-source.html#l00499">canTestSleepMode()</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
589 </div> |
|
590 </div><p> |
|
591 <a class="anchor" name="a89f28005eea54f5b216eb72a18d45f3"></a><!-- doxytag: member="canOpenDriver.c::canSleepModeQ" ref="a89f28005eea54f5b216eb72a18d45f3" args="(UNS16 adrCAN)" --> |
|
592 <div class="memitem"> |
|
593 <div class="memproto"> |
|
594 <table class="memname"> |
|
595 <tr> |
|
596 <td class="memname">char canSleepModeQ </td> |
|
597 <td>(</td> |
|
598 <td class="paramtype">UNS16 </td> |
|
599 <td class="paramname"> <em>adrCAN</em> </td> |
|
600 <td> ) </td> |
|
601 <td width="100%"></td> |
|
602 </tr> |
|
603 </table> |
|
604 </div> |
|
605 <div class="memdoc"> |
|
606 |
|
607 <p> |
|
608 |
|
609 <p> |
|
610 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00466">466</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
611 <p> |
|
612 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00499">canTestSleepMode()</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>. |
|
613 </div> |
|
614 </div><p> |
|
615 <a class="anchor" name="1ae1ad5d66ac87085baf5b9d0a4e62ca"></a><!-- doxytag: member="canOpenDriver.c::canSleepWupMode" ref="1ae1ad5d66ac87085baf5b9d0a4e62ca" args="(UNS16 adrCAN)" --> |
|
616 <div class="memitem"> |
|
617 <div class="memproto"> |
|
618 <table class="memname"> |
|
619 <tr> |
|
620 <td class="memname">char canSleepWupMode </td> |
|
621 <td>(</td> |
|
622 <td class="paramtype">UNS16 </td> |
|
623 <td class="paramname"> <em>adrCAN</em> </td> |
|
624 <td> ) </td> |
|
625 <td width="100%"></td> |
|
626 </tr> |
|
627 </table> |
|
628 </div> |
|
629 <div class="memdoc"> |
|
630 |
|
631 <p> |
|
632 |
|
633 <p> |
|
634 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00480">480</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
635 <p> |
|
636 References <a class="el" href="ports__def_8h-source.html#l00704">CANCTL0</a>, <a class="el" href="canOpenDriver_8c-source.html#l00493">canTestInitMode()</a>, <a class="el" href="canOpenDriver_8c-source.html#l00499">canTestSleepMode()</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>. |
|
637 </div> |
|
638 </div><p> |
|
639 <a class="anchor" name="6beefe951b3c9de786c585257488fa82"></a><!-- doxytag: member="canOpenDriver.c::canTestInitMode" ref="6beefe951b3c9de786c585257488fa82" args="(UNS16 adrCAN)" --> |
|
640 <div class="memitem"> |
|
641 <div class="memproto"> |
|
642 <table class="memname"> |
|
643 <tr> |
|
644 <td class="memname">char canTestInitMode </td> |
|
645 <td>(</td> |
|
646 <td class="paramtype">UNS16 </td> |
|
647 <td class="paramname"> <em>adrCAN</em> </td> |
|
648 <td> ) </td> |
|
649 <td width="100%"></td> |
|
650 </tr> |
|
651 </table> |
|
652 </div> |
|
653 <div class="memdoc"> |
|
654 |
|
655 <p> |
|
656 |
|
657 <p> |
|
658 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00493">493</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
659 <p> |
|
660 References <a class="el" href="ports__def_8h-source.html#l00705">CANCTL1</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
661 </div> |
|
662 </div><p> |
|
663 <a class="anchor" name="fa79f2ac95a8143c2fb087260df39820"></a><!-- doxytag: member="canOpenDriver.c::canTestSleepMode" ref="fa79f2ac95a8143c2fb087260df39820" args="(UNS16 adrCAN)" --> |
|
664 <div class="memitem"> |
|
665 <div class="memproto"> |
|
666 <table class="memname"> |
|
667 <tr> |
|
668 <td class="memname">char canTestSleepMode </td> |
|
669 <td>(</td> |
|
670 <td class="paramtype">UNS16 </td> |
|
671 <td class="paramname"> <em>adrCAN</em> </td> |
|
672 <td> ) </td> |
|
673 <td width="100%"></td> |
|
674 </tr> |
|
675 </table> |
|
676 </div> |
|
677 <div class="memdoc"> |
|
678 |
|
679 <p> |
|
680 |
|
681 <p> |
|
682 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00499">499</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
683 <p> |
|
684 References <a class="el" href="ports__def_8h-source.html#l00705">CANCTL1</a>, and <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>. |
|
685 </div> |
|
686 </div><p> |
|
687 <a class="anchor" name="0bf58f014d47581c9ffd1b2db9a858d7"></a><!-- doxytag: member="canOpenDriver.c::f_can_receive" ref="0bf58f014d47581c9ffd1b2db9a858d7" args="(UNS8 notused, Message *m)" --> |
|
688 <div class="memitem"> |
|
689 <div class="memproto"> |
|
690 <table class="memname"> |
|
691 <tr> |
|
692 <td class="memname">UNS8 f_can_receive </td> |
|
693 <td>(</td> |
|
694 <td class="paramtype">UNS8 </td> |
|
695 <td class="paramname"> <em>notused</em>, </td> |
|
696 </tr> |
|
697 <tr> |
|
698 <td class="paramkey"></td> |
|
699 <td></td> |
|
700 <td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td> |
|
701 <td class="paramname"> <em>m</em></td><td> </td> |
|
702 </tr> |
|
703 <tr> |
|
704 <td></td> |
|
705 <td>)</td> |
|
706 <td></td><td></td><td width="100%"></td> |
|
707 </tr> |
|
708 </table> |
|
709 </div> |
|
710 <div class="memdoc"> |
|
711 |
|
712 <p> |
|
713 |
|
714 <p> |
|
715 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00513">513</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
716 <p> |
|
717 References <a class="el" href="ports__def_8h-source.html#l00698">CAN0</a>, <a class="el" href="ports__def_8h-source.html#l00699">CAN1</a>, <a class="el" href="ports__def_8h-source.html#l00700">CAN2</a>, <a class="el" href="ports__def_8h-source.html#l00701">CAN3</a>, <a class="el" href="ports__def_8h-source.html#l00702">CAN4</a>, <a class="el" href="candriver_8h-source.html#l00053">CANOPEN_LINE_NUMBER_USED</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="candriver_8h-source.html#l00038">MAX_STACK_MSG_RCV</a>, <a class="el" href="candriver_8h-source.html#l00069">t_pointerStack::r</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>. |
|
718 </div> |
|
719 </div><p> |
|
720 <a class="anchor" name="24dbe63e88d184388542037d16a8208d"></a><!-- doxytag: member="canOpenDriver.c::getElapsedTime" ref="24dbe63e88d184388542037d16a8208d" args="()" --> |
|
721 <div class="memitem"> |
|
722 <div class="memproto"> |
|
723 <table class="memname"> |
|
724 <tr> |
|
725 <td class="memname">TIMEVAL getElapsedTime </td> |
|
726 <td>(</td> |
|
727 <td class="paramtype">void </td> |
|
728 <td class="paramname"> </td> |
|
729 <td> ) </td> |
|
730 <td width="100%"></td> |
|
731 </tr> |
|
732 </table> |
|
733 </div> |
|
734 <div class="memdoc"> |
|
735 |
|
736 <p> |
|
737 |
|
738 <p> |
|
739 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00066">66</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
740 </div> |
|
741 </div><p> |
|
742 <a class="anchor" name="2a9aef0efc98c5b41ef97ef91ad403e5"></a><!-- doxytag: member="canOpenDriver.c::hex_convert" ref="2a9aef0efc98c5b41ef97ef91ad403e5" args="(char *buf, unsigned long value, char lastCar)" --> |
|
743 <div class="memitem"> |
|
744 <div class="memproto"> |
|
745 <table class="memname"> |
|
746 <tr> |
|
747 <td class="memname">char* hex_convert </td> |
|
748 <td>(</td> |
|
749 <td class="paramtype">char * </td> |
|
750 <td class="paramname"> <em>buf</em>, </td> |
|
751 </tr> |
|
752 <tr> |
|
753 <td class="paramkey"></td> |
|
754 <td></td> |
|
755 <td class="paramtype">unsigned long </td> |
|
756 <td class="paramname"> <em>value</em>, </td> |
|
757 </tr> |
|
758 <tr> |
|
759 <td class="paramkey"></td> |
|
760 <td></td> |
|
761 <td class="paramtype">char </td> |
|
762 <td class="paramname"> <em>lastCar</em></td><td> </td> |
|
763 </tr> |
|
764 <tr> |
|
765 <td></td> |
|
766 <td>)</td> |
|
767 <td></td><td></td><td width="100%"></td> |
|
768 </tr> |
|
769 </table> |
|
770 </div> |
|
771 <div class="memdoc"> |
|
772 |
|
773 <p> |
|
774 Convert an integer to a string in hexadecimal format If you do not wants to use a lastCar, put lastCar = '' (end of string) ex : value = 0XABCDEF and lastCar = '<br> |
|
775 ' buf[0] = '0' buf[1] = 'X' buf[2] = 'A' .... buf[7] = 'F' buf[8] = '<br> |
|
776 ' buf[9] = '' |
|
777 <p> |
|
778 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00135">135</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
779 </div> |
|
780 </div><p> |
|
781 <a class="anchor" name="c71399958d35a7f703416f025603ee26"></a><!-- doxytag: member="canOpenDriver.c::initHCS12" ref="c71399958d35a7f703416f025603ee26" args="(void)" --> |
|
782 <div class="memitem"> |
|
783 <div class="memproto"> |
|
784 <table class="memname"> |
|
785 <tr> |
|
786 <td class="memname">void initHCS12 </td> |
|
787 <td>(</td> |
|
788 <td class="paramtype">void </td> |
|
789 <td class="paramname"> </td> |
|
790 <td> ) </td> |
|
791 <td width="100%"></td> |
|
792 </tr> |
|
793 </table> |
|
794 </div> |
|
795 <div class="memdoc"> |
|
796 |
|
797 <p> |
|
798 Put here all the code to init the HCS12. |
|
799 <p> |
|
800 |
|
801 <p> |
|
802 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00199">199</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
803 <p> |
|
804 References <a class="el" href="canOpenDriver_8c-source.html#l00188">initPLL()</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>. |
|
805 </div> |
|
806 </div><p> |
|
807 <a class="anchor" name="51e71c727eb7a49e2fde962a3d190a6b"></a><!-- doxytag: member="canOpenDriver.c::initPLL" ref="51e71c727eb7a49e2fde962a3d190a6b" args="(void)" --> |
|
808 <div class="memitem"> |
|
809 <div class="memproto"> |
|
810 <table class="memname"> |
|
811 <tr> |
|
812 <td class="memname">void initPLL </td> |
|
813 <td>(</td> |
|
814 <td class="paramtype">void </td> |
|
815 <td class="paramname"> </td> |
|
816 <td> ) </td> |
|
817 <td width="100%"></td> |
|
818 </tr> |
|
819 </table> |
|
820 </div> |
|
821 <div class="memdoc"> |
|
822 |
|
823 <p> |
|
824 to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz |
|
825 <p> |
|
826 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00188">188</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
827 <p> |
|
828 References <a class="el" href="ports__def_8h-source.html#l00088">CLKSEL</a>, <a class="el" href="ports__def_8h-source.html#l00086">CRGFLG</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="ports__def_8h-source.html#l00089">PLLCTL</a>, <a class="el" href="ports__def_8h-source.html#l00084">REFDV</a>, and <a class="el" href="ports__def_8h-source.html#l00083">SYNR</a>. |
|
829 </div> |
|
830 </div><p> |
|
831 <a class="anchor" name="f86db4b817c1a59a819cbdd51779bfaa"></a><!-- doxytag: member="canOpenDriver.c::initSCI_0" ref="f86db4b817c1a59a819cbdd51779bfaa" args="(void)" --> |
|
832 <div class="memitem"> |
|
833 <div class="memproto"> |
|
834 <table class="memname"> |
|
835 <tr> |
|
836 <td class="memname">void initSCI_0 </td> |
|
837 <td>(</td> |
|
838 <td class="paramtype">void </td> |
|
839 <td class="paramname"> </td> |
|
840 <td> ) </td> |
|
841 <td width="100%"></td> |
|
842 </tr> |
|
843 </table> |
|
844 </div> |
|
845 <div class="memdoc"> |
|
846 |
|
847 <p> |
|
848 Initialisation of the serial port 0. |
|
849 <p> |
|
850 |
|
851 <p> |
|
852 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00115">115</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
853 <p> |
|
854 References <a class="el" href="hcs12_2applicfg_8h-source.html#l00065">BUS_CLOCK</a>, <a class="el" href="portsaccess_8h-source.html#l00046">IO_PORTS_16</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="ports__def_8h-source.html#l00744">SCI0</a>, <a class="el" href="ports__def_8h-source.html#l00747">SCIBDH</a>, <a class="el" href="ports__def_8h-source.html#l00749">SCICR1</a>, <a class="el" href="ports__def_8h-source.html#l00750">SCICR2</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00082">SERIAL_SCI0_BAUD_RATE</a>. |
|
855 </div> |
|
856 </div><p> |
|
857 <a class="anchor" name="b56fa1754706a57059103710178bdb68"></a><!-- doxytag: member="canOpenDriver.c::initSCI_1" ref="b56fa1754706a57059103710178bdb68" args="(void)" --> |
|
858 <div class="memitem"> |
|
859 <div class="memproto"> |
|
860 <table class="memname"> |
|
861 <tr> |
|
862 <td class="memname">void initSCI_1 </td> |
|
863 <td>(</td> |
|
864 <td class="paramtype">void </td> |
|
865 <td class="paramname"> </td> |
|
866 <td> ) </td> |
|
867 <td width="100%"></td> |
|
868 </tr> |
|
869 </table> |
|
870 </div> |
|
871 <div class="memdoc"> |
|
872 |
|
873 <p> |
|
874 Initialisation of the serial port 1. |
|
875 <p> |
|
876 |
|
877 <p> |
|
878 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00124">124</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
879 <p> |
|
880 References <a class="el" href="hcs12_2applicfg_8h-source.html#l00065">BUS_CLOCK</a>, <a class="el" href="portsaccess_8h-source.html#l00046">IO_PORTS_16</a>, <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="ports__def_8h-source.html#l00745">SCI1</a>, <a class="el" href="ports__def_8h-source.html#l00747">SCIBDH</a>, <a class="el" href="ports__def_8h-source.html#l00749">SCICR1</a>, <a class="el" href="ports__def_8h-source.html#l00750">SCICR2</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00083">SERIAL_SCI1_BAUD_RATE</a>. |
|
881 </div> |
|
882 </div><p> |
|
883 <a class="anchor" name="02922529b60419a94afe8f369dda070b"></a><!-- doxytag: member="canOpenDriver.c::initTimer" ref="02922529b60419a94afe8f369dda070b" args="(void)" --> |
|
884 <div class="memitem"> |
|
885 <div class="memproto"> |
|
886 <table class="memname"> |
|
887 <tr> |
|
888 <td class="memname">void initTimer </td> |
|
889 <td>(</td> |
|
890 <td class="paramtype">void </td> |
|
891 <td class="paramname"> </td> |
|
892 <td> ) </td> |
|
893 <td width="100%"></td> |
|
894 </tr> |
|
895 </table> |
|
896 </div> |
|
897 <div class="memdoc"> |
|
898 |
|
899 <p> |
|
900 |
|
901 <p> |
|
902 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00079">79</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
903 </div> |
|
904 </div><p> |
|
905 <a class="anchor" name="80f5dbbc046cba0e5e9cf2bcc4c1e78e"></a><!-- doxytag: member="canOpenDriver.c::printSCI_nbr" ref="80f5dbbc046cba0e5e9cf2bcc4c1e78e" args="(char sci, unsigned long nbr, char lastCar)" --> |
|
906 <div class="memitem"> |
|
907 <div class="memproto"> |
|
908 <table class="memname"> |
|
909 <tr> |
|
910 <td class="memname">void printSCI_nbr </td> |
|
911 <td>(</td> |
|
912 <td class="paramtype">char </td> |
|
913 <td class="paramname"> <em>sci</em>, </td> |
|
914 </tr> |
|
915 <tr> |
|
916 <td class="paramkey"></td> |
|
917 <td></td> |
|
918 <td class="paramtype">unsigned long </td> |
|
919 <td class="paramname"> <em>nbr</em>, </td> |
|
920 </tr> |
|
921 <tr> |
|
922 <td class="paramkey"></td> |
|
923 <td></td> |
|
924 <td class="paramtype">char </td> |
|
925 <td class="paramname"> <em>lastCar</em></td><td> </td> |
|
926 </tr> |
|
927 <tr> |
|
928 <td></td> |
|
929 <td>)</td> |
|
930 <td></td><td></td><td width="100%"></td> |
|
931 </tr> |
|
932 </table> |
|
933 </div> |
|
934 <div class="memdoc"> |
|
935 |
|
936 <p> |
|
937 Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1) |
|
938 <p> |
|
939 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00179">179</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
940 <p> |
|
941 References <a class="el" href="canOpenDriver_8c-source.html#l00135">hex_convert()</a>, and <a class="el" href="canOpenDriver_8c-source.html#l00162">printSCI_str()</a>. |
|
942 </div> |
|
943 </div><p> |
|
944 <a class="anchor" name="6e3075ae435e83aefc018e5218c197d0"></a><!-- doxytag: member="canOpenDriver.c::printSCI_str" ref="6e3075ae435e83aefc018e5218c197d0" args="(char sci, const char *str)" --> |
|
945 <div class="memitem"> |
|
946 <div class="memproto"> |
|
947 <table class="memname"> |
|
948 <tr> |
|
949 <td class="memname">void printSCI_str </td> |
|
950 <td>(</td> |
|
951 <td class="paramtype">char </td> |
|
952 <td class="paramname"> <em>sci</em>, </td> |
|
953 </tr> |
|
954 <tr> |
|
955 <td class="paramkey"></td> |
|
956 <td></td> |
|
957 <td class="paramtype">const char * </td> |
|
958 <td class="paramname"> <em>str</em></td><td> </td> |
|
959 </tr> |
|
960 <tr> |
|
961 <td></td> |
|
962 <td>)</td> |
|
963 <td></td><td></td><td width="100%"></td> |
|
964 </tr> |
|
965 </table> |
|
966 </div> |
|
967 <div class="memdoc"> |
|
968 |
|
969 <p> |
|
970 Print the string to the serial port sci (sci takes the values SCI0 or SCI1) |
|
971 <p> |
|
972 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00162">162</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
973 <p> |
|
974 References <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="ports__def_8h-source.html#l00754">SCIDRL</a>, and <a class="el" href="ports__def_8h-source.html#l00751">SCISR1</a>. |
|
975 </div> |
|
976 </div><p> |
|
977 <a class="anchor" name="339b24f4eee897d3c45d88de9a4901e8"></a><!-- doxytag: member="canOpenDriver.c::resetTimer" ref="339b24f4eee897d3c45d88de9a4901e8" args="(void)" --> |
|
978 <div class="memitem"> |
|
979 <div class="memproto"> |
|
980 <table class="memname"> |
|
981 <tr> |
|
982 <td class="memname">void resetTimer </td> |
|
983 <td>(</td> |
|
984 <td class="paramtype">void </td> |
|
985 <td class="paramname"> </td> |
|
986 <td> ) </td> |
|
987 <td width="100%"></td> |
|
988 </tr> |
|
989 </table> |
|
990 </div> |
|
991 <div class="memdoc"> |
|
992 |
|
993 <p> |
|
994 |
|
995 <p> |
|
996 Definition at line <a class="el" href="canOpenDriver_8c-source.html#l00073">73</a> of file <a class="el" href="canOpenDriver_8c-source.html">canOpenDriver.c</a>. |
|
997 </div> |
|
998 </div><p> |
|
999 <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by |
|
1000 <a href="http://www.doxygen.org/index.html"> |
|
1001 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
|
1002 </body> |
|
1003 </html> |