⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binding3.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</dl></dl></dl><dd><div class="Item"><a name="93690"> </a><b class="symbol_lc">initSocket</b> </div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="93691"> </a>See <a href="binding2.html#94715"><i class="title">initSocket</i></a>. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="93692"> </a><b class="symbol_lc">setWindow</b> </div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="93693"> </a>See <a href="binding2.html#93666"><i class="title">setWindow</i></a>. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="94970"> </a><b class="symbol_lc">setMappingContext <br></b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="94971"> </a>See <a href="binding2.html#93668"><i class="title">setMappingContext</i></a>. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="94972"> </a><b class="symbol_lc">getAndClearCardChangeIndicator <br></b></div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="94987"> </a>See <a href="binding2.html#93670"><i class="title">getAndClearCardChangeIndicator</i></a>. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="94992"> </a><b class="symbol_lc">writeProtected</b> </div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="93699"> </a>See <a href="binding2.html#93672"><i class="title">writeProtected</i></a>. </div><br></dl></dl></dl></dl></dl><dd><div class="Item"><a name="96772"> </a><b class="symbol_lc">freeSocket</b> </div><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dl class="margin"><dd><div class="Indent5"><a name="96768"> </a>See <a href="binding2.html#97795"><i class="title">freeSocket</i></a>. </div><br></dl></dl></dl></dl></dl></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="96495">3.3.3  &nbsp;&nbsp;Writing an <b class="routine"><i class="routine">flDelayLoop</i></b><b>(&nbsp;)</b>Routine<b>(&nbsp;)</b></a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="96496"> </a>TrueFFS uses <b class="routine"><i class="routine">flDelayLoop</i></b><b>(&nbsp;)</b>to handle the timing needs of interacting with the flash hardware. The purpose of this function is simply to wait for the number of cycles requested. This function must be of the form:</p></dl><dl class="margin"><dd><pre class="Code"><b><a name="97874">void&nbsp;flDelayLoop(int)</a></b></pre></dl><dl class="margin"><dd><p class="Body"><a name="97891"> </a>For the <b class="file">mv177 </b>BSP, <b class="routine"><i class="routine">flDelayLoop</i></b><b>(&nbsp;)</b>is defined as followed: </p></dl><dl class="margin"><dd><pre class="Code"><b><a name="96497">void&nbsp;flDelayLoop &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;cycles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;loop&nbsp;count&nbsp;to&nbsp;be&nbsp;consumed&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;) &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(--cycles); &nbsp;&nbsp;&nbsp;&nbsp;}</a></b></pre></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="96471">3.3.4  &nbsp;&nbsp;Writing an <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b> Routine </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="98034"> </a>TrueFFS uses <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b>to make sure that <b class="file">chipSize</b> is never larger than <b class="file">windowSize</b>. Your <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b> must be of the form:</p></dl><dl class="margin"><dd><pre class="Code"><b><a name="98035">long&nbsp;int&nbsp;flFitInSocketWindow &nbsp;&nbsp;&nbsp;&nbsp;( &nbsp;&nbsp;&nbsp;&nbsp;long&nbsp;int&nbsp;chipSize,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;size&nbsp;of&nbsp;single&nbsp;physical&nbsp;chip&nbsp;in&nbsp;bytes&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interleaving,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;flash&nbsp;chip&nbsp;interleaving&nbsp;(1,2,4&nbsp;etc)&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;long&nbsp;int&nbsp;windowSize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;socket&nbsp;window&nbsp;size&nbsp;in&nbsp;bytes&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;)</a></b></pre></dl><dl class="margin"><dd><p class="Body"><a name="98057"> </a>If your BSP uses a sliding window or if it maps all the flash into the window, your definition for this function can simply return <b class="symbol_lc">chipSize</b> as its function value. </p><dd><p class="Body"><a name="98072"> </a>If your BSP uses a fixed window that is not large enough to map the entire flash medium into host memory, your <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b>function must compare <b class="file">chipSize</b> and the <b class="file">windowSize</b>. If <b class="file">chipSize</b> is smaller than or equal to <b class="file">windowSize</b>, this function can return <b class="file">chipSize</b> as its function value. If <b class="file">chipSize</b> is larger than <b class="file">windowSize</b>, this function should return a size that fits within <b class="file">windowSize</b>. </p><dd><p class="Body"><a name="98088"> </a>The MTD mapping function uses the returned value of the <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b>function to adjust the value of <b class="file">FLSocket.chipSize</b>. For an example of a BSP that defines a non-trivial <b class="routine"><i class="routine">flFitInSocketWindow</i></b><b>(&nbsp;)</b>function, look at the mv177<b class="file"> </b>BSP. </p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="binding.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="binding2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="binding4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -