FatFS
FATFS::csize
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FATFS::csize
FATFS::csize field
Syntax
Show:
Summary
Declaration
from
ff.h:141
WORD
csize
;
Examples
References
from
examples
Code
Location
Referrer
WORD
csize
;
/* Cluster size [sectors] */
ff.h:141
return
fs
->
database
+
(
LBA_t
)
fs
->
csize
*
clst
;
/* Start sector number of the cluster */
ff.c:1156
clst2sect()
rt
[
1
]
=
clst2sect
(
fs
,
ecl
)
+
fs
->
csize
-
1
;
/* End of data area to be freed */
ff.c:1484
remove_chain()
for
(
szb
=
(
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
>=
MAX_MALLOC
)
?
MAX_MALLOC
:
fs
->
csize
*
SS
(
fs
)
,
ibuf
=
0
;
szb
>
SS
(
fs
)
&&
(
ibuf
=
ff_memalloc
(
szb
)
)
==
0
;
szb
/=
2
)
;
ff.c:1679
dir_clear()
for
(
n
=
0
;
n
<
fs
->
csize
&&
disk_write
(
fs
->
pdrv
,
ibuf
,
sect
+
n
,
szb
)
==
RES_OK
;
n
+=
szb
)
;
/* Fill the cluster with 0 */
ff.c:1683
dir_clear()
for
(
n
=
0
;
n
<
fs
->
csize
&&
disk_write
(
fs
->
pdrv
,
ibuf
,
sect
+
n
,
szb
)
==
RES_OK
;
n
+=
szb
)
;
/* Fill the cluster with 0 */
ff.c:1689
dir_clear()
return
(
n
==
fs
->
csize
)
?
FR_OK
:
FR_DISK_ERR
;
ff.c:1691
dir_clear()
csz
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Bytes per cluster */
ff.c:1726
dir_sdi()
if
(
(
ofs
/
SS
(
fs
)
&
(
fs
->
csize
-
1
)
)
==
0
)
{
/* Cluster changed? */
ff.c:1772
dir_next()
fs
->
csize
=
fs
->
win
[
BPB_SecPerClus
]
;
/* Cluster size */
ff.c:3531
mount_volume()
if
(
fs
->
csize
==
0
||
(
fs
->
csize
&
(
fs
->
csize
-
1
)
)
)
return
FR_NO_FILESYSTEM
;
/* (Must be power of 2) */
ff.c:3532
mount_volume()
nclst
=
(
tsect
-
sysect
)
/
fs
->
csize
;
/* Number of clusters */
ff.c:3546
mount_volume()
bcs
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size in byte */
ff.c:3898
f_open()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
&
(
fs
->
csize
-
1
)
)
;
/* Sector offset in the cluster */
ff.c:3976
f_read()
if
(
csect
+
cc
>
fs
->
csize
)
{
/* Clip at cluster boundary */
ff.c:3999
f_read()
cc
=
fs
->
csize
-
csect
;
ff.c:4000
f_read()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
)
&
(
fs
->
csize
-
1
)
;
/* Sector offset in the cluster */
ff.c:4078
f_write()
if
(
csect
+
cc
>
fs
->
csize
)
{
/* Clip at cluster boundary */
ff.c:4114
f_write()
cc
=
fs
->
csize
-
csect
;
ff.c:4115
f_write()
bcs
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size (byte) */
ff.c:4562
f_lseek()
n
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size */
ff.c:5623
f_expand()
uint64_t
total_sectors
=
(
(
uint64_t
)
(
fs
->
n_fatent
-
2
)
)
*
fs
->
csize
;
vfs_fat.c:268
esp_vfs_fat_info()
uint64_t
free_sectors
=
(
(
uint64_t
)
free_clusters
)
*
fs
->
csize
;
vfs_fat.c:269
esp_vfs_fat_info()
const
size_t
copy_buf_size
=
fat_ctx
->
fs
.
csize
;
vfs_fat.c:795
vfs_fat_link()
clsz
=
(
DWORD
)
fp
->
obj
.
fs
->
csize
*
fp
->
obj
.
fs
->
ssize
;
vfs_fat.c:1458
test_contiguous_file()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FATFS::csize
is written by 1 function and is read by 14 functions:
mount_volume()
All items filtered out
FATFS::csize
clst2sect()
remove_chain()
dir_clear()
dir_sdi()
dir_next()
mount_volume()
f_open()
f_read()
f_write()
f_lseek()
f_expand()
esp_vfs_fat_info()
vfs_fat_link()
test_contiguous_file()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out