Project

General

Profile

Revision 869

Recompiled documentation with additional documentation for SPI and encoders.

View differences:

i2c_8c.html
4 4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5 5
<link href="tabs.css" rel="stylesheet" type="text/css">
6 6
</head><body>
7
<!-- Generated by Doxygen 1.5.5 -->
8
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
      <li><a href="modules.html"><span>Modules</span></a></li>
14
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
15
      <li class="current"><a href="files.html"><span>Files</span></a></li>
16
    </ul>
17
  </div>
7
<!-- Generated by Doxygen 1.5.4 -->
8
<div class="tabs">
9
  <ul>
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11
    <li><a href="modules.html"><span>Modules</span></a></li>
12
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
13
    <li class="current"><a href="files.html"><span>Files</span></a></li>
14
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
15
  </ul>
18 16
</div>
19
<div class="contents">
20 17
<h1>i2c.c File Reference</h1>Implemenation of I2C communications protocol. <a href="#_details">More...</a>
21 18
<p>
22 19
<code>#include &lt;avr/interrupt.h&gt;</code><br>
......
80 77
Uses the status codes from the I2C register to handle the events needed to advance in I2C stages. For instance, you will get a bit for receiving a start ack, then a address ack, then a data ack, etc. The events are handled in each switch case. The status codes are defined by avr-gcc in /util/twi.h but are the same codes as the Atmel documentation.<p>
81 78
Bytes are sent by popping off the ring buffer. It also will keep track of what modes the send is in.<p>
82 79
Errors are handled here as well. 
83
<p>References <a class="el" href="ring__buffer_8h-source.html#l00078">RING_BUFFER_CLEAR</a>, <a class="el" href="ring__buffer_8h-source.html#l00088">RING_BUFFER_EMPTY</a>, <a class="el" href="ring__buffer_8h-source.html#l00136">RING_BUFFER_PEEK</a>, and <a class="el" href="ring__buffer_8h-source.html#l00122">RING_BUFFER_REMOVE</a>.</p>
84

  
85 80
</div>
86 81
</div><p>
87
</div>
88
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 26 13:39:28 2008 for libdragonfly by&nbsp;
82
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Oct 6 15:44:33 2008 for libdragonfly by&nbsp;
89 83
<a href="http://www.doxygen.org/index.html">
90
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
84
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
91 85
</body>
92 86
</html>

Also available in: Unified diff