X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/0f3b947bda5f34662a611272b9f12199e0da9aca..976db69ffa80c4d499e53f6f22c26d784fdac0a1:/fatfs/documents/doc/write.html diff --git a/fatfs/documents/doc/write.html b/fatfs/documents/doc/write.html index d451255..3d16674 100644 --- a/fatfs/documents/doc/write.html +++ b/fatfs/documents/doc/write.html @@ -32,9 +32,9 @@ FRESULT f_write (
buff
Pointer to the data to be written.
btw
-
Specifies number of bytes to write in range of UINT type.
+
Specifies number of bytes to write in range of UINT type. If the data needs to be written fast, it should be written in large chunk as possible.
bw
-
Pointer to the UINT variable to return the number of bytes written. This value is always valid after the function call regardless of the function return code.
+
Pointer to the UINT variable that receives the number of bytes written. This value is always valid after the function call regardless of the function return code. If the return value is equal to btw, the function return code should be FR_OK.
@@ -54,7 +54,7 @@ FRESULT f_write (

Description

-

The function starts to write data to the file at the position pointed by the read/write pointer. The read/write pointer advances as number of bytes written. After the function succeeded, *bw should be checked to detect the disk full. In case of *bw < btw, it means the volume got full during the write operation. The function can take a time when the volume is full or close to full.

+

The function starts to write data to the file at the file offset pointed by read/write pointer. The read/write pointer advances as number of bytes written. After the function succeeded, *bw should be checked to detect the disk full. In case of *bw < btw, it means the volume got full during the write operation. The function can take a time when the volume is full or close to full.

@@ -64,6 +64,12 @@ FRESULT f_write ( +
+

Example

+

Refer to the example in f_open.

+
+ +

See Also

f_open, f_read, fputc, fputs, fprintf, f_close, FIL