FatFs
FATFS::win
is only used within FatFs.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
FatFs
FATFS::win
FATFS::win field
Syntax
from
ff.h:125
BYTE
win
[
_MAX_SS
]
;
References
Location
Referrer
Text
ff.h:125
BYTE
win
[
_MAX_SS
]
;
/* Disk access window for Directory, FAT (and file data at tiny cfg) */
ff.c:894
sync_window()
if
(
disk_write
(
fs
->
drv
,
fs
->
win
,
wsect
,
1
)
!=
RES_OK
)
{
ff.c:901
sync_window()
disk_write
(
fs
->
drv
,
fs
->
win
,
wsect
,
1
)
;
ff.c:925
move_window()
if
(
disk_read
(
fs
->
drv
,
fs
->
win
,
sector
,
1
)
!=
RES_OK
)
{
ff.c:956
sync_fs()
mem_set
(
fs
->
win
,
0
,
SS
(
fs
)
)
;
ff.c:957
sync_fs()
st_word
(
fs
->
win
+
BS_55AA
,
0xAA55
)
;
ff.c:958
sync_fs()
st_dword
(
fs
->
win
+
FSI_LeadSig
,
0x41615252
)
;
ff.c:959
sync_fs()
st_dword
(
fs
->
win
+
FSI_StrucSig
,
0x61417272
)
;
ff.c:960
sync_fs()
st_dword
(
fs
->
win
+
FSI_Free_Count
,
fs
->
free_clst
)
;
ff.c:961
sync_fs()
st_dword
(
fs
->
win
+
FSI_Nxt_Free
,
fs
->
last_clst
)
;
ff.c:964
sync_fs()
disk_write
(
fs
->
drv
,
fs
->
win
,
fs
->
winsect
,
1
)
;
ff.c:1021
get_fat()
wc
=
fs
->
win
[
bc
++
%
SS
(
fs
)
]
;
ff.c:1023
get_fat()
wc
|=
fs
->
win
[
bc
%
SS
(
fs
)
]
<
<
8
;
ff.c:1029
get_fat()
val
=
ld_word
(
fs
->
win
+
clst
*
2
%
SS
(
fs
)
)
;
ff.c:1034
get_fat()
val
=
ld_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
)
&
0x0FFFFFFF
;
ff.c:1097
put_fat()
p
=
fs
->
win
+
bc
++
%
SS
(
fs
)
;
ff.c:1102
put_fat()
p
=
fs
->
win
+
bc
%
SS
(
fs
)
;
ff.c:1110
put_fat()
st_word
(
fs
->
win
+
clst
*
2
%
SS
(
fs
)
,
(
WORD
)
val
)
;
ff.c:1121
put_fat()
val
=
(
val
&
0x0FFFFFFF
)
|
(
ld_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
)
&
0xF0000000
)
;
ff.c:1123
put_fat()
st_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
,
val
)
;
ff.c:1506
dir_sdi()
dp
->
dir
=
fs
->
win
+
(
ofs
%
SS
(
fs
)
)
;
/* Pointer to the entry in the win[] */
ff.c:1558
dir_next()
mem_set
(
fs
->
win
,
0
,
SS
(
fs
)
)
;
/* Clear window buffer */
ff.c:1575
dir_next()
dp
->
dir
=
fs
->
win
+
ofs
%
SS
(
fs
)
;
/* Pointer to the entry in the win[] */
ff.c:2888
follow_path()
obj
->
sclust
=
ld_clust
(
fs
,
fs
->
win
+
dp
->
dptr
%
SS
(
fs
)
)
;
/* Open next directory */
ff.c:2973
check_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:2975
check_fs()
if
(
fs
->
win
[
BS_JmpBoot
]
==
0xE9
||
(
fs
->
win
[
BS_JmpBoot
]
==
0xEB
&&
fs
->
win
[
BS_JmpBoot
+
2
]
==
0x90
)
)
{
ff.c:2976
check_fs()
if
(
(
ld_dword
(
fs
->
win
+
BS_FilSysType
)
&
0xFFFFFF
)
==
0x544146
)
return
0
;
/* Check "FAT" string */
ff.c:2977
check_fs()
if
(
ld_dword
(
fs
->
win
+
BS_FilSysType32
)
==
0x33544146
)
return
0
;
/* Check "FAT3" string */
ff.c:3053
find_volume()
pt
=
fs
->
win
+
(
MBR_Table
+
i
*
SZ_PTE
)
;
ff.c:3116
find_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:3118
find_volume()
fasize
=
ld_word
(
fs
->
win
+
BPB_FATSz16
)
;
/* Number of sectors per FAT */
ff.c:3119
find_volume()
if
(
fasize
==
0
)
fasize
=
ld_dword
(
fs
->
win
+
BPB_FATSz32
)
;
ff.c:3122
find_volume()
fs
->
n_fats
=
fs
->
win
[
BPB_NumFATs
]
;
/* Number of FATs */
ff.c:3126
find_volume()
fs
->
csize
=
fs
->
win
[
BPB_SecPerClus
]
;
/* Cluster size */
ff.c:3129
find_volume()
fs
->
n_rootdir
=
ld_word
(
fs
->
win
+
BPB_RootEntCnt
)
;
/* Number of root directory entries */
ff.c:3132
find_volume()
tsect
=
ld_word
(
fs
->
win
+
BPB_TotSec16
)
;
/* Number of sectors on the volume */
ff.c:3133
find_volume()
if
(
tsect
==
0
)
tsect
=
ld_dword
(
fs
->
win
+
BPB_TotSec32
)
;
ff.c:3135
find_volume()
nrsv
=
ld_word
(
fs
->
win
+
BPB_RsvdSecCnt
)
;
/* Number of reserved sectors */
ff.c:3153
find_volume()
if
(
ld_word
(
fs
->
win
+
BPB_FSVer32
)
!=
0
)
return
FR_NO_FILESYSTEM
;
/* (Must be FAT32 revision 0.0) */
ff.c:3155
find_volume()
fs
->
dirbase
=
ld_dword
(
fs
->
win
+
BPB_RootClus32
)
;
/* Root directory start cluster */
ff.c:3171
find_volume()
&&
ld_word
(
fs
->
win
+
BPB_FSInfo32
)
==
1
ff.c:3175
find_volume()
if
(
ld_word
(
fs
->
win
+
BS_55AA
)
==
0xAA55
/* Load FSINFO data if available */
ff.c:3176
find_volume()
&&
ld_dword
(
fs
->
win
+
FSI_LeadSig
)
==
0x41615252
ff.c:3177
find_volume()
&&
ld_dword
(
fs
->
win
+
FSI_StrucSig
)
==
0x61417272
)
ff.c:3180
find_volume()
fs
->
free_clst
=
ld_dword
(
fs
->
win
+
FSI_Free_Count
)
;
ff.c:3183
find_volume()
fs
->
last_clst
=
ld_dword
(
fs
->
win
+
FSI_Nxt_Free
)
;
ff.c:4446
f_getfree()
p
=
fs
->
win
;
ff.c:4654
f_mkdir()
dir
=
fs
->
win
;
ff.c:4789
f_rename()
dir
=
fs
->
win
+
SZDIRE
*
1
;
/* Ptr to .. entry */
Data Use
Functions reading
FATFS::win
FATFS::win
sync_window()
move_window()
sync_fs()
get_fat()
put_fat()
dir_sdi()
dir_next()
follow_path()
check_fs()
find_volume()
f_getfree()
f_mkdir()
f_rename()
all items filtered out
Type of
FATFS::win
FATFS::win
BYTE
all items filtered out