Module Private Functions.
More...
Module Private Functions.
static BYTE check_fs |
( |
FATFS * |
fs, |
|
|
DWORD |
sect |
|
) |
| |
|
static |
Load a sector and check if it is an FAT boot sector.
- Parameters
-
fs | File system object |
sect | Sector# (lba) to check if it is an FAT boot record or not |
- Returns
- 0: FAT boor sector
- 1: Valid boor sector but not FAT
- 2: Not a boot sector
- 3: Disk error
Definition at line 2182 of file ff.c.
static FRESULT create_name |
( |
DIR * |
dp, |
|
|
const TCHAR ** |
path |
|
) |
| |
|
static |
Pick a segment and create the object name in directory form.
- Parameters
-
dp | Pointer to the directory object |
path | Pointer to pointer to the segment in the path string |
- Returns
- FR_OK: Successful
- FR_DISK_ERR: A disk error
Definition at line 1829 of file ff.c.
Read an object from the directory.
- Parameters
-
dp | Pointer to the directory object |
vol | Filtered
- 0: file/directory
- 1: volume label
|
- Returns
- FRESULT
Definition at line 1659 of file ff.c.
Register an object to the directory.
- Parameters
-
dp | Target directory with object name to be created |
- Returns
- FR_OK: Successful
- FR_DENIED: No free entry or too many SFN collision
- FR_DISK_ERR: Disk error
Definition at line 1714 of file ff.c.
Remove an object from the directory.
- Parameters
-
dp | Directory object pointing the entry to be removed |
- Returns
- FR_OK: Successful
- FR_DISK_ERR: A disk error
Definition at line 1788 of file ff.c.
static FRESULT find_volume |
( |
FATFS ** |
rfs, |
|
|
const TCHAR ** |
path, |
|
|
BYTE |
wmode |
|
) |
| |
|
static |
Find logical drive and check if the volume is mounted.
- Parameters
-
rfs | Pointer to pointer to the found file system object |
path | Pointer to pointer to the path name (drive number) |
wmode | !=0: Check write protection for write access |
- Returns
- FRESULT
Definition at line 2206 of file ff.c.
static FRESULT follow_path |
( |
DIR * |
dp, |
|
|
const TCHAR * |
path |
|
) |
| |
|
static |
Follow a file path.
- Parameters
-
dp | Directory object to return last directory and found object |
path | Full-path string to find a file or directory |
- Returns
- FRESULT
Definition at line 2123 of file ff.c.
static void get_fileinfo |
( |
DIR * |
dp, |
|
|
FILINFO * |
fno |
|
) |
| |
|
static |
Get file information from directory entry.
- Parameters
-
dp | Pointer to the directory object |
fno | Pointer to the file information to be filled |
Definition at line 2033 of file ff.c.
static int get_ldnumber |
( |
const TCHAR ** |
path | ) |
|
|
static |
Get logical drive number from path name.
- Parameters
-
path | Pointer to pointer to the path name |
- Returns
- Returns logical drive number (-1:invalid drive)
Definition at line 2096 of file ff.c.
static FRESULT validate |
( |
void * |
obj | ) |
|
|
static |
Check if the file/directory object is valid or not.
- Parameters
-
obj | Pointer to the object FIL/DIR to check validity |
- Returns
- FR_OK(0): The object is valid
- !=0: Invalid
Definition at line 2366 of file ff.c.