<!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.6"/>
<title>USB Host Shield 2.0: AddressPoolImpl&lt; MAX_DEVICES_ALLOWED &gt; Class Template 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.6 -->
<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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#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><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_address_pool_impl-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AddressPoolImpl&lt; MAX_DEVICES_ALLOWED &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="address_8h_source.html">address.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for AddressPoolImpl&lt; MAX_DEVICES_ALLOWED &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="class_address_pool_impl__inherit__graph.png" border="0" usemap="#_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_inherit__map" id="_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_inherit__map">
<area shape="rect" id="node2" href="class_address_pool.html" title="AddressPool" alt="" coords="44,5,140,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for AddressPoolImpl&lt; MAX_DEVICES_ALLOWED &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="class_address_pool_impl__coll__graph.png" border="0" usemap="#_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_coll__map" id="_address_pool_impl_3_01_m_a_x___d_e_v_i_c_e_s___a_l_l_o_w_e_d_01_4_coll__map">
<area shape="rect" id="node2" href="class_address_pool.html" title="AddressPool" alt="" coords="44,5,140,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeaf73d809ebb97bb1015789b8dc31ffa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_address_pool_impl.html#aeaf73d809ebb97bb1015789b8dc31ffa">AddressPoolImpl</a> ()</td></tr>
<tr class="separator:aeaf73d809ebb97bb1015789b8dc31ffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3e12dda249ef6acbb27592fc8fe1cba"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="struct_usb_device.html">UsbDevice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_address_pool_impl.html#aa3e12dda249ef6acbb27592fc8fe1cba">GetUsbDevicePtr</a> (uint8_t addr)</td></tr>
<tr class="separator:aa3e12dda249ef6acbb27592fc8fe1cba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09e6dc797f82543eba0879369116182e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_address_pool_impl.html#a09e6dc797f82543eba0879369116182e">ForEachUsbDevice</a> (<a class="el" href="address_8h.html#a90edb051235924cb5280032df397f393">UsbDeviceHandleFunc</a> pfunc)</td></tr>
<tr class="separator:a09e6dc797f82543eba0879369116182e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14657183c73c631754b31bd0cc588c87"><td class="memItemLeft" align="right" valign="top">virtual uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_address_pool_impl.html#a14657183c73c631754b31bd0cc588c87">AllocAddress</a> (uint8_t parent, bool is_hub=false, uint8_t port=0)</td></tr>
<tr class="separator:a14657183c73c631754b31bd0cc588c87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d59841faa336c359b0736ca45988ce5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_address_pool_impl.html#a3d59841faa336c359b0736ca45988ce5">FreeAddress</a> (uint8_t addr)</td></tr>
<tr class="separator:a3d59841faa336c359b0736ca45988ce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt;<br/>
class AddressPoolImpl&lt; MAX_DEVICES_ALLOWED &gt;</h3>


<p>Definition at line <a class="el" href="address_8h_source.html#l00103">103</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aeaf73d809ebb97bb1015789b8dc31ffa"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a>&lt; MAX_DEVICES_ALLOWED &gt;::<a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="address_8h_source.html#l00171">171</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa3e12dda249ef6acbb27592fc8fe1cba"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="struct_usb_device.html">UsbDevice</a>* <a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a>&lt; MAX_DEVICES_ALLOWED &gt;::GetUsbDevicePtr </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_address_pool.html#aa92d7e8f0f515340ae2dc1679b627056">AddressPool</a>.</p>

<p>Definition at line <a class="el" href="address_8h_source.html#l00188">188</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>

</div>
</div>
<a class="anchor" id="a09e6dc797f82543eba0879369116182e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a>&lt; MAX_DEVICES_ALLOWED &gt;::ForEachUsbDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="address_8h.html#a90edb051235924cb5280032df397f393">UsbDeviceHandleFunc</a>&#160;</td>
          <td class="paramname"><em>pfunc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="address_8h_source.html#l00199">199</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14657183c73c631754b31bd0cc588c87"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual uint8_t <a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a>&lt; MAX_DEVICES_ALLOWED &gt;::AllocAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_hub</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>port</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_address_pool.html#a97df4ef42e50960ce2165f4cdb53e590">AddressPool</a>.</p>

<p>Definition at line <a class="el" href="address_8h_source.html#l00210">210</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3d59841faa336c359b0736ca45988ce5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;const uint8_t MAX_DEVICES_ALLOWED&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_address_pool_impl.html">AddressPoolImpl</a>&lt; MAX_DEVICES_ALLOWED &gt;::FreeAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="class_address_pool.html#a15fde13223dcb1da89305ad229763562">AddressPool</a>.</p>

<p>Definition at line <a class="el" href="address_8h_source.html#l00262">262</a> of file <a class="el" href="address_8h_source.html">address.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="address_8h_source.html">address.h</a></li>
</ul>
</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.6
</small></address>
</body>
</html>