23#define FF_DEFINED 80286
31#include "generic_pointer.h"
33#if FF_DEFINED != FFCONF_DEF
34#error Wrong configuration file (ffconf.h).
42FRESULT f_open (
FIL* fp,
const TCHAR* __generic_ptr path, BYTE mode);
43FRESULT f_close (
FIL* fp);
44FRESULT f_read (
FIL* fp,
void* buff, UINT btr, UINT* br);
45FRESULT f_write (
FIL* fp,
const void* __generic_ptr buff, UINT btw, UINT* bw);
46FRESULT f_lseek (
FIL* fp, FSIZE_t ofs);
47FRESULT f_truncate (
FIL* fp);
48FRESULT f_sync (
FIL* fp);
49FRESULT f_opendir (
DIR* dp,
const TCHAR* __generic_ptr path);
50FRESULT f_closedir (
DIR* dp);
52FRESULT f_findfirst (
DIR* dp,
FILINFO* fno,
const TCHAR* __generic_ptr path,
const TCHAR* __generic_ptr pattern);
54FRESULT f_mkdir (
const TCHAR* __generic_ptr path);
55FRESULT f_unlink (
const TCHAR* __generic_ptr path);
56FRESULT f_rename (
const TCHAR* __generic_ptr path_old,
const TCHAR* __generic_ptr path_new);
57FRESULT f_stat (
const TCHAR* __generic_ptr path,
FILINFO* fno);
58FRESULT f_chmod (
const TCHAR* __generic_ptr path, BYTE attr, BYTE mask);
59FRESULT f_utime (
const TCHAR* __generic_ptr path,
const FILINFO* fno);
60FRESULT f_chdir (
const TCHAR* __generic_ptr path);
61FRESULT f_chdrive (
const TCHAR* __generic_ptr path);
62FRESULT f_getcwd (TCHAR* buff, UINT len);
63FRESULT f_getfree (
const TCHAR* __generic_ptr path, DWORD* nclst,
FATFS** fatfs);
64FRESULT f_getlabel (
const TCHAR* __generic_ptr path, TCHAR* label, DWORD* vsn);
65FRESULT f_setlabel (
const TCHAR* __generic_ptr label);
66FRESULT f_forward (
FIL* fp, UINT(*func)(
const BYTE* __generic_ptr,UINT), UINT btf, UINT* bf);
67FRESULT f_expand (
FIL* fp, FSIZE_t fsz, BYTE opt);
68FRESULT f_mount (
FATFS* fs,
const TCHAR* __generic_ptr path, BYTE opt);
69FRESULT f_mkfs (
const TCHAR* __generic_ptr path,
const MKFS_PARM* __generic_ptr opt,
void* work, UINT len);
70FRESULT f_fdisk (BYTE pdrv,
const LBA_t ptbl[],
void* work);
71FRESULT f_setcp (WORD cp);
72int f_putc (TCHAR c,
FIL* fp);
73int f_puts (
const TCHAR* __generic_ptr str,
FIL* cp);
74int f_printf (
FIL* fp,
const TCHAR* __generic_ptr str, ...);
75TCHAR* f_gets (TCHAR* buff,
int len,
FIL* fp);
79#define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize))
80#define f_error(fp) ((fp)->err)
81#define f_tell(fp) ((fp)->fptr)
82#define f_size(fp) ((fp)->obj.objsize)
83#define f_rewind(fp) f_lseek((fp), 0)
84#define f_rewinddir(dp) f_readdir((dp), 0)
85#define f_rmdir(path) f_unlink(path)
86#define f_unmount(path) f_mount(0, path, 0)
96#if !FF_FS_READONLY && !FF_FS_NORTC
97DWORD get_fattime (
void);
104WCHAR ff_oem2uni (WCHAR oem, WORD cp);
105WCHAR ff_uni2oem (DWORD uni, WORD cp);
106DWORD ff_wtoupper (DWORD uni);
113void* ff_memalloc (UINT msize);
114void ff_memfree (
void* mblock);
117int ff_mutex_create (
int vol);
118void ff_mutex_delete (
int vol);
119int ff_mutex_take (
int vol);
120void ff_mutex_give (
int vol);
Definition ff_types.h:208
Definition ff_types.h:114
Definition ff_types.h:227
Definition ff_types.h:185
Definition ff_types.h:244