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/mount.html | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 fatfs/doc/en/mount.html (limited to 'fatfs/doc/en/mount.html') diff --git a/fatfs/doc/en/mount.html b/fatfs/doc/en/mount.html new file mode 100644 index 0000000..c4a00fc --- /dev/null +++ b/fatfs/doc/en/mount.html @@ -0,0 +1,83 @@ + + +
+ + + + + +The f_mount fucntion registers/unregisters file system object to the FatFs module.
++FRESULT f_mount ( + FATFS* fs, /* [IN] File system object */ + const TCHAR* path, /* [IN] Logical drive number */ + BYTE opt /* [IN] Initialization option */ +); ++
+FR_OK, +FR_INVALID_DRIVE, +FR_DISK_ERR, +FR_NOT_READY, +FR_NO_FILESYSTEM +
+The f_mount() function registers/unregisters a file system object used for the logical drive to the FatFs module as follows:
+The file system object is the work area needed for each logical drive. It must be given to the logical drive with this function prior to use any other file functions except for f_fdisk() function. To unregister a work area, specify a NULL to the fs, and then the work area can be discarded.
+If forced mount is not specified, this function always succeeds regardless of the physical drive status due to delayed mount feature. It only clears (de-initializes) the given work area and registers its address to the internal table. No activity of the physical drive in this function. It can also be used to force de-initialized the registered work area of a logical drive. The volume mount processes, initialize the corresponding physical drive, find the FAT volume in it and initialize the work area, is performed in the subsequent file access functions when either or both of following condition is true.
+If the function with forced mount failed, it means that the file system object is registered but the volume is currently not available. Mount process will also be attempted in subsequent file access functions.
+If implementation of the disk I/O layer lacks media change detection, application program needs to perform a f_mount() after each media change to force cleared the file system object.
+Always available.
+