USB_Host_Shield_2.0/avrpins_8h.html
2013-05-07 01:05:31 +02:00

241 lines
17 KiB
HTML

<!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.8.3.1"/>
<title>USB Host Shield 2.0: avrpins.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e5fbe6d2783ccd4c93c7856d92d7be6e.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_397a095372f04465e811d0ee219bbf8f.html">USB_Host_Shield_2.0</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">avrpins.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;avr/io.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for avrpins.h:</div>
<div class="dyncontent">
<div class="center"><img src="avrpins_8h__incl.png" border="0" usemap="#avrpins_8h" alt=""/></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="avrpins_8h__dep__incl.png" border="0" usemap="#avrpins_8hdep" alt=""/></div>
<map name="avrpins_8hdep" id="avrpins_8hdep">
<area shape="rect" id="node2" href="adk_8h.html" title="adk.h" alt="" coords="110,213,151,235"/><area shape="rect" id="node4" href="usbhost_8h.html" title="usbhost.h" alt="" coords="989,75,1045,96"/><area shape="rect" id="node5" href="_usb_8h.html" title="Usb.h" alt="" coords="871,144,913,165"/><area shape="rect" id="node14" href="cdcacm_8h.html" title="cdcacm.h" alt="" coords="325,213,381,235"/><area shape="rect" id="node18" href="cdcftdi_8h.html" title="cdcftdi.h" alt="" coords="249,213,300,235"/><area shape="rect" id="node16" href="cdcprolific_8h.html" title="cdcprolific.h" alt="" coords="255,283,319,304"/><area shape="rect" id="node20" href="hid_8h.html" title="hid.h" alt="" coords="1164,213,1204,235"/><area shape="rect" id="node22" href="hidboot_8h.html" title="hidboot.h" alt="" coords="1393,283,1447,304"/><area shape="rect" id="node24" href="hidescriptorparser_8h.html" title="hidescriptorparser.h" alt="" coords="1472,283,1565,304"/><area shape="rect" id="node28" href="masstorage_8h.html" title="masstorage.h" alt="" coords="1069,213,1139,235"/><area shape="rect" id="node34" href="_usb_8cpp.html" title="Usb.cpp" alt="" coords="1330,213,1381,235"/><area shape="rect" id="node35" href="usbhub_8h.html" title="usbhub.h" alt="" coords="990,213,1044,235"/><area shape="rect" id="node3" href="adk_8cpp.html" title="adk.cpp" alt="" coords="5,283,56,304"/><area shape="rect" id="node6" href="_b_t_d_8h.html" title="BTD.h" alt="" coords="869,213,915,235"/><area shape="rect" id="node30" href="max___l_c_d_8h.html" title="max_LCD.h" alt="" coords="507,213,571,235"/><area shape="rect" id="node32" href="_p_s3_u_s_b_8h.html" title="PS3USB.h" alt="" coords="595,213,655,235"/><area shape="rect" id="node37" href="_x_b_o_x_r_e_c_v_8h.html" title="XBOXRECV.h" alt="" coords="679,213,752,235"/><area shape="rect" id="node39" href="_x_b_o_x_u_s_b_8h.html" title="XBOXUSB.h" alt="" coords="777,213,844,235"/><area shape="rect" id="node7" href="_b_t_d_8cpp.html" title="BTD.cpp" alt="" coords="805,283,859,304"/><area shape="rect" id="node8" href="_p_s3_b_t_8h.html" title="PS3BT.h" alt="" coords="883,283,937,304"/><area shape="rect" id="node10" href="_s_p_p_8h.html" title="SPP.h" alt="" coords="963,283,1008,304"/><area shape="rect" id="node12" href="_wii_8h.html" title="Wii.h" alt="" coords="741,283,781,304"/><area shape="rect" id="node9" href="_p_s3_b_t_8cpp.html" title="PS3BT.cpp" alt="" coords="875,352,937,373"/><area shape="rect" id="node11" href="_s_p_p_8cpp.html" title="SPP.cpp" alt="" coords="963,352,1016,373"/><area shape="rect" id="node13" href="_wii_8cpp.html" title="Wii.cpp" alt="" coords="737,352,785,373"/><area shape="rect" id="node15" href="cdcacm_8cpp.html" title="cdcacm.cpp" alt="" coords="165,283,229,304"/><area shape="rect" id="node17" href="cdcprolific_8cpp.html" title="cdcprolific.cpp" alt="" coords="250,352,323,373"/><area shape="rect" id="node19" href="cdcftdi_8cpp.html" title="cdcftdi.cpp" alt="" coords="81,283,140,304"/><area shape="rect" id="node21" href="hid_8cpp.html" title="hid.cpp" alt="" coords="1320,283,1368,304"/><area shape="rect" id="node26" href="hiduniversal_8h.html" title="hiduniversal.h" alt="" coords="1224,283,1296,304"/><area shape="rect" id="node23" href="hidboot_8cpp.html" title="hidboot.cpp" alt="" coords="1384,352,1448,373"/><area shape="rect" id="node25" href="hidescriptorparser_8cpp.html" title="hidescriptorparser.cpp" alt="" coords="1472,352,1573,373"/><area shape="rect" id="node27" href="hiduniversal_8cpp.html" title="hiduniversal.cpp" alt="" coords="1220,352,1300,373"/><area shape="rect" id="node29" href="masstorage_8cpp.html" title="masstorage.cpp" alt="" coords="1121,283,1199,304"/><area shape="rect" id="node31" href="max___l_c_d_8cpp.html" title="max_LCD.cpp" alt="" coords="343,283,416,304"/><area shape="rect" id="node33" href="_p_s3_u_s_b_8cpp.html" title="PS3USB.cpp" alt="" coords="441,283,511,304"/><area shape="rect" id="node36" href="usbhub_8cpp.html" title="usbhub.cpp" alt="" coords="1032,283,1096,304"/><area shape="rect" id="node38" href="_x_b_o_x_r_e_c_v_8cpp.html" title="XBOXRECV.cpp" alt="" coords="535,283,616,304"/><area shape="rect" id="node40" href="_x_b_o_x_u_s_b_8cpp.html" title="XBOXUSB.cpp" alt="" coords="641,283,716,304"/></map>
</div>
</div>
<p><a href="avrpins_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pin.html">TPin&lt; PORT, PIN &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_com.html">TCom&lt; TCCR, COM &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tp___tc.html">Tp_Tc&lt; Tp_pin, Tc_bit &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a007409bc8f4dbfad293d3e4c59bd2921"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="avrpins_8h.html#a007409bc8f4dbfad293d3e4c59bd2921">MAKE_PORT</a>(portName, ddrName, pinName, className, ID)</td></tr>
<tr class="separator:a007409bc8f4dbfad293d3e4c59bd2921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade418bf397968e1b184b4342e16e950f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="avrpins_8h.html#ade418bf397968e1b184b4342e16e950f">MAKE_TCCR</a>(TccrName, className)</td></tr>
<tr class="separator:ade418bf397968e1b184b4342e16e950f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a007409bc8f4dbfad293d3e4c59bd2921"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MAKE_PORT</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">portName, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">ddrName, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">pinName, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">className, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">ID&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">class </span>className{\</div>
<div class="line"> public:\</div>
<div class="line"> typedef uint8_t DataT;\</div>
<div class="line"> public:\</div>
<div class="line"> static <span class="keywordtype">void</span> Write(DataT value){portName = value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> ClearAndSet(DataT clearMask, DataT value){portName = (portName &amp; ~clearMask) | value;}\</div>
<div class="line"> static DataT Read(){<span class="keywordflow">return</span> portName;}\</div>
<div class="line"> static <span class="keywordtype">void</span> DirWrite(DataT value){ddrName = value;}\</div>
<div class="line"> static DataT DirRead(){<span class="keywordflow">return</span> ddrName;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Set(DataT value){portName |= value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Clear(DataT value){portName &amp;= ~value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Toggle(DataT value){portName ^= value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> DirSet(DataT value){ddrName |= value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> DirClear(DataT value){ddrName &amp;= ~value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> DirToggle(DataT value){ddrName ^= value;}\</div>
<div class="line"> static DataT PinRead(){<span class="keywordflow">return</span> pinName;}\</div>
<div class="line"> enum{Id = ID};\</div>
<div class="line"> enum{Width=<span class="keyword">sizeof</span>(DataT)*8};\</div>
<div class="line"> };</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="avrpins_8h_source.html#l00088">88</a> of file <a class="el" href="avrpins_8h_source.html">avrpins.h</a>.</p>
</div>
</div>
<a class="anchor" id="ade418bf397968e1b184b4342e16e950f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MAKE_TCCR</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">TccrName, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">className&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">class </span>className{\</div>
<div class="line"> public:\</div>
<div class="line"> typedef uint8_t DataT;\</div>
<div class="line"> public:\</div>
<div class="line"> static <span class="keywordtype">void</span> Write(DataT value){TccrName = value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> ClearAndSet(DataT clearMask, DataT value){TccrName = (TccrName &amp; ~clearMask) | value;}\</div>
<div class="line"> static DataT Read(){<span class="keywordflow">return</span> TccrName;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Set(DataT value){TccrName |= value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Clear(DataT value){TccrName &amp;= ~value;}\</div>
<div class="line"> static <span class="keywordtype">void</span> Toggle(DataT value){TccrName ^= value;}\</div>
<div class="line"> enum{Width=<span class="keyword">sizeof</span>(DataT)*8};\</div>
<div class="line"> };</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="avrpins_8h_source.html#l00110">110</a> of file <a class="el" href="avrpins_8h_source.html">avrpins.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>