You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
609 lines
28 KiB
HTML
609 lines
28 KiB
HTML
4 years ago
|
<!-- HTML header for doxygen 1.8.7-->
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<meta name="generator" content="Doxygen 1.6.3"/>
|
||
|
<!--BEGIN PROJECT_NAME--><title>avr-libc: avr-libc: <util/twi.h>: TWI bit mask definitions</title><!--END PROJECT_NAME-->
|
||
|
<!--BEGIN !PROJECT_NAME--><title>avr-libc: <util/twi.h>: TWI bit mask definitions</title><!--END !PROJECT_NAME-->
|
||
|
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
||
|
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
||
|
$treeview
|
||
|
$search
|
||
|
$mathjax
|
||
|
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
||
|
$extrastylesheet
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
|
|
||
|
<!--BEGIN TITLEAREA-->
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<!--BEGIN PROJECT_LOGO-->
|
||
|
<td id="projectlogo"><img alt="Logo" src="$relpath^$projectlogo"/></td>
|
||
|
<!--END PROJECT_LOGO-->
|
||
|
<!--BEGIN PROJECT_NAME-->
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectname">avr-libc
|
||
|
<!--BEGIN PROJECT_NUMBER--> <span id="projectnumber">2.0.0</span><!--END PROJECT_NUMBER-->
|
||
|
</div>
|
||
|
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
|
||
|
</td>
|
||
|
<!--END PROJECT_NAME-->
|
||
|
<!--BEGIN !PROJECT_NAME-->
|
||
|
<!--BEGIN PROJECT_BRIEF-->
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectbrief">$projectbrief</div>
|
||
|
</td>
|
||
|
<!--END PROJECT_BRIEF-->
|
||
|
<!--END !PROJECT_NAME-->
|
||
|
<!--BEGIN DISABLE_INDEX-->
|
||
|
<!--BEGIN SEARCHENGINE-->
|
||
|
<td>$searchbox</td>
|
||
|
<!--END SEARCHENGINE-->
|
||
|
<!--END DISABLE_INDEX-->
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td align="left"><a href="http://www.nongnu.org/avr-libc/"><h2>AVR Libc Home Page</h2></a></td>
|
||
|
<td align="center" colspan=4><img src="avrs.png" alt="AVRs" align="middle" border="0"></td>
|
||
|
<td align="right"><a href="https://savannah.nongnu.org/projects/avr-libc/"><h2>AVR Libc Development Pages</h2></a></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td align="center" width="20%"><a href="index.html"><h2>Main Page</h2></a></td>
|
||
|
<td align="center" width="20%"><a href="pages.html"><h2>User Manual</h2></a></td>
|
||
|
<td align="center" width="20%"><a href="modules.html"><h2>Library Reference</h2></a></td>
|
||
|
<td align="center" width="20%"><a href="FAQ.html"><h2>FAQ</h2></a></td>
|
||
|
<td align="center" width="20%"><a href="group__demos.html"><h2>Example Projects</h2></a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!--END TITLEAREA-->
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.6.3 -->
|
||
|
<script type="text/javascript"><!--
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
--></script>
|
||
|
<div class="contents">
|
||
|
<h1><util/twi.h>: TWI bit mask definitions</h1><table border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr><td colspan="2"><h2>TWSR values</h2></td></tr>
|
||
|
<tr><td colspan="2"><p><a class="anchor" id="amgrp42f820ba9b5b7097b4fd1e83955bb8fc"></a> Mnemonics: <br/>
|
||
|
TW_MT_xxx - master transmitter <br/>
|
||
|
TW_MR_xxx - master receiver <br/>
|
||
|
TW_ST_xxx - slave transmitter <br/>
|
||
|
TW_SR_xxx - slave receiver </p>
|
||
|
<br/><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga8ec630c2063d0353c53d140b99382d80">TW_START</a> 0x08</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga8dce3e4b7e35355a8add9ed63d1fa3ab">TW_REP_START</a> 0x10</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga85cae14b4190042335d25ed9a1b72369">TW_MT_SLA_ACK</a> 0x18</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gaca64b973c51d6548a962c1d7cae0663e">TW_MT_SLA_NACK</a> 0x20</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga4c28186053b5298305b131ad3e1111f7">TW_MT_DATA_ACK</a> 0x28</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga91c107a74d268f8578d866ed1bbbd4f3">TW_MT_DATA_NACK</a> 0x30</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga5959251c4bd80f48b5a029447d86adb3">TW_MT_ARB_LOST</a> 0x38</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gad85222308836bfbe099255662ffb510c">TW_MR_ARB_LOST</a> 0x38</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gac16504b87d15d83b97bb0ce61577bb40">TW_MR_SLA_ACK</a> 0x40</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga655325b6f8a1818103b126cc3774d8e8">TW_MR_SLA_NACK</a> 0x48</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga3c8c79b2ecb8d22358839890161cc33b">TW_MR_DATA_ACK</a> 0x50</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga532f0ffa12f684346c74a5cbec15950e">TW_MR_DATA_NACK</a> 0x58</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga0ecd2ca38d00279194460e65028a0533">TW_ST_SLA_ACK</a> 0xA8</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga1064659d0758206d43d69cd582d1f5da">TW_ST_ARB_LOST_SLA_ACK</a> 0xB0</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga2de84bf7cbf1cd7ae43a6e0f0eeca719">TW_ST_DATA_ACK</a> 0xB8</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gacc1837317b1d45e9bb49b8e83cfe6d42">TW_ST_DATA_NACK</a> 0xC0</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gaf92d03d0051d47f5b9375f0ef9293d64">TW_ST_LAST_DATA</a> 0xC8</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga9e9e761d674793772e6b3f77fc9d7fab">TW_SR_SLA_ACK</a> 0x60</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga1c3ed5ed345d17972002b9fd07f4f829">TW_SR_ARB_LOST_SLA_ACK</a> 0x68</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga6eb3b4230887a8b73d7787ff231ea911">TW_SR_GCALL_ACK</a> 0x70</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga4756103341a65e0e3889996cdf15b2fa">TW_SR_ARB_LOST_GCALL_ACK</a> 0x78</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gac50f1a59c74c3109d4913dbecfb472c1">TW_SR_DATA_ACK</a> 0x80</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga6c0fa701fe9d96b0b7df29e8af154f94">TW_SR_DATA_NACK</a> 0x88</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga4abaad098fd92bed63719ffb01802c8d">TW_SR_GCALL_DATA_ACK</a> 0x90</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga42234278f9b01b9af75dbbc617b97890">TW_SR_GCALL_DATA_NACK</a> 0x98</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga98d2570f965790884cf1774e716ec629">TW_SR_STOP</a> 0xA0</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gabcff70642634cb53e9d8e93872f70c90">TW_NO_INFO</a> 0xF8</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga90d373160b1d0a3f0c454af83c57df71">TW_BUS_ERROR</a> 0x00</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga8d3aca0acc182f459a51797321728168">TW_STATUS_MASK</a></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#ga4440385d1818b4fe89b20341ea47b75a">TW_STATUS</a> (TWSR & TW_STATUS_MASK)</td></tr>
|
||
|
<tr><td colspan="2"><h2>R/~W bit in SLA+R/W address field.</h2></td></tr>
|
||
|
<tr><td colspan="2"><p><a class="anchor" id="amgrp8f939fc9c8471549ba6dd5932548fd46"></a> </p>
|
||
|
<br/><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gaf40f13cadca25e0a83dc096858907819">TW_READ</a> 1</td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__util__twi.html#gac8a7cb1a91946c6e3955608a91371148">TW_WRITE</a> 0</td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
<div class="fragment"><pre class="fragment"><span class="preprocessor"> #include <<a class="code" href="util_2twi_8h.html">util/twi.h</a>></span>
|
||
|
</pre></div><p>This header file contains bit mask definitions for use with the AVR TWI interface. </p>
|
||
|
<hr/><h2>Define Documentation</h2>
|
||
|
<a class="anchor" id="ga90d373160b1d0a3f0c454af83c57df71"></a><!-- doxytag: member="util/twi.h::TW_BUS_ERROR" ref="ga90d373160b1d0a3f0c454af83c57df71" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_BUS_ERROR 0x00</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>illegal start or stop condition </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gad85222308836bfbe099255662ffb510c"></a><!-- doxytag: member="util/twi.h::TW_MR_ARB_LOST" ref="gad85222308836bfbe099255662ffb510c" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MR_ARB_LOST 0x38</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>arbitration lost in SLA+R or NACK </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga3c8c79b2ecb8d22358839890161cc33b"></a><!-- doxytag: member="util/twi.h::TW_MR_DATA_ACK" ref="ga3c8c79b2ecb8d22358839890161cc33b" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MR_DATA_ACK 0x50</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga532f0ffa12f684346c74a5cbec15950e"></a><!-- doxytag: member="util/twi.h::TW_MR_DATA_NACK" ref="ga532f0ffa12f684346c74a5cbec15950e" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MR_DATA_NACK 0x58</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data received, NACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gac16504b87d15d83b97bb0ce61577bb40"></a><!-- doxytag: member="util/twi.h::TW_MR_SLA_ACK" ref="gac16504b87d15d83b97bb0ce61577bb40" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MR_SLA_ACK 0x40</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+R transmitted, ACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga655325b6f8a1818103b126cc3774d8e8"></a><!-- doxytag: member="util/twi.h::TW_MR_SLA_NACK" ref="ga655325b6f8a1818103b126cc3774d8e8" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MR_SLA_NACK 0x48</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+R transmitted, NACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga5959251c4bd80f48b5a029447d86adb3"></a><!-- doxytag: member="util/twi.h::TW_MT_ARB_LOST" ref="ga5959251c4bd80f48b5a029447d86adb3" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MT_ARB_LOST 0x38</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>arbitration lost in SLA+W or data </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga4c28186053b5298305b131ad3e1111f7"></a><!-- doxytag: member="util/twi.h::TW_MT_DATA_ACK" ref="ga4c28186053b5298305b131ad3e1111f7" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MT_DATA_ACK 0x28</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data transmitted, ACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga91c107a74d268f8578d866ed1bbbd4f3"></a><!-- doxytag: member="util/twi.h::TW_MT_DATA_NACK" ref="ga91c107a74d268f8578d866ed1bbbd4f3" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MT_DATA_NACK 0x30</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data transmitted, NACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga85cae14b4190042335d25ed9a1b72369"></a><!-- doxytag: member="util/twi.h::TW_MT_SLA_ACK" ref="ga85cae14b4190042335d25ed9a1b72369" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MT_SLA_ACK 0x18</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+W transmitted, ACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaca64b973c51d6548a962c1d7cae0663e"></a><!-- doxytag: member="util/twi.h::TW_MT_SLA_NACK" ref="gaca64b973c51d6548a962c1d7cae0663e" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_MT_SLA_NACK 0x20</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+W transmitted, NACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gabcff70642634cb53e9d8e93872f70c90"></a><!-- doxytag: member="util/twi.h::TW_NO_INFO" ref="gabcff70642634cb53e9d8e93872f70c90" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_NO_INFO 0xF8</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>no state information available </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaf40f13cadca25e0a83dc096858907819"></a><!-- doxytag: member="util/twi.h::TW_READ" ref="gaf40f13cadca25e0a83dc096858907819" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_READ 1</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+R address </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga8dce3e4b7e35355a8add9ed63d1fa3ab"></a><!-- doxytag: member="util/twi.h::TW_REP_START" ref="ga8dce3e4b7e35355a8add9ed63d1fa3ab" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_REP_START 0x10</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>repeated start condition transmitted </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga4756103341a65e0e3889996cdf15b2fa"></a><!-- doxytag: member="util/twi.h::TW_SR_ARB_LOST_GCALL_ACK" ref="ga4756103341a65e0e3889996cdf15b2fa" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_ARB_LOST_GCALL_ACK 0x78</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>arbitration lost in SLA+RW, general call received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga1c3ed5ed345d17972002b9fd07f4f829"></a><!-- doxytag: member="util/twi.h::TW_SR_ARB_LOST_SLA_ACK" ref="ga1c3ed5ed345d17972002b9fd07f4f829" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_ARB_LOST_SLA_ACK 0x68</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>arbitration lost in SLA+RW, SLA+W received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gac50f1a59c74c3109d4913dbecfb472c1"></a><!-- doxytag: member="util/twi.h::TW_SR_DATA_ACK" ref="gac50f1a59c74c3109d4913dbecfb472c1" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_DATA_ACK 0x80</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga6c0fa701fe9d96b0b7df29e8af154f94"></a><!-- doxytag: member="util/twi.h::TW_SR_DATA_NACK" ref="ga6c0fa701fe9d96b0b7df29e8af154f94" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_DATA_NACK 0x88</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data received, NACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga6eb3b4230887a8b73d7787ff231ea911"></a><!-- doxytag: member="util/twi.h::TW_SR_GCALL_ACK" ref="ga6eb3b4230887a8b73d7787ff231ea911" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_GCALL_ACK 0x70</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>general call received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga4abaad098fd92bed63719ffb01802c8d"></a><!-- doxytag: member="util/twi.h::TW_SR_GCALL_DATA_ACK" ref="ga4abaad098fd92bed63719ffb01802c8d" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_GCALL_DATA_ACK 0x90</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>general call data received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga42234278f9b01b9af75dbbc617b97890"></a><!-- doxytag: member="util/twi.h::TW_SR_GCALL_DATA_NACK" ref="ga42234278f9b01b9af75dbbc617b97890" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_GCALL_DATA_NACK 0x98</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>general call data received, NACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga9e9e761d674793772e6b3f77fc9d7fab"></a><!-- doxytag: member="util/twi.h::TW_SR_SLA_ACK" ref="ga9e9e761d674793772e6b3f77fc9d7fab" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_SLA_ACK 0x60</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+W received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga98d2570f965790884cf1774e716ec629"></a><!-- doxytag: member="util/twi.h::TW_SR_STOP" ref="ga98d2570f965790884cf1774e716ec629" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_SR_STOP 0xA0</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>stop or repeated start condition received while selected </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga1064659d0758206d43d69cd582d1f5da"></a><!-- doxytag: member="util/twi.h::TW_ST_ARB_LOST_SLA_ACK" ref="ga1064659d0758206d43d69cd582d1f5da" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_ST_ARB_LOST_SLA_ACK 0xB0</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>arbitration lost in SLA+RW, SLA+R received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga2de84bf7cbf1cd7ae43a6e0f0eeca719"></a><!-- doxytag: member="util/twi.h::TW_ST_DATA_ACK" ref="ga2de84bf7cbf1cd7ae43a6e0f0eeca719" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_ST_DATA_ACK 0xB8</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data transmitted, ACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gacc1837317b1d45e9bb49b8e83cfe6d42"></a><!-- doxytag: member="util/twi.h::TW_ST_DATA_NACK" ref="gacc1837317b1d45e9bb49b8e83cfe6d42" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_ST_DATA_NACK 0xC0</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>data transmitted, NACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gaf92d03d0051d47f5b9375f0ef9293d64"></a><!-- doxytag: member="util/twi.h::TW_ST_LAST_DATA" ref="gaf92d03d0051d47f5b9375f0ef9293d64" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_ST_LAST_DATA 0xC8</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>last data byte transmitted, ACK received </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga0ecd2ca38d00279194460e65028a0533"></a><!-- doxytag: member="util/twi.h::TW_ST_SLA_ACK" ref="ga0ecd2ca38d00279194460e65028a0533" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_ST_SLA_ACK 0xA8</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+R received, ACK returned </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga8ec630c2063d0353c53d140b99382d80"></a><!-- doxytag: member="util/twi.h::TW_START" ref="ga8ec630c2063d0353c53d140b99382d80" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_START 0x08</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>start condition transmitted </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga4440385d1818b4fe89b20341ea47b75a"></a><!-- doxytag: member="util/twi.h::TW_STATUS" ref="ga4440385d1818b4fe89b20341ea47b75a" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_STATUS (TWSR & TW_STATUS_MASK)</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>TWSR, masked by TW_STATUS_MASK </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ga8d3aca0acc182f459a51797321728168"></a><!-- doxytag: member="util/twi.h::TW_STATUS_MASK" ref="ga8d3aca0acc182f459a51797321728168" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_STATUS_MASK</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<b>Value:</b><div class="fragment"><pre class="fragment">(<a class="code" href="group__avr__sfr.html#ga11643f271076024c395a93800b3d9546">_BV</a>(TWS7)|<a class="code" href="group__avr__sfr.html#ga11643f271076024c395a93800b3d9546">_BV</a>(TWS6)|<a class="code" href="group__avr__sfr.html#ga11643f271076024c395a93800b3d9546">_BV</a>(TWS5)|<a class="code" href="group__avr__sfr.html#ga11643f271076024c395a93800b3d9546">_BV</a>(TWS4)|\
|
||
|
<a class="code" href="group__avr__sfr.html#ga11643f271076024c395a93800b3d9546">_BV</a>(TWS3))
|
||
|
</pre></div><p>The lower 3 bits of TWSR are reserved on the ATmega163. The 2 LSB carry the prescaler bits on the newer ATmegas. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="gac8a7cb1a91946c6e3955608a91371148"></a><!-- doxytag: member="util/twi.h::TW_WRITE" ref="gac8a7cb1a91946c6e3955608a91371148" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">#define TW_WRITE 0</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<p>SLA+W address </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!--- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Defines</a></div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<!-- HTML footer for doxygen 1.8.7-->
|
||
|
<!-- start footer part -->
|
||
|
<!--BEGIN GENERATE_TREEVIEW-->
|
||
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||
|
<ul>
|
||
|
$navpath
|
||
|
<li class="footer">$generatedby
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="$relpath^doxygen.png" alt="doxygen"/></a> 1.6.3 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!--END GENERATE_TREEVIEW-->
|
||
|
<!--BEGIN !GENERATE_TREEVIEW-->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
$generatedby  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="$relpath^doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.6.3
|
||
|
</small></address>
|
||
|
<!--END !GENERATE_TREEVIEW-->
|
||
|
</body>
|
||
|
</html>
|