root / trunk / docs / libdragonfly / spi_8c.html @ 1398
History | View | Annotate | Download (3.26 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|---|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 |
<title>libdragonfly: spi.c File Reference</title> |
4 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
5 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.5.9 -->
|
8 |
<div class="navigation" id="top"> |
9 |
<div class="tabs"> |
10 |
<ul>
|
11 |
<li><a href="index.html"><span>Main Page</span></a></li> |
12 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
13 |
<li><a href="modules.html"><span>Modules</span></a></li> |
14 |
<li><a href="annotated.html"><span>Data Structures</span></a></li> |
15 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
16 |
</ul>
|
17 |
</div>
|
18 |
<div class="tabs"> |
19 |
<ul>
|
20 |
<li><a href="files.html"><span>File List</span></a></li> |
21 |
<li><a href="globals.html"><span>Globals</span></a></li> |
22 |
</ul>
|
23 |
</div>
|
24 |
</div>
|
25 |
<div class="contents"> |
26 |
<h1>spi.c File Reference</h1>Basic SPI module to handle encoders. |
27 |
<a href="#_details">More...</a> |
28 |
<p>
|
29 |
<code>#include <avr/interrupt.h></code><br> |
30 |
<code>#include <<a class="el" href="dragonfly__lib_8h_source.html">dragonfly_lib.h</a>></code><br> |
31 |
<code>#include "<a class="el" href="spi_8h_source.html">spi.h</a>"</code><br> |
32 |
<table border="0" cellpadding="0" cellspacing="0"> |
33 |
<tr><td></td></tr> |
34 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
35 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi.html#g3c6e10adc9421c1f15c8abd2a41867bf">spi_init</a> (spi_fun_recv_t recv_func, spi_fun_recv_complete_t recv_complete_func)</td></tr> |
36 |
|
37 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize SPI hardware for communication. <a href="group__spi.html#g3c6e10adc9421c1f15c8abd2a41867bf"></a><br></td></tr> |
38 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__spi.html#g2c2ccf462042c16ecfee9b57c4438d54">spi_transfer</a> (char bytes)</td></tr> |
39 |
|
40 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Transfer a given byte to slave and receive a byte. <a href="group__spi.html#g2c2ccf462042c16ecfee9b57c4438d54"></a><br></td></tr> |
41 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9e35ed76280b37d21463ecbd768125e5"></a><!-- doxytag: member="spi.c::ISR" ref="9e35ed76280b37d21463ecbd768125e5" args="(SIG_SPI)" --> |
42 |
</td><td class="memItemRight" valign="bottom"><b>ISR</b> (SIG_SPI)</td></tr> |
43 |
|
44 |
</table>
|
45 |
<hr><h2>Detailed Description</h2> |
46 |
Basic SPI module to handle encoders. |
47 |
<p>
|
48 |
<dl class="author" compact><dt><b>Author:</b></dt><dd>Colony Project, CMU Robotics Club Need to move <a class="el" href="spi_8h.html" title="Definitions for SPI.">spi.h</a> include into <a class="el" href="dragonfly__lib_8h.html" title="Contains other include files.">dragonfly_lib.h</a> when stable </dd></dl> |
49 |
</div>
|
50 |
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 7 19:07:28 2009 for libdragonfly by |
51 |
<a href="http://www.doxygen.org/index.html"> |
52 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
53 |
</body>
|
54 |
</html>
|