tinyusb/0.4/group___class_driver___hub.html
2014-03-27 17:27:26 +07:00

161 lines
10 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.6"/>
<title>tinyusb: Hub (Host only)</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.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">tinyusb
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<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="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group___class_driver___hub.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Hub (Host only)<div class="ingroups"><a class="el" href="group__group__class.html">Application - Class Driver API</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdescriptor__hub__desc__t.html">descriptor_hub_desc_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhub__status__response__t.html">hub_status_response_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhub__port__status__response__t.html">hub_port_status_response_t</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="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gae8a3b6a5d0d3244ed73924ab2421a0d0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br/>
&#160;&#160;<b>HUB_REQUEST_GET_STATUS</b> = 0,
<b>HUB_REQUEST_CLEAR_FEATURE</b> = 1,
<b>HUB_REQUEST_SET_FEATURE</b> = 3,
<b>HUB_REQUEST_GET_DESCRIPTOR</b> = 6,
<br/>
&#160;&#160;<b>HUB_REQUEST_SET_DESCRIPTOR</b> = 7,
<b>HUB_REQUEST_CLEAR_TT_BUFFER</b> = 8,
<b>HUB_REQUEST_RESET_TT</b> = 9,
<b>HUB_REQUEST_GET_TT_STATE</b> = 10,
<br/>
&#160;&#160;<b>HUB_REQUEST_STOP_TT</b> = 11
<br/>
}</td></tr>
<tr class="separator:gae8a3b6a5d0d3244ed73924ab2421a0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf715e26dfffd1f8de1c18449e2770cff"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <b>HUB_FEATURE_HUB_LOCAL_POWER_CHANGE</b> = 0,
<b>HUB_FEATURE_HUB_OVER_CURRENT_CHANGE</b>
}</td></tr>
<tr class="separator:gaf715e26dfffd1f8de1c18449e2770cff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb730582952b7ceec73d7dc9bf7bef39"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br/>
&#160;&#160;<b>HUB_FEATURE_PORT_CONNECTION</b> = 0,
<b>HUB_FEATURE_PORT_ENABLE</b> = 1,
<b>HUB_FEATURE_PORT_SUSPEND</b> = 2,
<b>HUB_FEATURE_PORT_OVER_CURRENT</b> = 3,
<br/>
&#160;&#160;<b>HUB_FEATURE_PORT_RESET</b> = 4,
<b>HUB_FEATURE_PORT_POWER</b> = 8,
<b>HUB_FEATURE_PORT_LOW_SPEED</b> = 9,
<b>HUB_FEATURE_PORT_CONNECTION_CHANGE</b> = 16,
<br/>
&#160;&#160;<b>HUB_FEATURE_PORT_ENABLE_CHANGE</b> = 17,
<b>HUB_FEATURE_PORT_SUSPEND_CHANGE</b> = 18,
<b>HUB_FEATURE_PORT_OVER_CURRENT_CHANGE</b> = 19,
<b>HUB_FEATURE_PORT_RESET_CHANGE</b> = 20,
<br/>
&#160;&#160;<b>HUB_FEATURE_PORT_TEST</b> = 21,
<b>HUB_FEATURE_PORT_INDICATOR</b> = 22
<br/>
}</td></tr>
<tr class="separator:gafb730582952b7ceec73d7dc9bf7bef39"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga96682f6032db9ed117e70dc121ae570d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga96682f6032db9ed117e70dc121ae570d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>STATIC_ASSERT</b> (sizeof(<a class="el" href="structdescriptor__hub__desc__t.html">descriptor_hub_desc_t</a>)==9,&quot;size is not correct&quot;)</td></tr>
<tr class="separator:ga96682f6032db9ed117e70dc121ae570d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8050e8d27b5b45a84d507d2d29f2df8b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8050e8d27b5b45a84d507d2d29f2df8b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>STATIC_ASSERT</b> (sizeof(<a class="el" href="structhub__status__response__t.html">hub_status_response_t</a>)==4,&quot;size is not correct&quot;)</td></tr>
<tr class="separator:ga8050e8d27b5b45a84d507d2d29f2df8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52fb9513cd5f248045299b6cc8049bb6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga52fb9513cd5f248045299b6cc8049bb6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>STATIC_ASSERT</b> (sizeof(<a class="el" href="structhub__port__status__response__t.html">hub_port_status_response_t</a>)==4,&quot;size is not correct&quot;)</td></tr>
<tr class="separator:ga52fb9513cd5f248045299b6cc8049bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6f546b4a56991b0790faa2aa8ae40d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac6f546b4a56991b0790faa2aa8ae40d0"></a>
<a class="el" href="group___group___error.html#ga225612897c510054ef4026586562f716">tusb_error_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>hub_port_reset_subtask</b> (uint8_t hub_addr, uint8_t hub_port)</td></tr>
<tr class="separator:gac6f546b4a56991b0790faa2aa8ae40d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9e7e1e20d08d753e6efc0524e8c1a9e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9e7e1e20d08d753e6efc0524e8c1a9e9"></a>
<a class="el" href="group___group___error.html#ga225612897c510054ef4026586562f716">tusb_error_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>hub_port_clear_feature_subtask</b> (uint8_t hub_addr, uint8_t hub_port, uint8_t feature)</td></tr>
<tr class="separator:ga9e7e1e20d08d753e6efc0524e8c1a9e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga990c20f49ce707938a8ee266d0fc4609"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga990c20f49ce707938a8ee266d0fc4609"></a>
<a class="el" href="group___u_s_b_def___type.html#ga13298e8a91e362e9b4ed452d86f4671b">tusb_speed_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>hub_port_get_speed</b> (void)</td></tr>
<tr class="separator:ga990c20f49ce707938a8ee266d0fc4609"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ab160ae6ab48885e62099cb2ae63260"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8ab160ae6ab48885e62099cb2ae63260"></a>
<a class="el" href="group___group___error.html#ga225612897c510054ef4026586562f716">tusb_error_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>hub_status_pipe_queue</b> (uint8_t dev_addr)</td></tr>
<tr class="separator:ga8ab160ae6ab48885e62099cb2ae63260"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Like most PC's OS, Hub support is completely hidden from Application. In fact, application cannot determine whether a device is mounted directly via roothub or via a hub's port. All Hub-related procedures are performed and managed by tinyusb stack. Unless you are trying to develop the stack itself, there are nothing else can be used by Application. </p>
<dl class="section note"><dt>Note</dt><dd>Due to my laziness, only 1-level of Hub is supported. In other way, the stack cannot mount a hub via another hub. </dd></dl>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Wed Mar 26 2014 16:23:19 for tinyusb by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>