<!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: include/hcs12/canOpenDriver.h 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="annotated.html"><span>Data Structures</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</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>
<div class="nav">
<a class="el" href="dir_bb27f6e70a4a8ab6966321815f15a33d.html">include</a> » <a class="el" href="dir_d760eeaaeddcf24a708a1307f60f8f4e.html">hcs12</a></div>
<h1>canOpenDriver.h File Reference</h1>
<p>
<a href="canOpenDriver_8h-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>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8h.html#607bd2711b85a87fce51334bb36bad1a">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_8h.html#bf5784dcd21f08822e6c0f39d363e77c">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_8h.html#8531a6f26ddb090f238b8edef15d0c69">TimerLoop</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="canOpenDriver_8h.html#e9619ed76d03ed5c17ec07267bb61f4a">f_can_receive</a> (UNS8 notused, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="e9619ed76d03ed5c17ec07267bb61f4a"></a><!-- doxytag: member="canOpenDriver.h::f_can_receive" ref="e9619ed76d03ed5c17ec07267bb61f4a" 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>
Returns 0 if no message received, 0xFF if the receiving stack is not empty. May be call in polling. You can also call canDispatch(...) in void __attribute__((interrupt)) can0HdlRcv (void) (see include/hcs12/canOpenDriver.c)
</div>
</div><p>
<a class="anchor" name="607bd2711b85a87fce51334bb36bad1a"></a><!-- doxytag: member="canOpenDriver.h::initTimer" ref="607bd2711b85a87fce51334bb36bad1a" 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>.
<p>
References <a class="el" href="portsaccess_8h-source.html#l00039">IO_PORTS_8</a>, <a class="el" href="timers__unix_8c-source.html#l00016">last_sig</a>, <a class="el" href="interrupt_8c-source.html#l00049">lock()</a>, <a class="el" href="ports__def_8h-source.html#l00103">TCTL1</a>, <a class="el" href="ports__def_8h-source.html#l00107">TIE</a>, <a class="el" href="timers__unix_8c-source.html#l00018">timer</a>, <a class="el" href="timers__unix_8c-source.html#l00030">timer_notify()</a>, <a class="el" href="ports__def_8h-source.html#l00095">TIOS</a>, <a class="el" href="ports__def_8h-source.html#l00101">TSCR1</a>, <a class="el" href="ports__def_8h-source.html#l00108">TSCR2</a>, and <a class="el" href="interrupt_8c-source.html#l00057">unlock()</a>.
<p>
Here is the call graph for this function:<p><center><img src="canOpenDriver_8h_607bd2711b85a87fce51334bb36bad1a_cgraph.png" border="0" usemap="#canOpenDriver_8h_607bd2711b85a87fce51334bb36bad1a_cgraph_map" alt=""></center>
<map name="canOpenDriver_8h_607bd2711b85a87fce51334bb36bad1a_cgraph_map">
<area href="interrupt_8c.html#a86d31d31831be20de69b1533b4acc5b" shape="rect" coords="148,5,191,32" alt="">
<area href="timers__unix_8c.html#40e7943587a24eae55dd73d80a913750" shape="rect" coords="125,107,213,133" alt="">
<area href="interrupt_8c.html#8704c06a2936e68f7c25dc0c1d335cca" shape="rect" coords="141,56,197,83" alt="">
<area href="regs_8h.html#d28436d08fab91f8bebd7fd082b3f757" shape="rect" coords="276,5,345,32" alt="">
<area href="timers__unix_8c.html#aa3c568288a54a9398524255602bbce8" shape="rect" coords="268,56,353,83" alt="">
<area href="timers__unix_8c.html#887d197b991c23bc11f626ae688abec7" shape="rect" coords="267,107,355,133" alt="">
<area href="timer_8c.html#7a5a515821c2e4fb2f66bac72389da00" shape="rect" coords="263,157,359,184" alt="">
<area href="canOpenDriver_8c.html#38b23a8ee3748bca3415967b90df1e15" shape="rect" coords="409,157,516,184" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="bf5784dcd21f08822e6c0f39d363e77c"></a><!-- doxytag: member="canOpenDriver.h::resetTimer" ref="bf5784dcd21f08822e6c0f39d363e77c" 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>
<a class="anchor" name="8531a6f26ddb090f238b8edef15d0c69"></a><!-- doxytag: member="canOpenDriver.h::TimerLoop" ref="8531a6f26ddb090f238b8edef15d0c69" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TimerLoop </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>
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:29 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>