<!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: drivers/can_peak_linux/can_peak_linux.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="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_d58fb241e647de6212c31ecccf9cbace.html">drivers</a> » <a class="el" href="dir_99c3ac25e5cd4387d44a6b6f620347a9.html">can_peak_linux</a></div>
<h1>can_peak_linux.c File Reference</h1><code>#include <stdio.h></code><br>
<code>#include <string.h></code><br>
<code>#include <errno.h></code><br>
<code>#include <fcntl.h></code><br>
<code>#include "libpcan.h"</code><br>
<code>#include "<a class="el" href="can__driver_8h-source.html">can_driver.h</a>"</code><br>
<p>
Include dependency graph for can_peak_linux.c:<p><center><img src="can__peak__linux_8c__incl.png" border="0" usemap="#drivers/can_peak_linux/can_peak_linux.c_map" alt=""></center>
<map name="drivers/can_peak_linux/can_peak_linux.c_map">
<area href="can__driver_8h.html" shape="rect" coords="352,56,456,80" alt="">
<area href="win32_2applicfg_8h.html" shape="rect" coords="612,83,700,107" alt="">
<area href="can_8h.html" shape="rect" coords="504,107,563,131" alt="">
</map>
<p>
<a href="can__peak__linux_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="can__peak__linux_8c.html#44ef8a15c3be0d9b410c0c21709a12c2">CAN_INIT_TYPE_ST_RTR</a> MSGTYPE_STANDARD | MSGTYPE_RTR</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="can__peak__linux_8c.html#6b3248e95acf2b08d1fd8b42610cc5a6">canReceive_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#def95aee49efa13dd047d0b3b5507ad3">canSend_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32">TranslateBaudeRate</a> (char *<a class="el" href="TestMasterMicroMod_2getopt_8h.html#db50a0eab9fed92fc3bfc7dfa4f2c410">optarg</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#945403aba7f36acbd2e7160ade361bab">canOpen_driver</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="can__peak__linux_8c.html#76e6a915d0e40a23b863198b2aaa5545">canClose_driver</a> (<a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> fd0)</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="44ef8a15c3be0d9b410c0c21709a12c2"></a><!-- doxytag: member="can_peak_linux.c::CAN_INIT_TYPE_ST_RTR" ref="44ef8a15c3be0d9b410c0c21709a12c2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CAN_INIT_TYPE_ST_RTR MSGTYPE_STANDARD | MSGTYPE_RTR </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00037">37</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
<p>
Referenced by <a class="el" href="can__peak__linux_8c-source.html#l00064">canSend_driver()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="76e6a915d0e40a23b863198b2aaa5545"></a><!-- doxytag: member="can_peak_linux.c::canClose_driver" ref="76e6a915d0e40a23b863198b2aaa5545" args="(CAN_HANDLE fd0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int canClose_driver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
<td class="paramname"> <em>fd0</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00129">129</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
</div>
</div><p>
<a class="anchor" name="945403aba7f36acbd2e7160ade361bab"></a><!-- doxytag: member="can_peak_linux.c::canOpen_driver" ref="945403aba7f36acbd2e7160ade361bab" args="(s_BOARD *board)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> canOpen_driver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td>
<td class="paramname"> <em>board</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00104">104</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
<p>
References <a class="el" href="can__driver_8h-source.html#l00035">struct_s_BOARD::baudrate</a>, <a class="el" href="can__driver_8h-source.html#l00034">struct_s_BOARD::busname</a>, and <a class="el" href="can__peak__linux_8c-source.html#l00089">TranslateBaudeRate()</a>.
<p>
Here is the call graph for this function:<p><center><img src="can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph.png" border="0" usemap="#can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map" alt=""></center>
<map name="can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab_cgraph_map">
<area href="can__peak__linux_8c.html#6820d7fa32e6e79d432c6003e4c15c32" shape="rect" coords="185,6,343,30" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="6b3248e95acf2b08d1fd8b42610cc5a6"></a><!-- doxytag: member="can_peak_linux.c::canReceive_driver" ref="6b3248e95acf2b08d1fd8b42610cc5a6" args="(CAN_HANDLE fd0, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 canReceive_driver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
<td class="paramname"> <em>fd0</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="can__peak__linux_8c-source.html#l00040">40</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
<p>
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
</div>
</div><p>
<a class="anchor" name="def95aee49efa13dd047d0b3b5507ad3"></a><!-- doxytag: member="can_peak_linux.c::canSend_driver" ref="def95aee49efa13dd047d0b3b5507ad3" args="(CAN_HANDLE fd0, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 canSend_driver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="win32_2applicfg_8h.html#712c7b28987b12b8d400df19c92d0f5e">CAN_HANDLE</a> </td>
<td class="paramname"> <em>fd0</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="can__peak__linux_8c-source.html#l00064">64</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
<p>
References <a class="el" href="can__peak__linux_8c-source.html#l00037">CAN_INIT_TYPE_ST_RTR</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
</div>
</div><p>
<a class="anchor" name="6820d7fa32e6e79d432c6003e4c15c32"></a><!-- doxytag: member="can_peak_linux.c::TranslateBaudeRate" ref="6820d7fa32e6e79d432c6003e4c15c32" args="(char *optarg)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int TranslateBaudeRate </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>optarg</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__peak__linux_8c-source.html#l00089">89</a> of file <a class="el" href="can__peak__linux_8c-source.html">can_peak_linux.c</a>.
<p>
Referenced by <a class="el" href="can__peak__win32_8c-source.html#l00070">canInit()</a>, and <a class="el" href="can__peak__linux_8c-source.html#l00104">canOpen_driver()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:51:40 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>