gnuk/ChibiOS_2.0.8/docs/html/spi_8c.html

86 lines
7.9 KiB
HTML
Raw Normal View History

2010-08-10 03:11:02 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ChibiOS/RT: spi.c File Reference</title>
<link href="custom.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<table style="text-align: center; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 80px;"><img alt="ChibiOS/RT Logo" src="logo_small.png"></td>
<td><big><big>ChibiOS/RT</big></big><br><br>Architecture - Reference Manual - Guides</td>
<td style="width: 80px;"></td>
</tr>
</tbody>
</table>
<hr size="1">
2010-11-22 05:53:37 +00:00
<!-- Generated by Doxygen 1.7.1 -->
2010-08-10 03:11:02 +00:00
<div class="navigation" id="top">
<div class="tabs">
2010-11-22 05:53:37 +00:00
<ul class="tablist">
2010-08-10 03:11:02 +00:00
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
2010-11-22 05:53:37 +00:00
<div class="tabs2">
<ul class="tablist">
2010-08-10 03:11:02 +00:00
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
2010-11-22 05:53:37 +00:00
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<h1>spi.c File Reference</h1> </div>
</div>
2010-08-10 03:11:02 +00:00
<div class="contents">
2010-11-22 05:53:37 +00:00
2010-08-10 03:11:02 +00:00
<p>SPI Driver code.
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="ch_8h_source.html">ch.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="hal_8h_source.html">hal.h</a>&quot;</code><br/>
<p><a href="spi_8c_source.html">Go to the source code of this file.</a></p>
2010-11-22 05:53:37 +00:00
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
2010-08-10 03:11:02 +00:00
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga3c484a97cdec02c5dbf46a11245e3395">spiInit</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">SPI Driver initialization. <a href="group___s_p_i.html#ga3c484a97cdec02c5dbf46a11245e3395"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga87a7bdc554b8e8fdfc77064e67689fcf">spiObjectInit</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initializes the standard part of a <code><a class="el" href="struct_s_p_i_driver.html" title="Structure representing a SPI driver.">SPIDriver</a></code> structure. <a href="group___s_p_i.html#ga87a7bdc554b8e8fdfc77064e67689fcf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga6752c9f736f8de774a5bef6dfe2aae2e">spiStart</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip, const <a class="el" href="struct_s_p_i_config.html">SPIConfig</a> *config)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configures and activates the SPI peripheral. <a href="group___s_p_i.html#ga6752c9f736f8de774a5bef6dfe2aae2e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#gad3a359eea03e68e95899886ae93a06e4">spiStop</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deactivates the SPI peripheral. <a href="group___s_p_i.html#gad3a359eea03e68e95899886ae93a06e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga00809152c869db80192aa3e04266a99a">spiSelect</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Asserts the slave select signal and prepares for transfers. <a href="group___s_p_i.html#ga00809152c869db80192aa3e04266a99a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#gae291c012872da9c89dec23581f701b5f">spiUnselect</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deasserts the slave select signal. <a href="group___s_p_i.html#gae291c012872da9c89dec23581f701b5f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga43889a7d4c473f653596f8c0acafce2a">spiIgnore</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip, size_t n)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ignores data on the SPI bus. <a href="group___s_p_i.html#ga43889a7d4c473f653596f8c0acafce2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#gaf1c59f3fd2f85620a5253c23d9586095">spiExchange</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip, size_t n, const void *txbuf, void *rxbuf)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Exchanges data on the SPI bus. <a href="group___s_p_i.html#gaf1c59f3fd2f85620a5253c23d9586095"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga382cfbdffd2df57cf3843d45164e8bfc">spiSend</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip, size_t n, const void *txbuf)</td></tr>
2010-11-22 05:53:37 +00:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sends data over the SPI bus. <a href="group___s_p_i.html#ga382cfbdffd2df57cf3843d45164e8bfc"></a><br/></td></tr>
2010-08-10 03:11:02 +00:00
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#gadd99ad823b391dde114f04dedafe5e80">spiReceive</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip, size_t n, void *rxbuf)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Receives data from the SPI bus. <a href="group___s_p_i.html#gadd99ad823b391dde114f04dedafe5e80"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga803cec73f6dd8d3d1f18fb6a61b8255a">spiAcquireBus</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gains exclusive access to the SPI bus. <a href="group___s_p_i.html#ga803cec73f6dd8d3d1f18fb6a61b8255a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_p_i.html#ga1b04a2410ef4323ee4e37c63f320c18f">spiReleaseBus</a> (<a class="el" href="struct_s_p_i_driver.html">SPIDriver</a> *spip)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Releases exclusive access to the SPI bus. <a href="group___s_p_i.html#ga1b04a2410ef4323ee4e37c63f320c18f"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>SPI Driver code. </p>
<p>Definition in file <a class="el" href="spi_8c_source.html">spi.c</a>.</p>
</div>
<hr size="1"><address style="text-align: right;"><small>
2010-11-30 04:54:43 +00:00
Generated on Sun Nov 28 2010 14:09:50 for ChibiOS/RT by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.1</small></address>
2010-08-10 03:11:02 +00:00
</body>
</html>