APM:Libraries
ff.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------/
2 / FatFs - Generic FAT Filesystem module R0.13b /
3 /-----------------------------------------------------------------------------/
4 /
5 / Copyright (C) 2018, ChaN, all right reserved.
6 /
7 / FatFs module is an open source software. Redistribution and use of FatFs in
8 / source and binary forms, with or without modification, are permitted provided
9 / that the following condition is met:
10 
11 / 1. Redistributions of source code must retain the above copyright notice,
12 / this condition and the following disclaimer.
13 /
14 / This software is provided by the copyright holder and contributors "AS IS"
15 / and any warranties related to this software are DISCLAIMED.
16 / The copyright owner or contributors be NOT LIABLE for any damages caused
17 / by use of this software.
18 /
19 /----------------------------------------------------------------------------*/
20 
21 
22 #ifndef FF_DEFINED
23 #define FF_DEFINED 63463 /* Revision ID */
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #include "integer.h" /* Basic integer types */
30 #include "ffconf.h" /* FatFs configuration options */
31 #include <util.h>
32 #include <string.h>
33 
34 #if FF_DEFINED != FFCONF_DEF
35 #error Wrong configuration file (ffconf.h).
36 #endif
37 
38 
39 
40 /* Definitions of volume management */
41 
42 #if FF_MULTI_PARTITION /* Multiple partition configuration */
43 typedef struct {
44  BYTE pd; /* Physical drive number */
45  BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
46 } PARTITION;
47 extern PARTITION VolToPart[]; /* Volume - Partition resolution table */
48 #endif
49 
50 #if FF_STR_VOLUME_ID
51 #ifndef FF_VOLUME_STRS
52 extern const char* VolumeStr[FF_VOLUMES]; /* User defied volume ID */
53 #endif
54 #endif
55 
56 
57 
58 /* Type of path name strings on FatFs API */
59 
60 #ifndef _INC_TCHAR
61 #define _INC_TCHAR
62 
63 #if FF_USE_LFN && FF_LFN_UNICODE == 1 /* Unicode in UTF-16 encoding */
64 typedef WCHAR TCHAR;
65 #define _T(x) L ## x
66 #define _TEXT(x) L ## x
67 #elif FF_USE_LFN && FF_LFN_UNICODE == 2 /* Unicode in UTF-8 encoding */
68 typedef char TCHAR;
69 #define _T(x) u8 ## x
70 #define _TEXT(x) u8 ## x
71 #elif FF_USE_LFN && FF_LFN_UNICODE == 3 /* Unicode in UTF-32 encoding */
72 typedef DWORD TCHAR;
73 #define _T(x) U ## x
74 #define _TEXT(x) U ## x
75 #elif FF_USE_LFN && (FF_LFN_UNICODE < 0 || FF_LFN_UNICODE > 3)
76 #error Wrong FF_LFN_UNICODE setting
77 #else /* ANSI/OEM code in SBCS/DBCS */
78 typedef char TCHAR;
79 #define _T(x) x
80 #define _TEXT(x) x
81 #endif
82 
83 #endif
84 
85 
86 
87 /* Type of file size variables */
88 
89 #if FF_FS_EXFAT
90 typedef QWORD FSIZE_t;
91 #else
92 typedef DWORD FSIZE_t;
93 #endif
94 
95 
96 
97 /* Filesystem object structure (FATFS) */
98 
99 typedef struct {
100 // BYTE win[FFFF_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
101  union{
102  UINT d32[FF_MAX_SS/4]; /* Force 32bits alignement */
103  BYTE win[FF_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
104  };
105  BYTE fs_type; /* Filesystem type (0:N/A) */
106  BYTE pdrv; /* Physical drive number */
107  BYTE n_fats; /* Number of FATs (1 or 2) */
108  BYTE wflag; /* win[] flag (b0:dirty) */
109  BYTE fsi_flag; /* FSINFO flags (b7:disabled, b0:dirty) */
110  WORD id; /* Volume mount ID */
111  WORD n_rootdir; /* Number of root directory entries (FAT12/16) */
112  WORD csize; /* Cluster size [sectors] */
113 #if FFFF_MAX_SS != FF_MIN_SS
114  WORD ssize; /* Sector size (512, 1024, 2048 or 4096) */
115 #endif
116 #if FF_USE_LFN
117  WCHAR* lfnbuf; /* LFN working buffer */
118 #endif
119 #if FF_FS_EXFAT
120  BYTE* dirbuf; /* Directory entry block scratchpad buffer for exFAT */
121 #endif
122 #if FF_FS_REENTRANT
123  FF_SYNC_t sobj; /* Identifier of sync object */
124 #endif
125 #if !FF_FS_READONLY
126  DWORD last_clst; /* Last allocated cluster */
127  DWORD free_clst; /* Number of free clusters */
128 #endif
129 #if FF_FS_RPATH
130  DWORD cdir; /* Current directory start cluster (0:root) */
131 #if FF_FS_EXFAT
132  DWORD cdc_scl; /* Containing directory start cluster (invalid when cdir is 0) */
133  DWORD cdc_size; /* b31-b8:Size of containing directory, b7-b0: Chain status */
134  DWORD cdc_ofs; /* Offset in the containing directory (invalid when cdir is 0) */
135 #endif
136 #endif
137  DWORD n_fatent; /* Number of FAT entries (number of clusters + 2) */
138  DWORD fsize; /* Size of an FAT [sectors] */
139  DWORD volbase; /* Volume base sector */
140  DWORD fatbase; /* FAT base sector */
141  DWORD dirbase; /* Root directory base sector/cluster */
142  DWORD database; /* Data base sector */
143  DWORD winsect; /* Current sector appearing in the win[] */
144 } FATFS;
145 
146 
147 
148 /* Object ID and allocation information (FFOBJID) */
149 
150 typedef struct {
151  FATFS* fs; /* Pointer to the hosting volume of this object */
152  WORD id; /* Hosting volume mount ID */
153  BYTE attr; /* Object attribute */
154  BYTE stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous, =3:flagmented in this session, b2:sub-directory stretched) */
155  DWORD sclust; /* Object data start cluster (0:no cluster or root directory) */
156  FSIZE_t objsize; /* Object size (valid when sclust != 0) */
157 #if FF_FS_EXFAT
158  DWORD n_cont; /* Size of first fragment - 1 (valid when stat == 3) */
159  DWORD n_frag; /* Size of last fragment needs to be written to FAT (valid when not zero) */
160  DWORD c_scl; /* Containing directory start cluster (valid when sclust != 0) */
161  DWORD c_size; /* b31-b8:Size of containing directory, b7-b0: Chain status (valid when c_scl != 0) */
162  DWORD c_ofs; /* Offset in the containing directory (valid when file object and sclust != 0) */
163 #endif
164 #if FF_FS_LOCK
165  UINT lockid; /* File lock ID origin from 1 (index of file semaphore table Files[]) */
166 #endif
167 } FFOBJID;
168 
169 
170 
171 /* File object structure (FIL) */
172 
173 typedef struct {
174 #if !FF_FS_TINY
175 // BYTE buf[FFFF_MAX_SS]; /* File private data read/write window */
176  union{
177  UINT d32[FF_MAX_SS/4]; /* Force 32bits alignement */
178  BYTE buf[FF_MAX_SS]; /* File data read/write buffer */
179  };
180 #endif
181 
182  FFOBJID obj; /* Object identifier (must be the 1st member to detect invalid object pointer) */
183  BYTE flag; /* File status flags */
184  BYTE err; /* Abort flag (error code) */
185  FSIZE_t fptr; /* File read/write pointer (Zeroed on file open) */
186  DWORD clust; /* Current cluster of fpter (invalid when fptr is 0) */
187  DWORD sect; /* Sector number appearing in buf[] (0:invalid) */
188 #if !FF_FS_READONLY
189  DWORD dir_sect; /* Sector number containing the directory entry (not used at exFAT) */
190  BYTE* dir_ptr; /* Pointer to the directory entry in the win[] (not used at exFAT) */
191 #endif
192 #if FF_USE_FASTSEEK
193  DWORD* cltbl; /* Pointer to the cluster link map table (nulled on open, set by application) */
194 #endif
195 } FIL;
196 
197 
198 
199 /* Directory object structure (DIR) */
200 
201 typedef struct {
202 #if !_FS_TINY
203  union{
204  UINT d32[FF_MAX_SS/4]; /* Force 32bits alignement */
205  BYTE buf[FF_MAX_SS]; /* File data read/write buffer */
206  };
207 #endif
208  FFOBJID obj; /* Object identifier */
209  DWORD dptr; /* Current read/write offset */
210  DWORD clust; /* Current cluster */
211  DWORD sect; /* Current sector (0:Read operation has terminated) */
212  BYTE* dir; /* Pointer to the directory item in the win[] */
213  BYTE fn[12]; /* SFN (in/out) {body[8],ext[3],status[1]} */
214 #if FF_USE_LFN
215  DWORD blk_ofs; /* Offset of current entry block being processed (0xFFFFFFFF:Invalid) */
216 #endif
217 #if FF_USE_FIND
218  const TCHAR* pat; /* Pointer to the name matching pattern */
219 #endif
220 } DIR;
221 
222 
223 
224 /* File information structure (FILINFO) */
225 
226 typedef struct {
227  FSIZE_t fsize; /* File size */
228  WORD fdate; /* Modified date */
229  WORD ftime; /* Modified time */
230  BYTE fattrib; /* File attribute */
231 #if FF_USE_LFN
232  TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
233  TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
234 #else
235  TCHAR fname[12 + 1]; /* File name */
236 #endif
237 } FILINFO;
238 
239 
240 
241 /* File function return code (FRESULT) */
242 
243 typedef enum {
244  FR_OK = 0, /* (0) Succeeded */
245  FR_DISK_ERR, /* (1) A hard error occurred in the low level disk I/O layer */
246  FR_INT_ERR, /* (2) Assertion failed */
247  FR_NOT_READY, /* (3) The physical drive cannot work */
248  FR_NO_FILE, /* (4) Could not find the file */
249  FR_NO_PATH, /* (5) Could not find the path */
250  FR_INVALID_NAME, /* (6) The path name format is invalid */
251  FR_DENIED, /* (7) Access denied due to prohibited access or directory full */
252  FR_EXIST, /* (8) Access denied due to prohibited access */
253  FR_INVALID_OBJECT, /* (9) The file/directory object is invalid */
254  FR_WRITE_PROTECTED, /* (10) The physical drive is write protected */
255  FR_INVALID_DRIVE, /* (11) The logical drive number is invalid */
256  FR_NOT_ENABLED, /* (12) The volume has no work area */
257  FR_NO_FILESYSTEM, /* (13) There is no valid FAT volume */
258  FR_MKFS_ABORTED, /* (14) The f_mkfs() aborted due to any problem */
259  FR_TIMEOUT, /* (15) Could not get a grant to access the volume within defined period */
260  FR_LOCKED, /* (16) The operation is rejected according to the file sharing policy */
261  FR_NOT_ENOUGH_CORE, /* (17) LFN working buffer could not be allocated */
262  FR_TOO_MANY_OPEN_FILES, /* (18) Number of open files > FF_FS_LOCK */
263  FR_INVALID_PARAMETER, /* (19) Given parameter is invalid */
265 } FRESULT;
266 
267 
268 
269 /*--------------------------------------------------------------*/
270 /* FatFs module application interface */
271 
272 FRESULT f_open (FIL* fp, const TCHAR* path, BYTE mode); /* Open or create a file */
273 FRESULT f_close (FIL* fp); /* Close an open file object */
274 FRESULT f_read (FIL* fp, void* buff, UINT btr, UINT* br); /* Read data from the file */
275 FRESULT f_write (FIL* fp, const void* buff, UINT btw, UINT* bw); /* Write data to the file */
276 FRESULT f_lseek (FIL* fp, FSIZE_t ofs); /* Move file pointer of the file object */
277 FRESULT f_truncate (FIL* fp); /* Truncate the file */
278 FRESULT f_sync (FIL* fp); /* Flush cached data of the writing file */
279 FRESULT f_opendir (DIR* dp, const TCHAR* path); /* Open a directory */
280 FRESULT f_closedir (DIR* dp); /* Close an open directory */
281 FRESULT f_readdir (DIR* dp, FILINFO* fno); /* Read a directory item */
282 FRESULT f_findfirst (DIR* dp, FILINFO* fno, const TCHAR* path, const TCHAR* pattern); /* Find first file */
283 FRESULT f_findnext (DIR* dp, FILINFO* fno); /* Find next file */
284 FRESULT f_mkdir (const TCHAR* path); /* Create a sub directory */
285 FRESULT f_unlink (const TCHAR* path); /* Delete an existing file or directory */
286 FRESULT f_rename (const TCHAR* path_old, const TCHAR* path_new); /* Rename/Move a file or directory */
287 FRESULT f_stat (const TCHAR* path, FILINFO* fno); /* Get file status */
288 FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /* Change attribute of a file/dir */
289 FRESULT f_utime (const TCHAR* path, const FILINFO* fno); /* Change timestamp of a file/dir */
290 FRESULT f_chdir (const TCHAR* path); /* Change current directory */
291 FRESULT f_chdrive (const TCHAR* path); /* Change current drive */
292 FRESULT f_getcwd (TCHAR* buff, UINT len); /* Get current directory */
293 FRESULT f_getfree (const TCHAR* path, DWORD* nclst, FATFS** fatfs); /* Get number of free clusters on the drive */
294 FRESULT f_getlabel (const TCHAR* path, TCHAR* label, DWORD* vsn); /* Get volume label */
295 FRESULT f_setlabel (const TCHAR* label); /* Set volume label */
296 FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /* Forward data to the stream */
297 FRESULT f_expand (FIL* fp, FSIZE_t szf, BYTE opt); /* Allocate a contiguous block to the file */
298 FRESULT f_mount (FATFS* fs, const TCHAR* path, BYTE opt); /* Mount/Unmount a logical drive */
299 FRESULT f_mkfs (const TCHAR* path, BYTE opt, DWORD au, void* work, UINT len); /* Create a FAT volume */
300 FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some partitions */
301 FRESULT f_setcp (WORD cp); /* Set current code page */
302 int f_putc (TCHAR c, FIL* fp); /* Put a character to the file */
303 int f_puts (const TCHAR* str, FIL* cp); /* Put a string to the file */
304 int f_printf (FIL* fp, const TCHAR* str, ...); /* Put a formatted string to the file */
305 TCHAR* f_gets (TCHAR* buff, int len, FIL* fp); /* Get a string from the file */
306 FRESULT find_volume (const TCHAR** path, FATFS** rfs, BYTE mode);
307 
308 #define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize))
309 #define f_error(fp) ((fp)->err)
310 #define f_tell(fp) ((fp)->fptr)
311 #define f_size(fp) ((fp)->obj.objsize)
312 #define f_rewind(fp) f_lseek((fp), 0)
313 #define f_rewinddir(dp) f_readdir((dp), 0)
314 #define f_rmdir(path) f_unlink(path)
315 #define f_unmount(path) f_mount(0, path, 0)
316 
317 #ifndef EOF
318 #define EOF (-1)
319 #endif
320 
321 
322 
323 
324 /*--------------------------------------------------------------*/
325 /* Additional user defined functions */
326 
327 /* RTC function */
328 #if !FF_FS_READONLY && !FF_FS_NORTC
329 DWORD get_fattime (void);
330 #endif
331 
332 /* LFN support functions */
333 #if FF_USE_LFN >= 1 /* Code conversion (defined in unicode.c) */
334 WCHAR ff_oem2uni (WCHAR oem, WORD cp); /* OEM code to Unicode conversion */
335 WCHAR ff_uni2oem (DWORD uni, WORD cp); /* Unicode to OEM code conversion */
336 DWORD ff_wtoupper (DWORD uni); /* Unicode upper-case conversion */
337 #endif
338 #if FF_USE_LFN == 3 /* Dynamic memory allocation */
339 void* ff_memalloc (UINT msize); /* Allocate memory block */
340 void ff_memfree (void* mblock); /* Free memory block */
341 #endif
342 
343 /* Sync functions */
344 #if FF_FS_REENTRANT
345 int ff_cre_syncobj (BYTE vol, FF_SYNC_t* sobj); /* Create a sync object */
346 int ff_req_grant (FF_SYNC_t sobj); /* Lock sync object */
347 void ff_rel_grant (FF_SYNC_t sobj); /* Unlock sync object */
348 int ff_del_syncobj (FF_SYNC_t sobj); /* Delete a sync object */
349 #endif
350 
351 
352 
353 
354 /*--------------------------------------------------------------*/
355 /* Flags and offset address */
356 
357 
358 /* File access mode and open method flags (3rd argument of f_open) */
359 #define FA_READ 0x01
360 #define FA_WRITE 0x02
361 #define FA_OPEN_EXISTING 0x00
362 #define FA_CREATE_NEW 0x04 // создать новый, если существует то ошибка
363 #define FA_CREATE_ALWAYS 0x08 // переписать старый
364 #define FA_OPEN_ALWAYS 0x10
365 #define FA_OPEN_APPEND 0x30
366 
367 /* Fast seek controls (2nd argument of f_lseek) */
368 #define CREATE_LINKMAP ((FSIZE_t)0 - 1)
369 
370 /* Format options (2nd argument of f_mkfs) */
371 #define FM_FAT 0x01
372 #define FM_FAT32 0x02
373 #define FM_EXFAT 0x04
374 #define FM_ANY 0x07
375 #define FM_SFD 0x08
376 
377 /* Filesystem type (FATFS.fs_type) */
378 #define FS_FAT12 1
379 #define FS_FAT16 2
380 #define FS_FAT32 3
381 #define FS_EXFAT 4
382 
383 /* File attribute bits for directory entry (FILINFO.fattrib) */
384 #define AM_RDO 0x01 /* Read only */
385 #define AM_HID 0x02 /* Hidden */
386 #define AM_SYS 0x04 /* System */
387 #define AM_DIR 0x10 /* Directory */
388 #define AM_ARC 0x20 /* Archive */
389 
390 
391 #ifdef __cplusplus
392 }
393 #endif
394 
395 #endif /* FF_DEFINED */
#define FF_SFN_BUF
Definition: ffconf.h:133
FRESULT f_chdrive(const TCHAR *path)
WORD ssize
Definition: ff.h:114
int f_puts(const TCHAR *str, FIL *cp)
Definition: ff.c:6388
unsigned short WORD
Definition: integer.h:17
unsigned short WCHAR
Definition: integer.h:18
DWORD n_fatent
Definition: ff.h:137
Definition: ff.h:150
DWORD sect
Definition: ff.h:211
int f_putc(TCHAR c, FIL *fp)
Definition: ff.c:6368
const TCHAR * pat
Definition: ff.h:218
#define FF_VOLUMES
Definition: ffconf.h:166
DWORD sclust
Definition: ff.h:155
DWORD database
Definition: ff.h:142
WORD fdate
Definition: ff.h:228
Definition: ff.h:226
FRESULT f_fdisk(BYTE pdrv, const DWORD *szt, void *work)
#define FF_SYNC_t
Definition: ffconf.h:267
Definition: ff.h:99
#define FF_LFN_BUF
Definition: ffconf.h:132
DWORD dptr
Definition: ff.h:209
DWORD free_clst
Definition: ff.h:127
FRESULT f_lseek(FIL *fp, FSIZE_t ofs)
Definition: ff.c:4240
FRESULT f_mount(FATFS *fs, const TCHAR *path, BYTE opt)
Definition: ff.c:3482
FRESULT f_getlabel(const TCHAR *path, TCHAR *label, DWORD *vsn)
WORD ftime
Definition: ff.h:229
FRESULT f_mkfs(const TCHAR *path, BYTE opt, DWORD au, void *work, UINT len)
Definition: ff.c:5521
BYTE flag
Definition: ff.h:183
char TCHAR
Definition: ff.h:78
Definition: ff.h:251
FRESULT find_volume(const TCHAR **path, FATFS **rfs, BYTE mode)
Definition: ff.c:3213
FRESULT f_chdir(const TCHAR *path)
FRESULT f_chmod(const TCHAR *path, BYTE attr, BYTE mask)
BYTE * dir
Definition: ff.h:212
FRESULT f_readdir(DIR *dp, FILINFO *fno)
Definition: ff.c:4497
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Definition: ff.c:3721
FRESULT f_getfree(const TCHAR *path, DWORD *nclst, FATFS **fatfs)
Definition: ff.c:4620
#define FF_MAX_SS
Definition: ffconf.h:194
BYTE fs_type
Definition: ff.h:105
FSIZE_t objsize
Definition: ff.h:156
FRESULT f_mkdir(const TCHAR *path)
Definition: ff.c:4853
Definition: ff.h:246
FRESULT f_close(FIL *fp)
Definition: ff.c:4026
Definition: ff.h:201
unsigned long DWORD
Definition: integer.h:22
Definition: ff.h:252
FRESULT f_truncate(FIL *fp)
Definition: ff.c:4709
DWORD FSIZE_t
Definition: ff.h:92
BYTE attr
Definition: ff.h:153
FRESULT f_forward(FIL *fp, UINT(*func)(const BYTE *, UINT), UINT btf, UINT *bf)
Definition: ff.h:248
unsigned char BYTE
Definition: integer.h:13
BYTE n_fats
Definition: ff.h:107
DWORD winsect
Definition: ff.h:143
FRESULT f_closedir(DIR *dp)
Definition: ff.c:4467
DWORD fatbase
Definition: ff.h:140
Definition: ff.h:249
FRESULT f_stat(const TCHAR *path, FILINFO *fno)
Definition: ff.c:4585
FRESULT f_rename(const TCHAR *path_old, const TCHAR *path_new)
Definition: ff.c:4941
FFOBJID obj
Definition: ff.h:208
FRESULT f_write(FIL *fp, const void *buff, UINT btw, UINT *bw)
Definition: ff.c:3821
FRESULT
Definition: ff.h:243
FRESULT f_setcp(WORD cp)
Miscellaneous utility macros and procedures.
FRESULT f_sync(FIL *fp)
Definition: ff.c:3945
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3530
Definition: ff.h:264
FSIZE_t fsize
Definition: ff.h:227
WORD id
Definition: ff.h:110
DWORD last_clst
Definition: ff.h:126
DWORD sect
Definition: ff.h:187
Definition: ff.h:259
DWORD get_fattime(void)
BYTE fsi_flag
Definition: ff.h:109
BYTE stat
Definition: ff.h:154
BYTE * dir_ptr
Definition: ff.h:190
unsigned long long QWORD
Definition: integer.h:25
FSIZE_t fptr
Definition: ff.h:185
BYTE fattrib
Definition: ff.h:230
unsigned int UINT
Definition: integer.h:10
DWORD clust
Definition: ff.h:210
FRESULT f_setlabel(const TCHAR *label)
BYTE err
Definition: ff.h:184
DWORD volbase
Definition: ff.h:139
Definition: ff.h:260
FRESULT f_findfirst(DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern)
Definition: ff.c:4558
WORD n_rootdir
Definition: ff.h:111
FRESULT f_utime(const TCHAR *path, const FILINFO *fno)
Definition: ff.h:173
WORD id
Definition: ff.h:152
TCHAR * f_gets(TCHAR *buff, int len, FIL *fp)
Definition: ff.c:6069
int f_printf(FIL *fp, const TCHAR *str,...)
Definition: ff.c:6408
BYTE pdrv
Definition: ff.h:106
FRESULT f_expand(FIL *fp, FSIZE_t szf, BYTE opt)
FATFS * fs
Definition: ff.h:151
Definition: ff.h:244
BYTE wflag
Definition: ff.h:108
FFOBJID obj
Definition: ff.h:182
DWORD clust
Definition: ff.h:186
DWORD dir_sect
Definition: ff.h:189
FRESULT f_findnext(DIR *dp, FILINFO *fno)
Definition: ff.c:4533
FRESULT f_opendir(DIR *dp, const TCHAR *path)
Definition: ff.c:4401
FRESULT f_unlink(const TCHAR *path)
Definition: ff.c:4759
FRESULT f_getcwd(TCHAR *buff, UINT len)
DWORD fsize
Definition: ff.h:138
DWORD dirbase
Definition: ff.h:141
WORD csize
Definition: ff.h:112