APM:Libraries
|
Go to the source code of this file.
Classes | |
struct | FATFS |
struct | FFOBJID |
struct | FIL |
struct | DIR |
struct | FILINFO |
Macros | |
#define | FF_DEFINED 63463 /* Revision ID */ |
#define | _INC_TCHAR |
#define | _T(x) x |
#define | _TEXT(x) x |
#define | f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize)) |
#define | f_error(fp) ((fp)->err) |
#define | f_tell(fp) ((fp)->fptr) |
#define | f_size(fp) ((fp)->obj.objsize) |
#define | f_rewind(fp) f_lseek((fp), 0) |
#define | f_rewinddir(dp) f_readdir((dp), 0) |
#define | f_rmdir(path) f_unlink(path) |
#define | f_unmount(path) f_mount(0, path, 0) |
#define | EOF (-1) |
#define | FA_READ 0x01 |
#define | FA_WRITE 0x02 |
#define | FA_OPEN_EXISTING 0x00 |
#define | FA_CREATE_NEW 0x04 |
#define | FA_CREATE_ALWAYS 0x08 |
#define | FA_OPEN_ALWAYS 0x10 |
#define | FA_OPEN_APPEND 0x30 |
#define | CREATE_LINKMAP ((FSIZE_t)0 - 1) |
#define | FM_FAT 0x01 |
#define | FM_FAT32 0x02 |
#define | FM_EXFAT 0x04 |
#define | FM_ANY 0x07 |
#define | FM_SFD 0x08 |
#define | FS_FAT12 1 |
#define | FS_FAT16 2 |
#define | FS_FAT32 3 |
#define | FS_EXFAT 4 |
#define | AM_RDO 0x01 /* Read only */ |
#define | AM_HID 0x02 /* Hidden */ |
#define | AM_SYS 0x04 /* System */ |
#define | AM_DIR 0x10 /* Directory */ |
#define | AM_ARC 0x20 /* Archive */ |
Typedefs | |
typedef char | TCHAR |
typedef DWORD | FSIZE_t |
Functions | |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
FRESULT | f_close (FIL *fp) |
FRESULT | f_read (FIL *fp, void *buff, UINT btr, UINT *br) |
FRESULT | f_write (FIL *fp, const void *buff, UINT btw, UINT *bw) |
FRESULT | f_lseek (FIL *fp, FSIZE_t ofs) |
FRESULT | f_truncate (FIL *fp) |
FRESULT | f_sync (FIL *fp) |
FRESULT | f_opendir (DIR *dp, const TCHAR *path) |
FRESULT | f_closedir (DIR *dp) |
FRESULT | f_readdir (DIR *dp, FILINFO *fno) |
FRESULT | f_findfirst (DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern) |
FRESULT | f_findnext (DIR *dp, FILINFO *fno) |
FRESULT | f_mkdir (const TCHAR *path) |
FRESULT | f_unlink (const TCHAR *path) |
FRESULT | f_rename (const TCHAR *path_old, const TCHAR *path_new) |
FRESULT | f_stat (const TCHAR *path, FILINFO *fno) |
FRESULT | f_chmod (const TCHAR *path, BYTE attr, BYTE mask) |
FRESULT | f_utime (const TCHAR *path, const FILINFO *fno) |
FRESULT | f_chdir (const TCHAR *path) |
FRESULT | f_chdrive (const TCHAR *path) |
FRESULT | f_getcwd (TCHAR *buff, UINT len) |
FRESULT | f_getfree (const TCHAR *path, DWORD *nclst, FATFS **fatfs) |
FRESULT | f_getlabel (const TCHAR *path, TCHAR *label, DWORD *vsn) |
FRESULT | f_setlabel (const TCHAR *label) |
FRESULT | f_forward (FIL *fp, UINT(*func)(const BYTE *, UINT), UINT btf, UINT *bf) |
FRESULT | f_expand (FIL *fp, FSIZE_t szf, BYTE opt) |
FRESULT | f_mount (FATFS *fs, const TCHAR *path, BYTE opt) |
FRESULT | f_mkfs (const TCHAR *path, BYTE opt, DWORD au, void *work, UINT len) |
FRESULT | f_fdisk (BYTE pdrv, const DWORD *szt, void *work) |
FRESULT | f_setcp (WORD cp) |
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) |
FRESULT | find_volume (const TCHAR **path, FATFS **rfs, BYTE mode) |
DWORD | get_fattime (void) |
#define AM_ARC 0x20 /* Archive */ |
Definition at line 388 of file ff.h.
Referenced by dir_read(), f_open(), f_rename(), and f_sync().
#define AM_DIR 0x10 /* Directory */ |
Definition at line 387 of file ff.h.
Referenced by f_close(), f_mkdir(), f_open(), f_opendir(), f_rename(), f_unlink(), follow_path(), st_clust(), and stat().
#define AM_HID 0x02 /* Hidden */ |
Definition at line 385 of file ff.h.
Referenced by f_rename().
#define AM_RDO 0x01 /* Read only */ |
Definition at line 384 of file ff.h.
Referenced by chmod(), f_open(), f_rename(), f_unlink(), and stat().
#define AM_SYS 0x04 /* System */ |
Definition at line 386 of file ff.h.
Referenced by f_rename(), and stat().
#define CREATE_LINKMAP ((FSIZE_t)0 - 1) |
#define EOF (-1) |
Definition at line 318 of file ff.h.
Referenced by __wrap_fclose(), Linux::UtilRPI::_check_rpi_version(), fatfs_getc(), fatfs_putc(), fgetc(), fgets(), fputc(), fputs(), putc_flush(), and puts().
#define f_size | ( | fp | ) | ((fp)->obj.objsize) |
#define f_tell | ( | fp | ) | ((fp)->fptr) |
Definition at line 310 of file ff.h.
Referenced by fatfs_getc().
#define FA_CREATE_ALWAYS 0x08 |
#define FA_OPEN_ALWAYS 0x10 |
#define FA_OPEN_EXISTING 0x00 |
Definition at line 361 of file ff.h.
Referenced by truncate().
#define FA_READ 0x01 |
Definition at line 359 of file ff.h.
Referenced by f_open(), f_read(), f_rename(), find_volume(), open(), and truncate().
#define FA_WRITE 0x02 |
Definition at line 360 of file ff.h.
Referenced by f_lseek(), f_mkdir(), f_open(), f_rename(), f_truncate(), f_unlink(), f_write(), open(), and truncate().
#define FS_EXFAT 4 |
Definition at line 381 of file ff.h.
Referenced by create_chain(), dir_alloc(), dir_find(), dir_next(), dir_read(), dir_register(), dir_remove(), dir_sdi(), f_close(), f_getfree(), f_lseek(), f_mkdir(), f_mkfs(), f_open(), f_opendir(), f_rename(), f_sync(), f_unlink(), f_write(), find_volume(), follow_path(), get_fat(), get_fileinfo(), put_fat(), and remove_chain().
#define FS_FAT12 1 |
Definition at line 378 of file ff.h.
Referenced by f_getfree(), f_mkfs(), find_volume(), get_fat(), and put_fat().
#define FS_FAT16 2 |
Definition at line 379 of file ff.h.
Referenced by f_getfree(), f_mkfs(), find_volume(), get_fat(), and put_fat().
#define FS_FAT32 3 |
Definition at line 380 of file ff.h.
Referenced by dir_sdi(), f_mkfs(), f_rename(), find_volume(), get_fat(), ld_clust(), put_fat(), st_clust(), and sync_fs().
enum FRESULT |
Definition at line 4467 of file ff.c.
Referenced by closedir().
Definition at line 4533 of file ff.c.
Referenced by f_findfirst().
Definition at line 4620 of file ff.c.
Referenced by fs_getfree(), and fs_gettotal().
Definition at line 4240 of file ff.c.
Referenced by fatfs_getc(), ftruncate(), lseek(), open(), and truncate().
Definition at line 3482 of file ff.c.
Referenced by sdcard_init(), and sdcard_stop().
Definition at line 3530 of file ff.c.
Referenced by open(), and truncate().
Definition at line 4401 of file ff.c.
Referenced by f_findfirst(), and opendir().
Definition at line 3721 of file ff.c.
Referenced by f_gets(), fatfs_getc(), and read().
Definition at line 4497 of file ff.c.
Referenced by f_findnext(), and readdir().
Definition at line 4709 of file ff.c.
Referenced by ftruncate(), and truncate().
Definition at line 3821 of file ff.c.
Referenced by fatfs_putc(), putc_bfd(), putc_flush(), and write().
Definition at line 3213 of file ff.c.
Referenced by f_close(), f_getfree(), f_mkdir(), f_mount(), f_open(), f_opendir(), f_rename(), f_stat(), and f_unlink().
DWORD get_fattime | ( | void | ) |