]> cloudbase.mooo.com Git - z180-stamp.git/blame - fatfs/doc/en/rc.html
Merge branch 'chan-fatfs' into fatfs-integration
[z180-stamp.git] / fatfs / doc / en / rc.html
CommitLineData
53668523
L
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
5<meta http-equiv="Content-Style-Type" content="text/css">\r
6<link rel="up" title="FatFs" href="../00index_e.html">\r
7<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/rc.html">\r
8<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r
70702af1 9<title>FatFs - API Return Code</title>\r
53668523
L
10</head>\r
11\r
12<body>\r
70702af1
L
13<h1>Return Code of API Functions</h1>\r
14<p>Most of API functions return common result code as enum type <tt>FRESULT</tt>. When an API function succeeded, it returns zero (<tt>FR_OK</tt>), otherwise it returns non-zero value indicates type of error.</p>\r
53668523
L
15\r
16<dl class="ret">\r
70702af1 17\r
53668523
L
18<dt id="ok">FR_OK (0)</dt>\r
19<dd>The function succeeded.</dd>\r
70702af1 20\r
53668523 21<dt id="de">FR_DISK_ERR</dt>\r
70702af1
L
22<dd>An unrecoverable hard error occured in the lower layer, <tt>disk_read</tt>, <tt>disk_write</tt> or <tt>disk_ioctl</tt> function.<br>Note that if once this error occured at any operation to an open file, the file object is aborted and all operations to the file except for close will be rejected.</dd>\r
23\r
53668523
L
24<dt id="ie">FR_INT_ERR</dt>\r
25<dd>Assertion failed. An insanity is detected in the internal process. One of the following possibilities is suspected.\r
26<ul>\r
7b78a5a2 27<li>Work area (file system object, file object or etc...) has been broken by stack overflow or any other tasks. This is the reason in most case.</li>\r
70702af1
L
28<li>There is an error of the FAT structure on the volume.</li>\r
29<li>There is a bug in the FatFs module itself.</li>\r
53668523
L
30</ul>\r
31Note that if once this error occured at any operation to an open file, the file object is aborted and all operations to the file except for close will be rejected.\r
32</dd>\r
70702af1 33\r
53668523 34<dt id="nr">FR_NOT_READY</dt>\r
70702af1
L
35<dd>The storage device cannot work due to a failure of <a href="dinit.html"><tt>disk_initialize</tt></a> function due to no medium or any other reason.</dd>\r
36\r
53668523
L
37<dt id="nf">FR_NO_FILE</dt>\r
38<dd>Could not find the file.</dd>\r
70702af1 39\r
53668523
L
40<dt id="np">FR_NO_PATH</dt>\r
41<dd>Could not find the path.</dd>\r
70702af1 42\r
53668523
L
43<dt id="in">FR_INVALID_NAME</dt>\r
44<dd>The given string is invalid as the <a href="filename.html">path name</a>.</dd>\r
70702af1 45\r
53668523
L
46<dt id="dn">FR_DENIED</dt>\r
47<dd>The required access was denied due to one of the following reasons:\r
48<ul>\r
49<li>Write mode open against the read-only file.</li>\r
50<li>Deleting the read-only file or directory.</li>\r
51<li>Deleting the non-empty directory or current directory.</li>\r
52<li>Reading the file opened without <tt>FA_READ</tt> flag.</li>\r
53<li>Any modification to the file opened without <tt>FA_WRITE</tt> flag.</li>\r
70702af1
L
54<li>Could not create the object due to root directory full or disk full.</li>\r
55<li>Could not allocate a contiguous area to the file.</li>\r
53668523
L
56</ul>\r
57</dd>\r
70702af1 58\r
53668523 59<dt id="ex">FR_EXIST</dt>\r
70702af1
L
60<dd>Name collision. An object with the same name is already existing.</dd>\r
61\r
53668523 62<dt id="io">FR_INVALID_OBJECT</dt>\r
70702af1
L
63<dd>The file/directory object is invalid or a null pointer is given. There are some reasons as follows:\r
64<ul>\r
65<li>It has been closed, it has not been opened or it has been collapsed.</li>\r
66<li>It has been invalidated by a voulme mount process. Open objects on the volume are invalidated by voulme mount process.</li>\r
67<li>Physical drive is not ready to work due to a media removal.</li>\r
68</ul>\r
69</dd>\r
70\r
53668523 71<dt id="wp">FR_WRITE_PROTECTED</dt>\r
70702af1
L
72<dd>A write mode operation against the write-protected media.</dd>\r
73\r
53668523 74<dt id="id">FR_INVALID_DRIVE</dt>\r
70702af1
L
75<dd>Invalid drive number is specified in the path name. A null pointer is given as the path name. (Related option: <tt><a href="config.html#volumes">_VOLUMES</a></tt>)</dd>\r
76\r
53668523 77<dt id="ne">FR_NOT_ENABLED</dt>\r
70702af1
L
78<dd>Work area for the logical drive has not been registered by <tt>f_mount</tt> function.</dd>\r
79\r
53668523
L
80<dt id="ns">FR_NO_FILESYSTEM</dt>\r
81<dd>There is no valid FAT volume on the drive.</dd>\r
70702af1 82\r
53668523 83<dt id="ma">FR_MKFS_ABORTED</dt>\r
70702af1 84<dd>The <tt>f_mkfs</tt> function aborted before start in format due to a reason as follows:\r
53668523 85<ul>\r
70702af1
L
86<li>It is pmpossible to formart with the given parameters.</li>\r
87<li>The size of volume is too small.</li>\r
88<li>The size of given work area is too small.</li>\r
89<li>The partition bound to the logical drive coulud not be found. (Related option: <tt><a href="config.html#multi_partition">_MULTI_PARTITION</a></tt>)</li>\r
53668523
L
90</ul>\r
91</dd>\r
70702af1 92\r
53668523 93<dt id="tm">FR_TIMEOUT</dt>\r
70702af1
L
94<dd>The function was canceled due to a timeout of <a href="appnote.html#reentrant">thread-safe control</a>. (Related option: <tt><a href="config.html#timeout">_TIMEOUT</a></tt>)</dd>\r
95\r
53668523 96<dt id="lo">FR_LOCKED</dt>\r
70702af1
L
97<dd>The operation to the object was rejected by <a href="appnote.html#dup">file sharing control</a>. (Related option: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>\r
98\r
53668523
L
99<dt id="nc">FR_NOT_ENOUGH_CORE</dt>\r
100<dd>Not enough memory for the operation. There is one of the following reasons:\r
101<ul>\r
70702af1 102<li>Could not allocate a memory for LFN working buffer. (Related option: <tt><a href="config.html#use_lfn">_USE_LFN</a></tt>)</li>\r
7b78a5a2 103<li>Size of the given buffer is insufficient for the size required.</li>\r
53668523
L
104</ul>\r
105</dd>\r
70702af1 106\r
53668523 107<dt id="tf">FR_TOO_MANY_OPEN_FILES</dt>\r
70702af1
L
108<dd>Number of open objects has been reached maximum value and no more object can be opened. (Related option: <tt><a href="config.html#fs_lock">_FS_LOCK</a></tt>)</dd>\r
109\r
53668523 110<dt id="ip">FR_INVALID_PARAMETER</dt>\r
70702af1 111<dd>The given parameter is invalid or there is an inconsistent for the volume.</dd>\r
53668523
L
112</dl>\r
113\r
70702af1 114<p class="foot"><a href="../00index_e.html">Return</a></p>\r
53668523
L
115</body>\r
116</html>\r