• Home
  • Raw
  • Download

Lines Matching +full:working +full:- +full:directory

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 */
62 …] = {1,3,5,7,9,14,16,18,20,22,24,28,30}; /* FAT: Offset of LFN characters in the directory entry */
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 */
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) */
195 #define MAX_DIR 0x200000 /* Max size of FAT directory */
206 #define GET_FATTIME() ((DWORD)(FF_NORTC_YEAR - 1980) << 25 | (DWORD)FF_NORTC_MON << 21 | (DWORD)FF_…
222 WORD n_rootdir; /* Number of root directory entries (FAT12/16) */
228 WCHAR* lfnbuf; /* LFN working buffer */
238 DWORD cdir; /* Current directory start cluster (0:root) */
244 LBA_t dirbase; /* Root directory base sector/cluster */
247 BYTE* win; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
276 …stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous, =3:fragmented in this sess…
277 DWORD sclust; /* Object data start cluster (0:no cluster or root directory) */
296 LBA_t dir_sect; /* Sector number containing the directory entry */
297 BYTE* dir_ptr; /* Pointer to the directory entry in the win[] */
312 /* Directory object structure (DIR) */
319 BYTE* dir; /* Pointer to the directory item in the win[] */
364 UINT n_root; /* Number of root directory entries */
386 FR_DENIED, /* (7) Access denied due to prohibited access or directory full */
388 FR_INVALID_OBJECT, /* (9) The file/directory object is invalid */
396 FR_NOT_ENOUGH_CORE, /* (17) LFN working buffer could not be allocated */
400 FR_NO_DIRENTRY, /* (21) No directory entry to allocate */
401 FR_NO_EMPTY_DIR, /* (22) Directory not empty */
402 FR_IS_DIR, /* (23) Is a directory */
403 FR_NO_DIR, /* (24) Not a directory */
411 FR_NOTCLEAR, /* (31) The root directory is not clear */
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 */
448 FRESULT f_mkdir (const TCHAR* path); /* Create a sub directory */
449 FRESULT f_unlink (const TCHAR* path); /* Delete an existing file or directory */
450 FRESULT f_rename (const TCHAR* path_old, const TCHAR* path_new); /* Rename/Move a file or directory
454 FRESULT f_chdir (const TCHAR* path); /* Change current directory */
456 FRESULT f_getcwd (TCHAR* buff, UINT len); /* Get current directory */
470 void f_clean (const TCHAR* path); /* clean all opening file and directory */
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)
590 /* File attribute bits for directory entry (FILINFO.fattrib) */
594 #define AM_DIR 0x10 /* Directory */
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) */