Lines Matching +full:- +full:- +full:working +full:- +full:dir
1 /*----------------------------------------------------------------------------/
2 / FatFs - Generic FAT Filesystem module R0.15 /
3 /-----------------------------------------------------------------------------/
19 /----------------------------------------------------------------------------*/
42 /*--------------------------------*/
43 /* LFN/Directory working buffer */
44 /*--------------------------------*/
46 #if FF_USE_LFN == 0 /* Non-LFN configuration */
64 #if FF_USE_LFN == 1 /* LFN enabled with static working buffer */
65 static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
71 #elif FF_USE_LFN == 2 /* LFN enabled with dynamic working buffer on the stack */
72 #define DEF_NAMBUF WCHAR lbuf[FF_MAX_LFN+1]; /* LFN working buffer */
73 #define INIT_NAMBUF(fs) { (fs)->lfnbuf = lbuf; }
77 #elif FF_USE_LFN == 3 /* LFN enabled with dynamic working buffer on the heap */
78 #define DEF_NAMBUF WCHAR *lfn; /* Pointer to LFN working buffer and directory entry block scratchp…
79 … = ff_memalloc((FF_MAX_LFN+1)*2); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; }
99 BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
103 extern PARTITION VolToPart[]; /* Volume - Partition mapping table */
127 #define ISVIRPART(fs) ((fs)->vir_avail == FS_VIRENABLE)
128 #define ISNORMAL(fs) ((fs)->vir_avail != FS_VIRENABLE)
130 #define ISPARENT(fs) ((fs)->vir_flag == FS_PARENT)
131 #define ISCHILD(fs) ((fs)->vir_flag != FS_PARENT)
144 #if FF_USE_LFN && FF_LFN_UNICODE == 1 /* Unicode in UTF-16 encoding */
148 #elif FF_USE_LFN && FF_LFN_UNICODE == 2 /* Unicode in UTF-8 encoding */
152 #elif FF_USE_LFN && FF_LFN_UNICODE == 3 /* Unicode in UTF-32 encoding */
168 #define SS(fs) ((fs)->ssize) /* Variable sector size */
176 /* DIR offset in fs win */
177 #define DIR_Name 0 /* Short file name (11-byte) */
180 #define DIR_CrtTime10 13 /* Created time sub-second (BYTE) */
183 #define DIR_FstClusHI 20 /* Higher 16-bit of first cluster (WORD) */
185 #define DIR_FstClusLO 26 /* Lower 16-bit of first cluster (WORD) */
206 #define GET_FATTIME() ((DWORD)(FF_NORTC_YEAR - 1980) << 25 | (DWORD)FF_NORTC_MON << 21 | (DWORD)FF_…
228 WCHAR* lfnbuf; /* LFN working buffer */
276 …YTE stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous, =3:fragmented in this …
312 /* Directory object structure (DIR) */
319 BYTE* dir; /* Pointer to the directory item in the win[] */ member
369 DIR f_dir;
396 FR_NOT_ENOUGH_CORE, /* (17) LFN working buffer could not be allocated */
419 /*--------------------------------------------------------------*/
421 /*--------------------------------------------------------------*/
443 FRESULT f_opendir (DIR* dp, const TCHAR* path); /* Open a directory */
444 FRESULT f_closedir (DIR* dp); /* Close an open directory */
445 FRESULT f_readdir (DIR* dp, FILINFO* fno); /* Read a directory item */
446 FRESULT f_findfirst (DIR* dp, FILINFO* fno, const TCHAR* path, const TCHAR* pattern); /* Find first…
447 FRESULT f_findnext (DIR* dp, FILINFO* fno); /* Find next file */
452 FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /* Change attribute of a file/dir */
453 FRESULT f_utime (const TCHAR* path, const FILINFO* fno); /* Change timestamp of a file/dir */
479 void get_fileinfo (DIR* dp, FILINFO* fno);
484 DWORD ld_clust(FATFS *fs, const BYTE *dir);
485 void st_clust(FATFS *fs, BYTE *dir, DWORD cl);
490 FRESULT create_name (DIR *dp, const TCHAR **path);
493 UINT inc_lock(DIR* dp, int acc);
495 FRESULT dir_sdi (DIR *dp, DWORD ofs);
496 FRESULT dir_find(DIR *dp);
497 FRESULT dir_read(DIR *dp, int vol);
499 FRESULT dir_read_massive(DIR *dp, int vol);
501 FRESULT dir_remove(DIR *dp);
502 FRESULT dir_next(DIR *dp, int stretch);
503 DWORD dir_ofs(DIR* dp);
504 FRESULT dir_register(DIR *dp);
512 #define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize))
513 #define f_error(fp) ((fp)->err)
514 #define f_tell(fp) ((fp)->fptr)
515 #define f_size(fp) ((fp)->obj.objsize)
524 /*--------------------------------------------------------------*/
526 /*--------------------------------------------------------------*/
539 DWORD ff_wtoupper (DWORD uni); /* Unicode upper-case conversion */
559 /*--------------------------------------------------------------*/
561 /*--------------------------------------------------------------*/
573 #define CREATE_LINKMAP ((FSIZE_t)0 - 1)
605 #define PARENTFS(fs) ((FATFS*)((fs)->parent_fs))
606 #define CHILDFS(fs, i) ((FATFS*)(*((fs)->child_fs + (i))))
610 /* Global Data Area @ 0x00 - 0x31 (32 Bytes) */