154 lines
19 KiB
HTML
154 lines
19 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.9.1"/>
|
|
<title>discoverpixy: discovery/libs/StmUsbHost/STM32_USB_HOST_Library/Class/MSC/src/usbh_msc_bot.c 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/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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">discoverpixy
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.9.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 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>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 List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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)">
|
|
</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_84db96586f7d962b526d6d9627d831c2.html">discovery</a></li><li class="navelem"><a class="el" href="dir_07523c13f04fd35d8848cb17a371cb5b.html">libs</a></li><li class="navelem"><a class="el" href="dir_a041ff5c2b284f3abb06af95928aadaf.html">StmUsbHost</a></li><li class="navelem"><a class="el" href="dir_bca67a7d060bcaa9c28f8aab2fffa8aa.html">STM32_USB_HOST_Library</a></li><li class="navelem"><a class="el" href="dir_0df032ba06b8eb810b5f40e1c65a502c.html">Class</a></li><li class="navelem"><a class="el" href="dir_8afe10de55c8b894271ff1b0bd6e1529.html">MSC</a></li><li class="navelem"><a class="el" href="dir_462dca7257139866f47423804ac1f6c4.html">src</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">usbh_msc_bot.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>This file includes the mass storage related functions.
|
|
<a href="#details">More...</a></p>
|
|
<div class="textblock"><code>#include "usbh_msc_core.h"</code><br />
|
|
<code>#include "<a class="el" href="usbh__msc__scsi_8h_source.html">usbh_msc_scsi.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="usbh__msc__bot_8h_source.html">usbh_msc_bot.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="usbh__ioreq_8h_source.html">usbh_ioreq.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="usbh__def_8h_source.html">usbh_def.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="usb__hcd__int_8h_source.html">usb_hcd_int.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for usbh_msc_bot.c:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="usbh__msc__bot_8c__incl.png" border="0" usemap="#discovery_2libs_2_stm_usb_host_2_s_t_m32___u_s_b___h_o_s_t___library_2_class_2_m_s_c_2src_2usbh__msc__bot_8c" alt=""/></div>
|
|
<map name="discovery_2libs_2_stm_usb_host_2_s_t_m32___u_s_b___h_o_s_t___library_2_class_2_m_s_c_2src_2usbh__msc__bot_8c" id="discovery_2libs_2_stm_usb_host_2_s_t_m32___u_s_b___h_o_s_t___library_2_class_2_m_s_c_2src_2usbh__msc__bot_8c">
|
|
<area shape="rect" id="node3" href="usbh__msc__scsi_8h.html" title="Header file for usbh_msc_scsi.c. " alt="" coords="2020,109,2144,136"/><area shape="rect" id="node45" href="usbh__def_8h.html" title="Definitions used in the USB host library. " alt="" coords="2297,333,2382,360"/><area shape="rect" id="node47" href="usbh__msc__bot_8h.html" title="Header file for usbh_msc_bot.c. " alt="" coords="2168,109,2287,136"/><area shape="rect" id="node48" href="usbh__ioreq_8h.html" title="Header file for usbh_ioreq.c. " alt="" coords="2362,184,2458,211"/><area shape="rect" id="node49" href="usb__hcd__int_8h.html" title="Peripheral Device Interface Layer. " alt="" coords="1895,259,1997,285"/><area shape="rect" id="node4" href="usbh__stdreq_8h.html" title="Header file for usbh_stdreq.c. " alt="" coords="2097,184,2201,211"/><area shape="rect" id="node5" href="usb__conf_8h_source.html" title="usb_conf.h" alt="" coords="2193,557,2278,584"/><area shape="rect" id="node40" href="usb__hcd_8h.html" title="Host layer Header file. " alt="" coords="2073,333,2155,360"/><area shape="rect" id="node44" href="usbh__core_8h.html" title="Header file for usbh_core.c. " alt="" coords="2143,259,2237,285"/><area shape="rect" id="node6" href="stm32f4xx_8h.html" title="CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg..." alt="" coords="2189,632,2282,659"/><area shape="rect" id="node7" href="core__cm4_8h.html" title="CMSIS Cortex-M4 Core Peripheral Access Layer Header File. " alt="" coords="237,707,327,733"/><area shape="rect" id="node12" href="system__stm32f4xx_8h.html" title="CMSIS Cortex-M4 Device System Source File for STM32F4xx devices. " alt="" coords="1472,707,1615,733"/><area shape="rect" id="node13" href="stm32f4xx__conf_8h_source.html" title="stm32f4xx_conf.h" alt="" coords="2299,707,2423,733"/><area shape="rect" id="node9" href="core__cm_instr_8h.html" title="CMSIS Cortex-M Core Instruction Access Header File. " alt="" coords="95,781,202,808"/><area shape="rect" id="node10" href="core__cm_func_8h.html" title="CMSIS Cortex-M Core Function Access Header File. " alt="" coords="226,781,338,808"/><area shape="rect" id="node11" href="core__cm4__simd_8h.html" title="CMSIS Cortex-M4 SIMD Header File. " alt="" coords="362,781,487,808"/><area shape="rect" id="node14" href="stm32f4xx__adc_8h.html" title="This file contains all the functions prototypes for the ADC firmware library. " alt="" coords="512,781,633,808"/><area shape="rect" id="node15" href="stm32f4xx__crc_8h.html" title="This file contains all the functions prototypes for the CRC firmware library. " alt="" coords="657,781,776,808"/><area shape="rect" id="node16" href="stm32f4xx__dbgmcu_8h.html" title="This file contains all the functions prototypes for the DBGMCU firmware library. " alt="" coords="801,781,947,808"/><area shape="rect" id="node17" href="stm32f4xx__dma_8h.html" title="This file contains all the functions prototypes for the DMA firmware library. " alt="" coords="971,781,1097,808"/><area shape="rect" id="node18" href="stm32f4xx__exti_8h.html" title="This file contains all the functions prototypes for the EXTI firmware library. " alt="" coords="1121,781,1243,808"/><area shape="rect" id="node19" href="stm32f4xx__flash_8h.html" title="This file contains all the functions prototypes for the FLASH firmware library. " alt="" coords="1267,781,1393,808"/><area shape="rect" id="node20" href="stm32f4xx__gpio_8h.html" title="This file contains all the functions prototypes for the GPIO firmware library. " alt="" coords="1417,781,1541,808"/><area shape="rect" id="node21" href="stm32f4xx__i2c_8h.html" title="This file contains all the functions prototypes for the I2C firmware library. " alt="" coords="1565,781,1682,808"/><area shape="rect" id="node22" href="stm32f4xx__iwdg_8h.html" title="This file contains all the functions prototypes for the IWDG firmware library. " alt="" coords="1707,781,1833,808"/><area shape="rect" id="node23" href="stm32f4xx__pwr_8h.html" title="This file contains all the functions prototypes for the PWR firmware library. " alt="" coords="1857,781,1976,808"/><area shape="rect" id="node24" href="stm32f4xx__rcc_8h.html" title="This file contains all the functions prototypes for the RCC firmware library. " alt="" coords="2000,781,2119,808"/><area shape="rect" id="node25" href="stm32f4xx__rtc_8h.html" title="This file contains all the functions prototypes for the RTC firmware library. " alt="" coords="2143,781,2258,808"/><area shape="rect" id="node26" href="stm32f4xx__sdio_8h.html" title="This file contains all the functions prototypes for the SDIO firmware library. " alt="" coords="2283,781,2407,808"/><area shape="rect" id="node27" href="stm32f4xx__spi_8h.html" title="This file contains all the functions prototypes for the SPI firmware library. " alt="" coords="2430,781,2547,808"/><area shape="rect" id="node28" href="stm32f4xx__syscfg_8h.html" title="This file contains all the functions prototypes for the SYSCFG firmware library. " alt="" coords="2571,781,2710,808"/><area shape="rect" id="node29" href="stm32f4xx__tim_8h.html" title="This file contains all the functions prototypes for the TIM firmware library. " alt="" coords="2735,781,2853,808"/><area shape="rect" id="node30" href="stm32f4xx__usart_8h.html" title="This file contains all the functions prototypes for the USART firmware library. " alt="" coords="2877,781,3007,808"/><area shape="rect" id="node31" href="stm32f4xx__wwdg_8h.html" title="This file contains all the functions prototypes for the WWDG firmware library. " alt="" coords="3031,781,3163,808"/><area shape="rect" id="node32" href="misc_8h.html" title="This file contains all the functions prototypes for the miscellaneous firmware library functions (add..." alt="" coords="3187,781,3249,808"/><area shape="rect" id="node33" href="stm32f4xx__cryp_8h.html" title="This file contains all the functions prototypes for the Cryptographic processor(CRYP) firmware librar..." alt="" coords="3273,781,3398,808"/><area shape="rect" id="node34" href="stm32f4xx__hash_8h.html" title="This file contains all the functions prototypes for the HASH firmware library. " alt="" coords="3422,781,3550,808"/><area shape="rect" id="node35" href="stm32f4xx__rng_8h.html" title="This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library..." alt="" coords="3575,781,3693,808"/><area shape="rect" id="node36" href="stm32f4xx__can_8h.html" title="This file contains all the functions prototypes for the CAN firmware library. " alt="" coords="3717,781,3839,808"/><area shape="rect" id="node37" href="stm32f4xx__dac_8h.html" title="This file contains all the functions prototypes for the DAC firmware library. " alt="" coords="3863,781,3984,808"/><area shape="rect" id="node38" href="stm32f4xx__dcmi_8h.html" title="This file contains all the functions prototypes for the DCMI firmware library. " alt="" coords="4009,781,4137,808"/><area shape="rect" id="node39" href="stm32f4xx__fsmc_8h.html" title="This file contains all the functions prototypes for the FSMC firmware library. " alt="" coords="4161,781,4289,808"/><area shape="rect" id="node41" href="usb__regs_8h.html" title="hardware registers " alt="" coords="2073,483,2160,509"/><area shape="rect" id="node42" href="usb__core_8h.html" title="Header of the Core Layer. " alt="" coords="2172,408,2259,435"/><area shape="rect" id="node43" href="usb__defines_8h.html" title="Header of the Core Layer. " alt="" coords="2184,483,2287,509"/><area shape="rect" id="node46" href="usbh__conf_8h_source.html" title="usbh_conf.h" alt="" coords="2180,333,2272,360"/></map>
|
|
</div>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga11e54c437be5e58f47a5fe3966a8de29"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga11e54c437be5e58f47a5fe3966a8de29">USBH_MSC_Init</a> (<a class="el" href="struct_u_s_b___o_t_g__handle.html">USB_OTG_CORE_HANDLE</a> *pdev)</td></tr>
|
|
<tr class="memdesc:ga11e54c437be5e58f47a5fe3966a8de29"><td class="mdescLeft"> </td><td class="mdescRight">USBH_MSC_Init Initializes the mass storage parameters. <a href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga11e54c437be5e58f47a5fe3966a8de29">More...</a><br /></td></tr>
|
|
<tr class="separator:ga11e54c437be5e58f47a5fe3966a8de29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9bc4c591c3ab94488eef0886cc127ac9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga9bc4c591c3ab94488eef0886cc127ac9">USBH_MSC_HandleBOTXfer</a> (<a class="el" href="struct_u_s_b___o_t_g__handle.html">USB_OTG_CORE_HANDLE</a> *pdev, <a class="el" href="struct___host___type_def.html">USBH_HOST</a> *phost)</td></tr>
|
|
<tr class="memdesc:ga9bc4c591c3ab94488eef0886cc127ac9"><td class="mdescLeft"> </td><td class="mdescRight">USBH_MSC_HandleBOTXfer This function manages the different states of BOT transfer and updates the status to upper layer. <a href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga9bc4c591c3ab94488eef0886cc127ac9">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9bc4c591c3ab94488eef0886cc127ac9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0ccf29ca7caaf1ff72dfb2b03683a8a1"><td class="memItemLeft" align="right" valign="top">USBH_Status </td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga0ccf29ca7caaf1ff72dfb2b03683a8a1">USBH_MSC_BOT_Abort</a> (<a class="el" href="struct_u_s_b___o_t_g__handle.html">USB_OTG_CORE_HANDLE</a> *pdev, <a class="el" href="struct___host___type_def.html">USBH_HOST</a> *phost, uint8_t direction)</td></tr>
|
|
<tr class="memdesc:ga0ccf29ca7caaf1ff72dfb2b03683a8a1"><td class="mdescLeft"> </td><td class="mdescRight">USBH_MSC_BOT_Abort This function manages the different Error handling for STALL. <a href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga0ccf29ca7caaf1ff72dfb2b03683a8a1">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0ccf29ca7caaf1ff72dfb2b03683a8a1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4267157a644167addaa015ae277fecd3"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga4267157a644167addaa015ae277fecd3">USBH_MSC_DecodeCSW</a> (<a class="el" href="struct_u_s_b___o_t_g__handle.html">USB_OTG_CORE_HANDLE</a> *pdev, <a class="el" href="struct___host___type_def.html">USBH_HOST</a> *phost)</td></tr>
|
|
<tr class="memdesc:ga4267157a644167addaa015ae277fecd3"><td class="mdescLeft"> </td><td class="mdescRight">USBH_MSC_DecodeCSW This function decodes the CSW received by the device and updates the same to upper layer. <a href="group___u_s_b_h___m_s_c___b_o_t___private___functions.html#ga4267157a644167addaa015ae277fecd3">More...</a><br /></td></tr>
|
|
<tr class="separator:ga4267157a644167addaa015ae277fecd3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:ga95be9aff809192ad1ac5234193bdeb40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga95be9aff809192ad1ac5234193bdeb40"></a>
|
|
__ALIGN_BEGIN <a class="el" href="union___u_s_b_h___c_b_w___block.html">HostCBWPkt_TypeDef</a> USBH_MSC_CBWData </td><td class="memItemRight" valign="bottom"><b>__ALIGN_END</b></td></tr>
|
|
<tr class="separator:ga95be9aff809192ad1ac5234193bdeb40"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0f65ccffa64c9641cad41f644cbfb742"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0f65ccffa64c9641cad41f644cbfb742"></a>
|
|
<a class="el" href="struct___b_o_t_xfer.html">USBH_BOTXfer_TypeDef</a> </td><td class="memItemRight" valign="bottom"><b>USBH_MSC_BOTXferParam</b></td></tr>
|
|
<tr class="separator:ga0f65ccffa64c9641cad41f644cbfb742"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>This file includes the mass storage related functions. </p>
|
|
<dl class="section author"><dt>Author</dt><dd>MCD Application Team </dd></dl>
|
|
<dl class="section version"><dt>Version</dt><dd>V2.0.0 </dd></dl>
|
|
<dl class="section date"><dt>Date</dt><dd>22-July-2011 </dd></dl>
|
|
<dl class="section attention"><dt>Attention</dt><dd></dd></dl>
|
|
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.</p>
|
|
<h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
|
</div></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Sun May 10 2015 15:15:19 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|