FATFS::win is only used within FatFs.
 
Symbols
loading...
Files
loading...

FATFS::win field

Syntax

BYTE win[_MAX_SS];

References

LocationReferrerText
ff.h:125
BYTE win[_MAX_SS]; /* Disk access window for Directory, FAT (and file data at tiny cfg) */
ff.c:894sync_window()
if (disk_write(fs->drv, fs->win, wsect, 1) != RES_OK) {
ff.c:901sync_window()
disk_write(fs->drv, fs->win, wsect, 1);
ff.c:925move_window()
if (disk_read(fs->drv, fs->win, sector, 1) != RES_OK) {
ff.c:956sync_fs()
mem_set(fs->win, 0, SS(fs));
ff.c:957sync_fs()
st_word(fs->win + BS_55AA, 0xAA55);
ff.c:958sync_fs()
st_dword(fs->win + FSI_LeadSig, 0x41615252);
ff.c:959sync_fs()
st_dword(fs->win + FSI_StrucSig, 0x61417272);
ff.c:960sync_fs()
ff.c:961sync_fs()
ff.c:964sync_fs()
disk_write(fs->drv, fs->win, fs->winsect, 1);
ff.c:1021get_fat()
wc = fs->win[bc++ % SS(fs)];
ff.c:1023get_fat()
wc |= fs->win[bc % SS(fs)] << 8;
ff.c:1029get_fat()
val = ld_word(fs->win + clst * 2 % SS(fs));
ff.c:1034get_fat()
val = ld_dword(fs->win + clst * 4 % SS(fs)) & 0x0FFFFFFF;
ff.c:1097put_fat()
p = fs->win + bc++ % SS(fs);
ff.c:1102put_fat()
p = fs->win + bc % SS(fs);
ff.c:1110put_fat()
st_word(fs->win + clst * 2 % SS(fs), (WORD)val);
ff.c:1121put_fat()
val = (val & 0x0FFFFFFF) | (ld_dword(fs->win + clst * 4 % SS(fs)) & 0xF0000000);
ff.c:1123put_fat()
st_dword(fs->win + clst * 4 % SS(fs), val);
ff.c:1506dir_sdi()
dp->dir = fs->win + (ofs % SS(fs)); /* Pointer to the entry in the win[] */
ff.c:1558dir_next()
mem_set(fs->win, 0, SS(fs)); /* Clear window buffer */
ff.c:1575dir_next()
dp->dir = fs->win + ofs % SS(fs); /* Pointer to the entry in the win[] */
ff.c:2888follow_path()
obj->sclust = ld_clust(fs, fs->win + dp->dptr % SS(fs)); /* Open next directory */
ff.c:2973check_fs()
if (ld_word(fs->win + BS_55AA) != 0xAA55) return 3; /* Check boot record signature (always placed here even if the sector size is >512) */
ff.c:2975check_fs()
if (fs->win[BS_JmpBoot] == 0xE9 || (fs->win[BS_JmpBoot] == 0xEB && fs->win[BS_JmpBoot + 2] == 0x90)) {
ff.c:2976check_fs()
if ((ld_dword(fs->win + BS_FilSysType) & 0xFFFFFF) == 0x544146) return 0; /* Check "FAT" string */
ff.c:2977check_fs()
if (ld_dword(fs->win + BS_FilSysType32) == 0x33544146) return 0; /* Check "FAT3" string */
ff.c:3053find_volume()
pt = fs->win + (MBR_Table + i * SZ_PTE);
ff.c:3116find_volume()
if (ld_word(fs->win + BPB_BytsPerSec) != SS(fs)) return FR_NO_FILESYSTEM; /* (BPB_BytsPerSec must be equal to the physical sector size) */
ff.c:3118find_volume()
fasize = ld_word(fs->win + BPB_FATSz16); /* Number of sectors per FAT */
ff.c:3119find_volume()
if (fasize == 0) fasize = ld_dword(fs->win + BPB_FATSz32);
ff.c:3122find_volume()
fs->n_fats = fs->win[BPB_NumFATs]; /* Number of FATs */
ff.c:3126find_volume()
fs->csize = fs->win[BPB_SecPerClus]; /* Cluster size */
ff.c:3129find_volume()
fs->n_rootdir = ld_word(fs->win + BPB_RootEntCnt); /* Number of root directory entries */
ff.c:3132find_volume()
tsect = ld_word(fs->win + BPB_TotSec16); /* Number of sectors on the volume */
ff.c:3133find_volume()
if (tsect == 0) tsect = ld_dword(fs->win + BPB_TotSec32);
ff.c:3135find_volume()
nrsv = ld_word(fs->win + BPB_RsvdSecCnt); /* Number of reserved sectors */
ff.c:3153find_volume()
if (ld_word(fs->win + BPB_FSVer32) != 0) return FR_NO_FILESYSTEM; /* (Must be FAT32 revision 0.0) */
ff.c:3155find_volume()
fs->dirbase = ld_dword(fs->win + BPB_RootClus32); /* Root directory start cluster */
ff.c:3171find_volume()
&& ld_word(fs->win + BPB_FSInfo32) == 1
ff.c:3175find_volume()
if (ld_word(fs->win + BS_55AA) == 0xAA55 /* Load FSINFO data if available */
ff.c:3176find_volume()
&& ld_dword(fs->win + FSI_LeadSig) == 0x41615252
ff.c:3177find_volume()
&& ld_dword(fs->win + FSI_StrucSig) == 0x61417272)
ff.c:3180find_volume()
ff.c:3183find_volume()
fs->last_clst = ld_dword(fs->win + FSI_Nxt_Free);
ff.c:4446f_getfree()
p = fs->win;
ff.c:4654f_mkdir()
dir = fs->win;
ff.c:4789f_rename()
dir = fs->win + SZDIRE * 1; /* Ptr to .. entry */

Data Use

Type of FATFS::win
FATFS::win
all items filtered out