📄 group__fat__fs.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>sd-reader: FAT access</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.6 --><div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</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><a href="files.html"><span>Files</span></a></li> </ul> </div></div><div class="contents"><h1>FAT access<br><small>[<a class="el" href="group__fat.html">FAT support</a>]</small></h1><hr><a name="_details"></a><h2>Detailed Description</h2>Basic functions for handling a FAT filesystem. <p><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">struct fat_fs_struct * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__fat__fs.html#g5d726bac328b49abc2e6fb022d97092a">fat_open</a> (struct <a class="el" href="structpartition__struct.html">partition_struct</a> *partition)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Opens a FAT filesystem. <a href="#g5d726bac328b49abc2e6fb022d97092a"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__fat__fs.html#g057612824886e115b88bf5affcf76829">fat_close</a> (struct fat_fs_struct *fs)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Closes a FAT filesystem. <a href="#g057612824886e115b88bf5affcf76829"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">offset_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__fat__fs.html#gab7768ca45847d5c4033a91984d65f1a">fat_get_fs_size</a> (const struct fat_fs_struct *fs)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the amount of total storage capacity of the filesystem in bytes. <a href="#gab7768ca45847d5c4033a91984d65f1a"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">offset_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__fat__fs.html#gcc43179721b97d82fefafaf5625350bb">fat_get_fs_free</a> (const struct fat_fs_struct *fs)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the amount of free storage capacity on the filesystem in bytes. <a href="#gcc43179721b97d82fefafaf5625350bb"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gfee6ea130655af67845e1cebe9a96bfc"></a><!-- doxytag: member="fat_fs::fat_get_fs_free_32_callback" ref="gfee6ea130655af67845e1cebe9a96bfc" args="(uint8_t *buffer, offset_t offset, void *p)" -->uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__fat__fs.html#gfee6ea130655af67845e1cebe9a96bfc">fat_get_fs_free_32_callback</a> (uint8_t *buffer, offset_t offset, void *p)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Callback function used for counting free clusters in a FAT32. <br></td></tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="g057612824886e115b88bf5affcf76829"></a><!-- doxytag: member="fat.c::fat_close" ref="g057612824886e115b88bf5affcf76829" args="(struct fat_fs_struct *fs)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void fat_close </td> <td>(</td> <td class="paramtype">struct fat_fs_struct * </td> <td class="paramname"> <em>fs</em> </td> <td> ) </td> <td></td> </tr> </table></div><div class="memdoc"><p>Closes a FAT filesystem. <p>When this function returns, the given filesystem descriptor will be invalid.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>fs</em> </td><td>The filesystem to close. </td></tr> </table></dl><dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fat.html#g5d726bac328b49abc2e6fb022d97092a" title="Opens a FAT filesystem.">fat_open</a> </dd></dl></div></div><p><a class="anchor" name="gcc43179721b97d82fefafaf5625350bb"></a><!-- doxytag: member="fat.c::fat_get_fs_free" ref="gcc43179721b97d82fefafaf5625350bb" args="(const struct fat_fs_struct *fs)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">offset_t fat_get_fs_free </td> <td>(</td> <td class="paramtype">const struct fat_fs_struct * </td> <td class="paramname"> <em>fs</em> </td> <td> ) </td> <td></td> </tr> </table></div><div class="memdoc"><p>Returns the amount of free storage capacity on the filesystem in bytes. <p><dl class="note" compact><dt><b>Note:</b></dt><dd>As the FAT filesystem is cluster based, this function does not return continuous values but multiples of the cluster size.</dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>fs</em> </td><td>The filesystem on which to operate. </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on failure, the free filesystem space in bytes otherwise. </dd></dl></div></div><p><a class="anchor" name="gab7768ca45847d5c4033a91984d65f1a"></a><!-- doxytag: member="fat.c::fat_get_fs_size" ref="gab7768ca45847d5c4033a91984d65f1a" args="(const struct fat_fs_struct *fs)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">offset_t fat_get_fs_size </td> <td>(</td> <td class="paramtype">const struct fat_fs_struct * </td> <td class="paramname"> <em>fs</em> </td> <td> ) </td> <td></td> </tr> </table></div><div class="memdoc"><p>Returns the amount of total storage capacity of the filesystem in bytes. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>fs</em> </td><td>The filesystem on which to operate. </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on failure, the filesystem size in bytes otherwise. </dd></dl></div></div><p><a class="anchor" name="g5d726bac328b49abc2e6fb022d97092a"></a><!-- doxytag: member="fat.c::fat_open" ref="g5d726bac328b49abc2e6fb022d97092a" args="(struct partition_struct *partition)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">struct fat_fs_struct* fat_open </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structpartition__struct.html">partition_struct</a> * </td> <td class="paramname"> <em>partition</em> </td> <td> ) </td> <td><code> [read]</code></td> </tr> </table></div><div class="memdoc"><p>Opens a FAT filesystem. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>partition</em> </td><td>Discriptor of partition on which the filesystem resides. </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on error, a FAT filesystem descriptor on success. </dd></dl><dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__fat.html#g057612824886e115b88bf5affcf76829" title="Closes a FAT filesystem.">fat_close</a> </dd></dl></div></div><p></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Mar 30 18:27:54 2009 for sd-reader by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -