Lines Matching +full:4 +full:- +full:byte
1 /*----------------------------------------------------------------------------/
2 / FatFs - Generic FAT file system module R0.12b /
3 /-----------------------------------------------------------------------------/
18 /----------------------------------------------------------------------------*/
42 BYTE pd; /* Physical drive number */
43 BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
45 extern PARTITION VolToPart[]; /* Volume - Partition resolution table */
50 #define LD2PD(vol) (BYTE)(vol) /* Each logical drive is bound to the same physical drive number */
59 #if _LFN_UNICODE /* Unicode (UTF-16) string */
61 #error _LFN_UNICODE must be 0 at non-LFN cfg.
94 BYTE fs_type; /* File system type (0:N/A) */
95 BYTE drv; /* Physical drive number */
96 BYTE n_fats; /* Number of FATs (1 or 2) */
97 BYTE wflag; /* win[] flag (b0:dirty) */
98 BYTE fsi_flag; /* FSINFO flags (b7:disabled, b0:dirty) */
109 BYTE* dirbuf; /* Directory entry block scratchpad buffer */
122 DWORD cdc_size; /* b31-b8:Size of containing directory, b7-b0: Chain status */
133 BYTE win[_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
143 BYTE attr; /* Object attribute */
144 …BYTE stat; /* Object chain status (b1-0: =0:not contiguous, =2:contiguous (no data on FAT), =3:go…
148 DWORD n_cont; /* Size of coutiguous part, clusters - 1 (valid when stat == 3) */
150 …DWORD c_size; /* b31-b8:Size of containing directory, b7-b0: Chain status (valid when c_scl != 0)…
164 BYTE flag; /* File status flags */
165 BYTE err; /* Abort flag (error code) */
171 BYTE* dir_ptr; /* Pointer to the directory entry in the win[] */
177 BYTE buf[_MAX_SS]; /* File private data read/write window */
190 BYTE* dir; /* Pointer to the directory item in the win[] */
191 BYTE fn[12]; /* SFN (in/out) {body[8],ext[3],status[1]} */
208 BYTE fattrib; /* File attribute */
226 FR_NO_FILE, /* (4) Could not find the file */
246 /*--------------------------------------------------------------*/
249 FRESULT f_open (FIL* fp, const TCHAR* path, BYTE mode); /* Open or create a file */
266 FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /* Change attribute of a file/dir */
274 FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /* Forward data to …
275 FRESULT f_expand (FIL* fp, FSIZE_t szf, BYTE opt); /* Allocate a contiguous block to the file */
276 FRESULT f_mount (FATFS* fs, const TCHAR* path, BYTE opt); /* Mount/Unmount a logical drive */
277 FRESULT f_mkfs (const TCHAR* path, BYTE opt, DWORD au, void* work, UINT len); /* Create a FAT volum…
278 FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some p…
284 #define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize))
285 #define f_error(fp) ((fp)->err)
286 #define f_tell(fp) ((fp)->fptr)
287 #define f_size(fp) ((fp)->obj.objsize)
292 #define EOF (-1)
298 /*--------------------------------------------------------------*/
307 #if _USE_LFN != 0 /* Unicode - OEM code conversion */
308 WCHAR ff_convert (WCHAR chr, UINT dir); /* OEM-Unicode bidirectional conversion */
309 WCHAR ff_wtoupper (WCHAR chr); /* Unicode upper-case conversion */
318 int ff_cre_syncobj (BYTE vol, _SYNC_t* sobj); /* Create a sync object */
327 /*--------------------------------------------------------------*/
341 #define CREATE_LINKMAP ((FSIZE_t)0 - 1)
354 #define FS_EXFAT 4