API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Data Structures

struct  FATFS
 FATFS structure. More...
 
struct  FIL
 FIL structure. More...
 
struct  DIR
 DIR structure. More...
 
struct  FILINFO
 FILINFO structure. More...
 

Enumerations

enum  FRESULT {
  FR_OK = 0, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY,
  FR_NO_FILE, FR_NO_PATH, FR_INVALID_NAME, FR_DENIED,
  FR_EXIST, FR_INVALID_OBJECT, FR_WRITE_PROTECTED, FR_INVALID_DRIVE,
  FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_MKFS_ABORTED, FR_TIMEOUT,
  FR_LOCKED, FR_NOT_ENOUGH_CORE, FR_TOO_MANY_OPEN_FILES, FR_INVALID_PARAMETER
}
 FRESULT. More...
 

Detailed Description

Enumeration Type Documentation

enum FRESULT

FRESULT.

Enumerator
FR_OK 

(0) Succeeded

FR_DISK_ERR 

(1) A hard error occurred in the low level disk I/O layer disk_read(), disk_write() or disk_ioctl() function. 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.

FR_INT_ERR 

(2) Assertion failed. An insanity is detected in the internal process. One of the following possibilities are suspected. There is any error of the FAT structure on the volume. Work area (file system object, file object or etc...) is broken by stack overflow or any other application. This is the reason in most case. 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.

FR_NOT_READY 

(3) The physical drive cannot work

FR_NO_FILE 

(4) Could not find the file

FR_NO_PATH 

(5) Could not find the path

FR_INVALID_NAME 

(6) The path name format is invalid

FR_DENIED 

(7) Access denied due to prohibited access The required access was denied due to one of the following reasons: Write mode open against the read-only file. Deleting the read-only file or directory. Deleting the non-empty directory or current directory. Reading the file opened without FA_READ flag. Any modification to the file opened without FA_WRITE flag. Could not create the file or directory due to the directory table is full. Could not create the directory due to the volume is full.

FR_EXIST 

(8) Access denied due to prohibited access

FR_INVALID_OBJECT 

(9) The file/directory object is invalid

FR_WRITE_PROTECTED 

(10) The physical drive is write protected

FR_INVALID_DRIVE 

(11) The logical drive number is invalid

FR_NOT_ENABLED 

(12) The volume has no work area

FR_NO_FILESYSTEM 

(13) There is no valid FAT volume

FR_MKFS_ABORTED 

(14) The f_mkfs() aborted due to any parameter error The disk/partition size is too small. Not allowable cluster size for this disk. This can occure when number of clusters gets near the boundaries of FAT sub-types. There is no partition related to the logical drive. (Related option: _MULTI_PARTITION)

FR_TIMEOUT 

(15) Could not get a grant to access the volume within defined period

FR_LOCKED 

(16) The operation is rejected according to the file sharing policy

FR_NOT_ENOUGH_CORE 

(17) LFN working buffer could not be allocated Could not allocate a memory for LFN working buffer. (Related option: _USE_LFN) Size of the given CLMT buffer is insufficient for the file fragments.

FR_TOO_MANY_OPEN_FILES 

(18) Number of open files > _FS_SHARE

FR_INVALID_PARAMETER 

(19) Given parameter is invalid