<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/drivers/hcs12/canOpenDriver.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul></div>
<h1>/home/epimerde/documents/tc11/CanFestival-3/drivers/hcs12/canOpenDriver.c File Reference</h1><code>#include <stddef.h></code><br>
<code>#include "../include/hcs12/asm-m68hc12/portsaccess.h"</code><br>
<code>#include "../include/hcs12/asm-m68hc12/ports_def.h"</code><br>
<code>#include "../include/hcs12/asm-m68hc12/ports.h"</code><br>
<code>#include "../include/data.h"</code><br>
<code>#include "../include/hcs12/applicfg.h"</code><br>
<code>#include "../include/hcs12/candriver.h"</code><br>
<code>#include "../include/hcs12/interrupt.h"</code><br>
<code>#include "../include/hcs12/canOpenDriver.h"</code><br>
<code>#include "../include/can.h"</code><br>
<code>#include "../include/objdictdef.h"</code><br>
<code>#include "../include/timer.h"</code><br>
<p>
<a href="canOpenDriver_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<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>
<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>
<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>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialisation of the serial port 0. <a href="#f86db4b817c1a59a819cbdd51779bfaa"></a><br></td></tr>
<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>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialisation of the serial port 1. <a href="#b56fa1754706a57059103710178bdb68"></a><br></td></tr>
<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>
<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>
<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>
<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>
<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>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Put here all the code to init the HCS12. <a href="#c71399958d35a7f703416f025603ee26"></a><br></td></tr>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="bb416887a32f7e4333e095356774f07f"></a><!-- doxytag: member="canOpenDriver.c::DEBUG_ERR_CONSOLE_ON" ref="bb416887a32f7e4333e095356774f07f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DEBUG_ERR_CONSOLE_ON </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
</div>
</div><p>
<a class="anchor" name="4f52c00ab0d519e2965ebaa533975904"></a><!-- doxytag: member="canOpenDriver.c::DEBUG_WAR_CONSOLE_ON" ref="4f52c00ab0d519e2965ebaa533975904" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DEBUG_WAR_CONSOLE_ON </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
</div>
</div><p>
<a class="anchor" name="ffe776513b24d84b39af8ab0930fef7f"></a><!-- doxytag: member="canOpenDriver.c::max" ref="ffe776513b24d84b39af8ab0930fef7f" args="(a, b)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define max </td>
<td>(</td>
<td class="paramtype">a, <tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">b </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> a>b?a:b</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="445500277ba0e363873b34cffc015745"></a><!-- doxytag: member="canOpenDriver.c::__attribute__" ref="445500277ba0e363873b34cffc015745" args="((interrupt))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void __attribute__ </td>
<td>(</td>
<td class="paramtype">(interrupt) </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<a class="el" href="structMessage.html">Message</a> transmitted on MSCAN 0
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="acfd181d5b055d1403930442e28ac643"></a><!-- doxytag: member="canOpenDriver.c::canAddIdToFilter" ref="acfd181d5b055d1403930442e28ac643" args="(UNS16 adrCAN, UNS8 nFilter, UNS16 id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canAddIdToFilter </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS8 </td>
<td class="paramname"> <em>nFilter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>id</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="751a41c9747b96ab400b5599370cea83"></a><!-- doxytag: member="canOpenDriver.c::canChangeFilter" ref="751a41c9747b96ab400b5599370cea83" args="(UNS16 adrCAN, canBusFilterInit fi)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canChangeFilter </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> </td>
<td class="paramname"> <em>fi</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="5a53a89d2e348d70331e6ebe269d155a"></a><!-- doxytag: member="canOpenDriver.c::canEnable" ref="5a53a89d2e348d70331e6ebe269d155a" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canEnable </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="3c4f7a31d94e5e7c7322535467b806de"></a><!-- doxytag: member="canOpenDriver.c::canInit" ref="3c4f7a31d94e5e7c7322535467b806de" args="(UNS16 adrCAN, canBusInit bi)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInit </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcanBusInit.html">canBusInit</a> </td>
<td class="paramname"> <em>bi</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="5fb549697afb7918607aa113e01c543d"></a><!-- doxytag: member="canOpenDriver.c::canInit1Filter" ref="5fb549697afb7918607aa113e01c543d" args="(UNS16 adrCAN, UNS8 nFilter, UNS16 ar, UNS16 mr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInit1Filter </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS8 </td>
<td class="paramname"> <em>nFilter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>ar</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>mr</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="6ec3ce6d79012dd8a08fa5aeb6a0489f"></a><!-- doxytag: member="canOpenDriver.c::canInitClock" ref="6ec3ce6d79012dd8a08fa5aeb6a0489f" args="(UNS16 adrCAN, canBusTime clk)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInitClock </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcanBusTime.html">canBusTime</a> </td>
<td class="paramname"> <em>clk</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="b4502eef7616b25c74b1ac5a2245b085"></a><!-- doxytag: member="canOpenDriver.c::canInitFilter" ref="b4502eef7616b25c74b1ac5a2245b085" args="(UNS16 adrCAN, canBusFilterInit fi)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInitFilter </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcanBusFilterInit.html">canBusFilterInit</a> </td>
<td class="paramname"> <em>fi</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="0b98e4800c82d99981833aa4207f1eb9"></a><!-- doxytag: member="canOpenDriver.c::canInitMode" ref="0b98e4800c82d99981833aa4207f1eb9" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInitMode </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="00ffb46abacfdfa56ebc70e15164113e"></a><!-- doxytag: member="canOpenDriver.c::canInitModeQ" ref="00ffb46abacfdfa56ebc70e15164113e" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canInitModeQ </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="2f2d1ed55cfd9d7f85883f8d70d318ba"></a><!-- doxytag: member="canOpenDriver.c::canMsgTransmit" ref="2f2d1ed55cfd9d7f85883f8d70d318ba" args="(UNS16 adrCAN, Message msg)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canMsgTransmit </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> </td>
<td class="paramname"> <em>msg</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="b57b4b3c000e9f61135175495e874977"></a><!-- doxytag: member="canOpenDriver.c::canSend" ref="b57b4b3c000e9f61135175495e874977" args="(UNS8 notused, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 canSend </td>
<td>(</td>
<td class="paramtype">UNS8 </td>
<td class="paramname"> <em>notused</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="5ad8616a3276f7f40149b551f09aa6a1"></a><!-- doxytag: member="canOpenDriver.c::canSetInterrupt" ref="5ad8616a3276f7f40149b551f09aa6a1" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canSetInterrupt </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="c7773223579ec7e0fab5238df214da89"></a><!-- doxytag: member="canOpenDriver.c::canSleepMode" ref="c7773223579ec7e0fab5238df214da89" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canSleepMode </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="a89f28005eea54f5b216eb72a18d45f3"></a><!-- doxytag: member="canOpenDriver.c::canSleepModeQ" ref="a89f28005eea54f5b216eb72a18d45f3" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canSleepModeQ </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="1ae1ad5d66ac87085baf5b9d0a4e62ca"></a><!-- doxytag: member="canOpenDriver.c::canSleepWupMode" ref="1ae1ad5d66ac87085baf5b9d0a4e62ca" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canSleepWupMode </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="6beefe951b3c9de786c585257488fa82"></a><!-- doxytag: member="canOpenDriver.c::canTestInitMode" ref="6beefe951b3c9de786c585257488fa82" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canTestInitMode </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="fa79f2ac95a8143c2fb087260df39820"></a><!-- doxytag: member="canOpenDriver.c::canTestSleepMode" ref="fa79f2ac95a8143c2fb087260df39820" args="(UNS16 adrCAN)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char canTestSleepMode </td>
<td>(</td>
<td class="paramtype">UNS16 </td>
<td class="paramname"> <em>adrCAN</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="0bf58f014d47581c9ffd1b2db9a858d7"></a><!-- doxytag: member="canOpenDriver.c::f_can_receive" ref="0bf58f014d47581c9ffd1b2db9a858d7" args="(UNS8 notused, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 f_can_receive </td>
<td>(</td>
<td class="paramtype">UNS8 </td>
<td class="paramname"> <em>notused</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="24dbe63e88d184388542037d16a8208d"></a><!-- doxytag: member="canOpenDriver.c::getElapsedTime" ref="24dbe63e88d184388542037d16a8208d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TIMEVAL getElapsedTime </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
</div>
</div><p>
<a class="anchor" name="2a9aef0efc98c5b41ef97ef91ad403e5"></a><!-- doxytag: member="canOpenDriver.c::hex_convert" ref="2a9aef0efc98c5b41ef97ef91ad403e5" args="(char *buf, unsigned long value, char lastCar)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* hex_convert </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned long </td>
<td class="paramname"> <em>value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char </td>
<td class="paramname"> <em>lastCar</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
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>
' buf[0] = '0' buf[1] = 'X' buf[2] = 'A' .... buf[7] = 'F' buf[8] = '<br>
' buf[9] = ''
<p>
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>.
</div>
</div><p>
<a class="anchor" name="c71399958d35a7f703416f025603ee26"></a><!-- doxytag: member="canOpenDriver.c::initHCS12" ref="c71399958d35a7f703416f025603ee26" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void initHCS12 </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Put here all the code to init the HCS12.
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="51e71c727eb7a49e2fde962a3d190a6b"></a><!-- doxytag: member="canOpenDriver.c::initPLL" ref="51e71c727eb7a49e2fde962a3d190a6b" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void initPLL </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="f86db4b817c1a59a819cbdd51779bfaa"></a><!-- doxytag: member="canOpenDriver.c::initSCI_0" ref="f86db4b817c1a59a819cbdd51779bfaa" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void initSCI_0 </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Initialisation of the serial port 0.
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="b56fa1754706a57059103710178bdb68"></a><!-- doxytag: member="canOpenDriver.c::initSCI_1" ref="b56fa1754706a57059103710178bdb68" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void initSCI_1 </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Initialisation of the serial port 1.
<p>
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="02922529b60419a94afe8f369dda070b"></a><!-- doxytag: member="canOpenDriver.c::initTimer" ref="02922529b60419a94afe8f369dda070b" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void initTimer </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
</div>
</div><p>
<a class="anchor" name="80f5dbbc046cba0e5e9cf2bcc4c1e78e"></a><!-- doxytag: member="canOpenDriver.c::printSCI_nbr" ref="80f5dbbc046cba0e5e9cf2bcc4c1e78e" args="(char sci, unsigned long nbr, char lastCar)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void printSCI_nbr </td>
<td>(</td>
<td class="paramtype">char </td>
<td class="paramname"> <em>sci</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned long </td>
<td class="paramname"> <em>nbr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char </td>
<td class="paramname"> <em>lastCar</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1)
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="6e3075ae435e83aefc018e5218c197d0"></a><!-- doxytag: member="canOpenDriver.c::printSCI_str" ref="6e3075ae435e83aefc018e5218c197d0" args="(char sci, const char *str)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void printSCI_str </td>
<td>(</td>
<td class="paramtype">char </td>
<td class="paramname"> <em>sci</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>str</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Print the string to the serial port sci (sci takes the values SCI0 or SCI1)
<p>
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>.
<p>
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>.
</div>
</div><p>
<a class="anchor" name="339b24f4eee897d3c45d88de9a4901e8"></a><!-- doxytag: member="canOpenDriver.c::resetTimer" ref="339b24f4eee897d3c45d88de9a4901e8" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void resetTimer </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
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>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:07 2007 for CanFestival by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>