X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5..289f6a146c0b2087607d8d8659531ea90142779a:/fatfs/documents/doc/write.html?ds=sidebyside diff --git a/fatfs/documents/doc/write.html b/fatfs/documents/doc/write.html new file mode 100644 index 0000000..d451255 --- /dev/null +++ b/fatfs/documents/doc/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_DENIED, +FR_INVALID_OBJECT, +FR_TIMEOUT +
+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.
+Available when FF_FS_READONLY == 0.
+