Newer
Older
UbixOS / doc / html / d6 / dac / example_8c.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: fs/fat/example.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="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d6/dac/example_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">example.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d6/df3/fat__filelib_8h_source.html">fat_filelib.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for example.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/ddc/example_8c__incl.png" border="0" usemap="#fs_2fat_2example_8c" alt=""/></div>
<map name="fs_2fat_2example_8c" id="fs_2fat_2example_8c">
<area shape="rect" title=" " alt="" coords="27,5,141,32"/>
<area shape="rect" title=" " alt="" coords="5,80,67,107"/>
<area shape="rect" href="../../d6/df3/fat__filelib_8h.html" title=" " alt="" coords="91,80,173,107"/>
<area shape="rect" href="../../d4/d42/fat__opts_8h.html" title=" " alt="" coords="39,304,118,331"/>
<area shape="rect" href="../../d9/dca/fat__access_8h.html" title=" " alt="" coords="84,155,180,181"/>
<area shape="rect" href="../../d2/dba/fat__list_8h.html" title=" " alt="" coords="205,155,275,181"/>
<area shape="rect" href="../../d2/dd2/fat__defs_8h.html" title=" " alt="" coords="135,229,214,256"/>
<area shape="rect" href="../../d8/dce/fat_8h.html" title=" " alt="" coords="142,304,207,331"/>
<area shape="rect" href="../../de/d31/fat__types_8h.html" title=" " alt="" coords="231,304,318,331"/>
</map>
</div>
</div>
<p><a href="../../d6/dac/example_8c_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:acdef7a1fd863a6d3770c1268cb06add3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dac/example_8c.html#acdef7a1fd863a6d3770c1268cb06add3">main</a> ()</td></tr>
<tr class="separator:acdef7a1fd863a6d3770c1268cb06add3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05380d5bf119a93d89b3396ff9b0a653"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dac/example_8c.html#a05380d5bf119a93d89b3396ff9b0a653">media_init</a> ()</td></tr>
<tr class="separator:a05380d5bf119a93d89b3396ff9b0a653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac965e81e4e0f54efcfda500850a3c2aa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dac/example_8c.html#ac965e81e4e0f54efcfda500850a3c2aa">media_read</a> (unsigned long sector, unsigned char *<a class="el" href="../../d6/d4f/shell_8c.html#aff2566f4c366b48d73479bef43ee4d2e">buffer</a>, unsigned long sector_count)</td></tr>
<tr class="separator:ac965e81e4e0f54efcfda500850a3c2aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6840e26b7167186163560ab960cb7530"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dac/example_8c.html#a6840e26b7167186163560ab960cb7530">media_write</a> (unsigned long sector, unsigned char *<a class="el" href="../../d6/d4f/shell_8c.html#aff2566f4c366b48d73479bef43ee4d2e">buffer</a>, unsigned long sector_count)</td></tr>
<tr class="separator:a6840e26b7167186163560ab960cb7530"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="acdef7a1fd863a6d3770c1268cb06add3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdef7a1fd863a6d3770c1268cb06add3">&#9670;&nbsp;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d6/dac/example_8c_source.html#l00044">44</a> of file <a class="el" href="../../d6/dac/example_8c_source.html">example.c</a>.</p>

<p class="reference">References <a class="el" href="../../d9/dca/fat__access_8h_source.html#l00010">FAT_INIT_OK</a>, <a class="el" href="../../d4/d4d/tcpdump_8c_source.html#l00045">file</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00606">fl_attach_media()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00856">fl_fclose()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00638">fl_fopen()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l01162">fl_fwrite()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00584">fl_init()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l01362">fl_listdirectory()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l01314">fl_remove()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00627">fl_shutdown()</a>, <a class="el" href="../../d6/dac/example_8c_source.html#l00004">media_init()</a>, <a class="el" href="../../d6/dac/example_8c_source.html#l00010">media_read()</a>, and <a class="el" href="../../d6/dac/example_8c_source.html#l00027">media_write()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/dac/example_8c_acdef7a1fd863a6d3770c1268cb06add3_cgraph.png" border="0" usemap="#d6/dac/example_8c_acdef7a1fd863a6d3770c1268cb06add3_cgraph" alt=""/></div>
<map name="d6/dac/example_8c_acdef7a1fd863a6d3770c1268cb06add3_cgraph" id="d6/dac/example_8c_acdef7a1fd863a6d3770c1268cb06add3_cgraph">
<area shape="rect" title=" " alt="" coords="5,259,56,285"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#af9d46bc71dd1953eb78c99d6615ade92" title=" " alt="" coords="104,5,217,32"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#aef5675bf1c0db1d3e073ea36d4cf2d3a" title=" " alt="" coords="126,56,195,83"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#a800a79c9fb283c5f5199e08b1f2ada38" title=" " alt="" coords="127,107,194,133"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#a8349790c61beca1a9138fb28a2689607" title=" " alt="" coords="128,157,193,184"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#ac4154a1278a172ab8e6427eb64161179" title=" " alt="" coords="135,208,187,235"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#a28ef1f43950ba4743e5ddd57db5b8b6e" title=" " alt="" coords="109,259,212,285"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#ac3e517a9ac192e87329a62e5e8d53b2b" title=" " alt="" coords="123,309,199,336"/>
<area shape="rect" href="../../db/dcd/fat__filelib_8c.html#a9e4ba72f7c41f41f4a31ca5d46de3f5d" title=" " alt="" coords="115,360,206,387"/>
<area shape="rect" href="../../d6/dac/example_8c.html#a05380d5bf119a93d89b3396ff9b0a653" title=" " alt="" coords="120,411,201,437"/>
<area shape="rect" href="../../d6/dac/example_8c.html#ac965e81e4e0f54efcfda500850a3c2aa" title=" " alt="" coords="116,461,205,488"/>
<area shape="rect" href="../../d6/dac/example_8c.html#a6840e26b7167186163560ab960cb7530" title=" " alt="" coords="115,512,206,539"/>
</map>
</div>

</div>
</div>
<a id="a05380d5bf119a93d89b3396ff9b0a653"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05380d5bf119a93d89b3396ff9b0a653">&#9670;&nbsp;</a></span>media_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int media_init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d6/dac/example_8c_source.html#l00004">4</a> of file <a class="el" href="../../d6/dac/example_8c_source.html">example.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d6/dac/example_8c_source.html#l00044">main()</a>.</p>

</div>
</div>
<a id="ac965e81e4e0f54efcfda500850a3c2aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac965e81e4e0f54efcfda500850a3c2aa">&#9670;&nbsp;</a></span>media_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int media_read </td>
          <td>(</td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>sector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>sector_count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d6/dac/example_8c_source.html#l00010">10</a> of file <a class="el" href="../../d6/dac/example_8c_source.html">example.c</a>.</p>

<p class="reference">References <a class="el" href="../../d6/d4f/shell_8c_source.html#l00047">buffer</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d6/dac/example_8c_source.html#l00044">main()</a>.</p>

</div>
</div>
<a id="a6840e26b7167186163560ab960cb7530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6840e26b7167186163560ab960cb7530">&#9670;&nbsp;</a></span>media_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int media_write </td>
          <td>(</td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>sector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>sector_count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d6/dac/example_8c_source.html#l00027">27</a> of file <a class="el" href="../../d6/dac/example_8c_source.html">example.c</a>.</p>

<p class="reference">References <a class="el" href="../../d6/d4f/shell_8c_source.html#l00047">buffer</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d6/dac/example_8c_source.html#l00044">main()</a>.</p>

</div>
</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_97b3d2b63ac216821c2d7a22ee0ab2b0.html">fs</a></li><li class="navelem"><a class="el" href="../../dir_1df5146ffaa3c1b28ef7040087228944.html">fat</a></li><li class="navelem"><a class="el" href="../../d6/dac/example_8c.html">example.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>