18 #ifdef YOTTA_CFG_FS_FATFS 30 #error Wrong configuration file (ffconf.h). 42 extern PARTITION VolToPart[];
43 #define LD2PD(vol) (VolToPart[vol].pd) 44 #define LD2PT(vol) (VolToPart[vol].pt) 47 #define LD2PD(vol) (BYTE)(vol) 58 #error _LFN_UNICODE must be 0 at non-LFN cfg. 63 #define _TEXT(x) L ## x 88 #if _MAX_SS != _MIN_SS 125 #error LFN must be enabled when enable exFAT 127 typedef QWORD FSIZE_t;
129 typedef DWORD FSIZE_t;
237 FR_TOO_MANY_OPEN_FILES,
246 FRESULT f_open (FIL* fp,
const TCHAR* path,
BYTE mode);
247 FRESULT f_close (FIL* fp);
248 FRESULT f_read (FIL* fp,
void* buff,
UINT btr,
UINT* br);
249 FRESULT f_write (FIL* fp,
const void* buff,
UINT btw,
UINT* bw);
250 FRESULT f_lseek (FIL* fp, FSIZE_t ofs);
251 FRESULT f_truncate (FIL* fp);
252 FRESULT f_sync (FIL* fp);
253 FRESULT f_opendir (DIR* dp,
const TCHAR* path);
254 FRESULT f_closedir (DIR* dp);
255 FRESULT f_readdir (DIR* dp, FILINFO* fno);
256 FRESULT f_findfirst (DIR* dp, FILINFO* fno,
const TCHAR* path,
const TCHAR* pattern);
257 FRESULT f_findnext (DIR* dp, FILINFO* fno);
258 FRESULT f_mkdir (
const TCHAR* path);
259 FRESULT f_unlink (
const TCHAR* path);
260 FRESULT f_rename (
const TCHAR* path_old,
const TCHAR* path_new);
261 FRESULT f_stat (
const TCHAR* path, FILINFO* fno);
262 FRESULT f_chmod (
const TCHAR* path,
BYTE attr,
BYTE mask);
263 FRESULT f_utime (
const TCHAR* path,
const FILINFO* fno);
264 FRESULT f_chdir (
const TCHAR* path);
265 FRESULT f_chdrive (
const TCHAR* path);
266 FRESULT f_getcwd (TCHAR* buff,
UINT len);
267 FRESULT f_getfree (
const TCHAR* path,
DWORD* nclst, FATFS** fatfs);
268 FRESULT f_getlabel (
const TCHAR* path, TCHAR* label,
DWORD* vsn);
269 FRESULT f_setlabel (
const TCHAR* label);
271 FRESULT f_expand (FIL* fp, FSIZE_t szf,
BYTE opt);
272 FRESULT f_mount (FATFS* fs,
const TCHAR* path,
BYTE opt);
273 FRESULT f_mkfs (
const TCHAR* path,
BYTE sfd,
UINT au);
274 FRESULT f_fdisk (
BYTE pdrv,
const DWORD szt[],
void* work);
275 int f_putc (TCHAR c, FIL* fp);
276 int f_puts (
const TCHAR* str, FIL* cp);
277 int f_printf (FIL* fp,
const TCHAR* str, ...);
278 TCHAR* f_gets (TCHAR* buff,
int len, FIL* fp);
280 #define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize)) 281 #define f_error(fp) ((fp)->err) 282 #define f_tell(fp) ((fp)->fptr) 283 #define f_size(fp) ((fp)->obj.objsize) 284 #define f_rewind(fp) f_lseek((fp), 0) 285 #define f_rewinddir(dp) f_readdir((dp), 0) 298 #if !_FS_READONLY && !_FS_NORTC 307 void* ff_memalloc (
UINT msize);
308 void ff_memfree (
void* mblock);
315 int ff_req_grant (
_SYNC_t sobj);
316 void ff_rel_grant (
_SYNC_t sobj);
317 int ff_del_syncobj (
_SYNC_t sobj);
330 #define FA_WRITE 0x02 331 #define FA_OPEN_EXISTING 0x00 332 #define FA_CREATE_NEW 0x04 333 #define FA_CREATE_ALWAYS 0x08 334 #define FA_OPEN_ALWAYS 0x10 335 #define _FA_MODIFIED 0x20 336 #define _FA_DIRTY 0x40 360 #define CREATE_LINKMAP ((FSIZE_t)0 - 1) unsigned short WORD
Definition: integer.h:26
unsigned short WCHAR
Definition: integer.h:27
#define _MAX_SS
Definition: ffconf.h:174
unsigned long DWORD
Definition: integer.h:31
unsigned char BYTE
Definition: integer.h:22
#define _MAX_LFN
Definition: ffconf.h:103
unsigned long long QWORD
Definition: integer.h:34
unsigned int UINT
Definition: integer.h:19
#define _SYNC_t
Definition: ffconf.h:247