mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
127 lines
10 KiB
HTML
127 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: tinyusb/class/cdc_device.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="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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</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('cdc__device_8h.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">cdc_device.h File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="common_8h_source.html">common/common.h</a>"</code><br/>
|
|
<code>#include "<a class="el" href="usbd_8h_source.html">device/usbd.h</a>"</code><br/>
|
|
<code>#include "<a class="el" href="cdc_8h_source.html">cdc.h</a>"</code><br/>
|
|
</div>
|
|
<p><a href="cdc__device_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="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga328ecd1975bbaf1d28196afccc76241f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_d_c___serial___device.html#ga328ecd1975bbaf1d28196afccc76241f">tusbd_cdc_is_busy</a> (uint8_t coreid, <a class="el" href="group___class_driver___c_d_c___common.html#ga8664e955870c947f08f6601901243b6f">cdc_pipeid_t</a> pipeid) <a class="el" href="group___group___func_attr.html#ga477faefde32bfd89d5b5b40d70b1a998">ATTR_PURE</a> <a class="el" href="group___group___func_attr.html#gaa61f3d1a169c3d97d95072b1ee6493fd">ATTR_WARN_UNUSED_RESULT</a></td></tr>
|
|
<tr class="memdesc:ga328ecd1975bbaf1d28196afccc76241f"><td class="mdescLeft"> </td><td class="mdescRight">Check if the interface is currently busy or not. <a href="group___c_d_c___serial___device.html#ga328ecd1975bbaf1d28196afccc76241f">More...</a><br/></td></tr>
|
|
<tr class="separator:ga328ecd1975bbaf1d28196afccc76241f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga683f29672f0ee41523eda9cf95c2ada5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___group___error.html#ga225612897c510054ef4026586562f716">tusb_error_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_d_c___serial___device.html#ga683f29672f0ee41523eda9cf95c2ada5">tusbd_cdc_send</a> (uint8_t coreid, void *p_data, uint32_t length, bool is_notify)</td></tr>
|
|
<tr class="memdesc:ga683f29672f0ee41523eda9cf95c2ada5"><td class="mdescLeft"> </td><td class="mdescRight">Submit USB transfer. <a href="group___c_d_c___serial___device.html#ga683f29672f0ee41523eda9cf95c2ada5">More...</a><br/></td></tr>
|
|
<tr class="separator:ga683f29672f0ee41523eda9cf95c2ada5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa1866b17e0b41e188e1bc1f71c82607d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___group___error.html#ga225612897c510054ef4026586562f716">tusb_error_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_d_c___serial___device.html#gaa1866b17e0b41e188e1bc1f71c82607d">tusbd_cdc_receive</a> (uint8_t coreid, void *p_buffer, uint32_t length, bool is_notify)</td></tr>
|
|
<tr class="memdesc:gaa1866b17e0b41e188e1bc1f71c82607d"><td class="mdescLeft"> </td><td class="mdescRight">Submit USB transfer. <a href="group___c_d_c___serial___device.html#gaa1866b17e0b41e188e1bc1f71c82607d">More...</a><br/></td></tr>
|
|
<tr class="separator:gaa1866b17e0b41e188e1bc1f71c82607d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf5183574b1a017e4a3057e7ca3cf57bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf5183574b1a017e4a3057e7ca3cf57bf"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>tusbd_cdc_mounted_cb</b> (uint8_t coreid)</td></tr>
|
|
<tr class="separator:gaf5183574b1a017e4a3057e7ca3cf57bf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf18aa37f5e7476bab909fecb151db16e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf18aa37f5e7476bab909fecb151db16e"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>tusbd_cdc_unmounted_cb</b> (uint8_t coreid)</td></tr>
|
|
<tr class="separator:gaf18aa37f5e7476bab909fecb151db16e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga249badeb2eaf6b6f12d17a6c6f91bd5f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_d_c___serial___device.html#ga249badeb2eaf6b6f12d17a6c6f91bd5f">tusbd_cdc_xfer_cb</a> (uint8_t coreid, tusb_event_t event, <a class="el" href="group___class_driver___c_d_c___common.html#ga8664e955870c947f08f6601901243b6f">cdc_pipeid_t</a> pipe_id, uint32_t xferred_bytes)</td></tr>
|
|
<tr class="memdesc:ga249badeb2eaf6b6f12d17a6c6f91bd5f"><td class="mdescLeft"> </td><td class="mdescRight">Callback function that is invoked when an completion (error or success) of an USB transfer previously submitted by application (e.g <a class="el" href="group___c_d_c___serial___device.html#ga683f29672f0ee41523eda9cf95c2ada5">tusbd_cdc_send</a> or <a class="el" href="group___c_d_c___serial___device.html#ga683f29672f0ee41523eda9cf95c2ada5">tusbd_cdc_send</a>) with <em>is_notify</em> set to true. <a href="group___c_d_c___serial___device.html#ga249badeb2eaf6b6f12d17a6c6f91bd5f">More...</a><br/></td></tr>
|
|
<tr class="separator:ga249badeb2eaf6b6f12d17a6c6f91bd5f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>hathach (tinyusb.org)</dd></dl>
|
|
<h1><a class="anchor" id="LICENSE"></a>
|
|
LICENSE</h1>
|
|
<p>Software License Agreement (BSD License)</p>
|
|
<p>Copyright (c) 2013, hathach (tinyusb.org) All rights reserved.</p>
|
|
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
|
<ol type="1">
|
|
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
|
|
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
|
|
<li>Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
|
|
</ol>
|
|
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
|
<p>This file is part of the tinyusb stack. </p>
|
|
</div></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_f44c0f1c8d3a85cc1de1e7f4648a56e6.html">tinyusb</a></li><li class="navelem"><a class="el" href="dir_c0cc4bd312f8dff81e67f48a71e5871f.html">class</a></li><li class="navelem"><a class="el" href="cdc__device_8h.html">cdc_device.h</a></li>
|
|
<li class="footer">Generated on Wed Mar 26 2014 16:23:17 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>
|