CARME-M4 BSP
V1.5
|
FatFs module is a generic FAT file system module. More...
Modules | |
Disk IO | |
Low level disk I/O module skeleton for FatFs. | |
User defined Functions | |
Additional user defined functions. | |
FIL.flag | |
File access control and file status flags (FIL.flag) | |
FATFS.fs_type | |
FAT sub type (FATFS.fs_type) | |
File attributes | |
File attribute bits for directory entry. | |
Multi-byte word access | |
Multi-byte word access macros. | |
Configuration | |
FatFs configuration. | |
Private definitions | |
Module Private Definitions. | |
Private functions | |
Module Private Functions. | |
CARME_SDIO_SD | |
This file provides all the SD Card driver firmware functions. | |
FreeRTOS Task Synchronization | |
FatFs synchronize functions. | |
Integer | |
Integer type definitions for FatFs module. | |
Files | |
file | ff.h |
file | ff.c |
Data Structures | |
struct | FATFS |
File system object structure. More... | |
struct | FIL |
File object structure. More... | |
struct | DIR |
Directory object structure. More... | |
struct | FILINFO |
File status structure. More... | |
Macros | |
#define | LD2PD(vol) (BYTE)(vol) |
#define | LD2PT(vol) 0 |
#define | _T(x) x |
#define | _TEXT(x) x |
#define | f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0) |
Filepointer at the end of file? | |
#define | f_error(fp) ((fp)->err) |
#define | f_tell(fp) ((fp)->fptr) |
#define | f_size(fp) ((fp)->fsize) |
#define | EOF (-1) |
Typedefs | |
typedef char | TCHAR |
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 } |
File function return code. More... | |
Functions | |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
Open or Create a File. More... | |
FRESULT | f_close (FIL *fp) |
Close File. More... | |
FRESULT | f_read (FIL *fp, void *buff, UINT btr, UINT *br) |
Read File. More... | |
FRESULT | f_write (FIL *fp, const void *buff, UINT btw, UINT *bw) |
Write File. More... | |
FRESULT | f_lseek (FIL *fp, DWORD ofs) |
Seek File R/W Pointer. More... | |
FRESULT | f_truncate (FIL *fp) |
Truncate File. More... | |
FRESULT | f_sync (FIL *fp) |
Synchronize the File. More... | |
FRESULT | f_opendir (DIR *dp, const TCHAR *path) |
Create a Directory Object. More... | |
FRESULT | f_closedir (DIR *dp) |
Close Directory. More... | |
FRESULT | f_readdir (DIR *dp, FILINFO *fno) |
Read Directory Entries in Sequence. More... | |
FRESULT | f_mkdir (const TCHAR *path) |
Create a Directory. More... | |
FRESULT | f_unlink (const TCHAR *path) |
Delete a File or Directory. More... | |
FRESULT | f_rename (const TCHAR *path_old, const TCHAR *path_new) |
Rename File/Directory. More... | |
FRESULT | f_stat (const TCHAR *path, FILINFO *fno) |
Get File Status. More... | |
FRESULT | f_chmod (const TCHAR *path, BYTE value, BYTE mask) |
Change Attribute. More... | |
FRESULT | f_utime (const TCHAR *path, const FILINFO *fno) |
Change Timestamp. More... | |
FRESULT | f_getfree (const TCHAR *path, DWORD *nclst, FATFS **fatfs) |
Get Number of Free Clusters. More... | |
FRESULT | f_mount (FATFS *fs, const TCHAR *path, BYTE opt) |
Mount/Unmount a Logical Drive. More... | |
FRESULT | f_mkfs (const TCHAR *path, BYTE sfd, UINT au) |
int | f_putc (TCHAR c, FIL *fp) |
int | f_puts (const TCHAR *str, FIL *cp) |
int | f_printf (FIL *fp, const TCHAR *str,...) |
TCHAR * | f_gets (TCHAR *buff, int len, FIL *fp) |
FatFs module is a generic FAT file system module.
FatFs - FAT file system module include file.
FatFs - FAT file system module
#define f_size | ( | fp | ) | ((fp)->fsize) |
#define LD2PD | ( | vol | ) | (BYTE)(vol) |
enum FRESULT |
File function return code.
FRESULT f_chmod | ( | const TCHAR * | path, |
BYTE | value, | ||
BYTE | mask | ||
) |
FRESULT f_mkdir | ( | const TCHAR * | path | ) |
FRESULT f_rename | ( | const TCHAR * | path_old, |
const TCHAR * | path_new | ||
) |
FRESULT f_unlink | ( | const TCHAR * | path | ) |