From 5366852335044c1e68a5c32548d3051cc943552f Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 19 Aug 2014 15:31:33 +0200 Subject: Import fatfs R0.10b FatFs Module Source Files R0.10b Author: (C)ChaN, 2014 (http://elm-chan.org) URL: http://elm-chan.org/fsw/ff/ff10b.zip --- fatfs/doc/en/write.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 fatfs/doc/en/write.html (limited to 'fatfs/doc/en/write.html') diff --git a/fatfs/doc/en/write.html b/fatfs/doc/en/write.html new file mode 100644 index 0000000..925fd56 --- /dev/null +++ b/fatfs/doc/en/write.html @@ -0,0 +1,74 @@ + + +
+ + + + + +The f_write writes data to a file.
++FRESULT f_write ( + FIL* fp, /* [IN] Pointer to the file object structure */ + const void* buff, /* [IN] Pointer to the data to be written */ + UINT btw, /* [IN] Number of bytes to write */ + UINT* bw /* [OUT] Pointer to the variable to return number of bytes written */ +); ++
+FR_OK, +FR_DISK_ERR, +FR_INT_ERR, +FR_NOT_READY, +FR_INVALID_OBJECT, +FR_TIMEOUT +
+The read/write pointer of the file object advances number of bytes written. After the function succeeded, *bw should be checked to detect the disk full. In case of *bw is less than 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.
+Available when _FS_READONLY == 0.
+