FatFS
FATFS::ssize
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FATFS::ssize
FATFS::ssize field
Syntax
Show:
Summary
Declaration
from
ff.h:143
WORD
ssize
;
Examples
References
from
examples
Code
Location
Referrer
WORD
ssize
;
/* Sector size (512, 1024, 2048 or 4096) */
ff.h:143
memset
(
fs
->
win
,
0
,
SS
(
fs
)
)
;
ff.c:1124
sync_fs()
if
(
move_window
(
fs
,
fs
->
fatbase
+
(
bc
/
SS
(
fs
)
)
)
!=
FR_OK
)
break
;
ff.c:1185
get_fat()
wc
=
fs
->
win
[
bc
++
%
SS
(
fs
)
]
;
/* Get 1st byte of the entry */
ff.c:1186
get_fat()
if
(
move_window
(
fs
,
fs
->
fatbase
+
(
bc
/
SS
(
fs
)
)
)
!=
FR_OK
)
break
;
ff.c:1187
get_fat()
wc
|=
fs
->
win
[
bc
%
SS
(
fs
)
]
<
<
8
;
/* Merge 2nd byte of the entry */
ff.c:1188
get_fat()
if
(
move_window
(
fs
,
fs
->
fatbase
+
(
clst
/
(
SS
(
fs
)
/
2
)
)
)
!=
FR_OK
)
break
;
ff.c:1193
get_fat()
val
=
ld_word
(
fs
->
win
+
clst
*
2
%
SS
(
fs
)
)
;
/* Simple WORD array */
ff.c:1194
get_fat()
if
(
move_window
(
fs
,
fs
->
fatbase
+
(
clst
/
(
SS
(
fs
)
/
4
)
)
)
!=
FR_OK
)
break
;
ff.c:1198
get_fat()
val
=
ld_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
)
&
0x0FFFFFFF
;
/* Simple DWORD array but mask out upper 4 bits */
ff.c:1199
get_fat()
res
=
move_window
(
fs
,
fs
->
fatbase
+
(
bc
/
SS
(
fs
)
)
)
;
ff.c:1259
put_fat()
p
=
fs
->
win
+
bc
++
%
SS
(
fs
)
;
ff.c:1261
put_fat()
res
=
move_window
(
fs
,
fs
->
fatbase
+
(
bc
/
SS
(
fs
)
)
)
;
ff.c:1264
put_fat()
p
=
fs
->
win
+
bc
%
SS
(
fs
)
;
ff.c:1266
put_fat()
res
=
move_window
(
fs
,
fs
->
fatbase
+
(
clst
/
(
SS
(
fs
)
/
2
)
)
)
;
ff.c:1272
put_fat()
st_word
(
fs
->
win
+
clst
*
2
%
SS
(
fs
)
,
(
WORD
)
val
)
;
/* Simple WORD array */
ff.c:1274
put_fat()
res
=
move_window
(
fs
,
fs
->
fatbase
+
(
clst
/
(
SS
(
fs
)
/
4
)
)
)
;
ff.c:1282
put_fat()
val
=
(
val
&
0x0FFFFFFF
)
|
(
ld_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
)
&
0xF0000000
)
;
ff.c:1285
put_fat()
st_dword
(
fs
->
win
+
clst
*
4
%
SS
(
fs
)
,
val
)
;
ff.c:1287
put_fat()
memset
(
fs
->
win
,
0
,
SS
(
fs
)
)
;
/* Clear window buffer */
ff.c:1676
dir_clear()
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()
if
(
szb
>
SS
(
fs
)
)
{
/* Buffer allocated? */
ff.c:1680
dir_clear()
szb
/=
SS
(
fs
)
;
/* Bytes -> Sectors */
ff.c:1682
dir_clear()
csz
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Bytes per cluster */
ff.c:1726
dir_sdi()
dp
->
sect
+=
ofs
/
SS
(
fs
)
;
/* Sector# of the directory entry */
ff.c:1737
dir_sdi()
dp
->
dir
=
fs
->
win
+
(
ofs
%
SS
(
fs
)
)
;
/* Pointer to the entry in the win[] */
ff.c:1738
dir_sdi()
if
(
ofs
%
SS
(
fs
)
==
0
)
{
/* Sector changed? */
ff.c:1763
dir_next()
if
(
(
ofs
/
SS
(
fs
)
&
(
fs
->
csize
-
1
)
)
==
0
)
{
/* Cluster changed? */
ff.c:1772
dir_next()
dp
->
dir
=
fs
->
win
+
ofs
%
SS
(
fs
)
;
/* Pointer to the entry in the win[] */
ff.c:1798
dir_next()
dp
->
obj
.
sclust
=
ld_clust
(
fs
,
fs
->
win
+
dp
->
dptr
%
SS
(
fs
)
)
;
/* Open next directory */
ff.c:3128
follow_path()
if
(
disk_ioctl
(
fs
->
pdrv
,
GET_SECTOR_SIZE
,
&
SS
(
fs
)
)
!=
RES_OK
)
return
FR_DISK_ERR
;
ff.c:3441
mount_volume()
if
(
SS
(
fs
)
>
FF_MAX_SS
||
SS
(
fs
)
<
FF_MIN_SS
||
(
SS
(
fs
)
&
(
SS
(
fs
)
-
1
)
)
)
return
FR_DISK_ERR
;
ff.c:3442
mount_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:3521
mount_volume()
if
(
fs
->
n_rootdir
%
(
SS
(
fs
)
/
SZDIRE
)
)
return
FR_NO_FILESYSTEM
;
/* (Must be sector aligned) */
ff.c:3535
mount_volume()
sysect
=
nrsv
+
fasize
+
fs
->
n_rootdir
/
(
SS
(
fs
)
/
SZDIRE
)
;
/* RSV + FAT + FF_DIR */
ff.c:3544
mount_volume()
if
(
fs
->
fsize
<
(
szbfat
+
(
SS
(
fs
)
-
1
)
)
/
SS
(
fs
)
)
return
FR_NO_FILESYSTEM
;
/* (BPB_FATSz must not be less than the size needed) */
ff.c:3570
mount_volume()
memset
(
fp
->
buf
,
0
,
SS
(
fs
)
)
;
/* Clear sector buffer */
ff.c:3893
f_open()
bcs
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size in byte */
ff.c:3898
f_open()
if
(
res
==
FR_OK
&&
ofs
%
SS
(
fs
)
)
{
/* Fill sector buffer if not on the sector boundary */
ff.c:3906
f_open()
fp
->
sect
=
sc
+
(
DWORD
)
(
ofs
/
SS
(
fs
)
)
;
ff.c:3911
f_open()
if
(
fp
->
fptr
%
SS
(
fs
)
==
0
)
{
/* On the sector boundary? */
ff.c:3975
f_read()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
&
(
fs
->
csize
-
1
)
)
;
/* Sector offset in the cluster */
ff.c:3976
f_read()
cc
=
btr
/
SS
(
fs
)
;
/* When remaining bytes >= sector size, */
ff.c:3997
f_read()
memcpy
(
rbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
fp
->
buf
,
SS
(
fs
)
)
;
ff.c:4010
f_read()
rcnt
=
SS
(
fs
)
*
cc
;
/* Number of bytes transferred */
ff.c:4014
f_read()
rcnt
=
SS
(
fs
)
-
(
UINT
)
fp
->
fptr
%
SS
(
fs
)
;
/* Number of bytes remains in the sector */
ff.c:4030
f_read()
memcpy
(
rbuff
,
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
rcnt
)
;
/* Extract partial sector */
ff.c:4036
f_read()
if
(
fp
->
fptr
%
SS
(
fs
)
==
0
)
{
/* On the sector boundary? */
ff.c:4077
f_write()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
)
&
(
fs
->
csize
-
1
)
;
/* Sector offset in the cluster */
ff.c:4078
f_write()
cc
=
btw
/
SS
(
fs
)
;
/* When remaining bytes >= sector size, */
ff.c:4112
f_write()
memcpy
(
fp
->
buf
,
wbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
SS
(
fs
)
)
;
ff.c:4126
f_write()
wcnt
=
SS
(
fs
)
*
cc
;
/* Number of bytes transferred */
ff.c:4131
f_write()
wcnt
=
SS
(
fs
)
-
(
UINT
)
fp
->
fptr
%
SS
(
fs
)
;
/* Number of bytes remains in the sector */
ff.c:4148
f_write()
memcpy
(
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
wbuff
,
wcnt
)
;
/* Fit data to the sector */
ff.c:4155
f_write()
bcs
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size (byte) */
ff.c:4562
f_lseek()
if
(
ofs
%
SS
(
fs
)
)
{
ff.c:4603
f_lseek()
nsect
+=
(
DWORD
)
(
ofs
/
SS
(
fs
)
)
;
ff.c:4606
f_lseek()
if
(
fp
->
fptr
%
SS
(
fs
)
&&
nsect
!=
fp
->
sect
)
{
/* Fill sector cache if needed */
ff.c:4614
f_lseek()
i
%=
SS
(
fs
)
;
ff.c:4931
f_getfree()
n
=
(
DWORD
)
fs
->
csize
*
SS
(
fs
)
;
/* Cluster size */
ff.c:5623
f_expand()
sector_size
=
fs
->
ssize
;
vfs_fat.c:272
esp_vfs_fat_info()
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::ssize
is read by 16 functions:
All items filtered out
FATFS::ssize
sync_fs()
get_fat()
put_fat()
dir_clear()
dir_sdi()
dir_next()
follow_path()
mount_volume()
f_open()
f_read()
f_write()
f_lseek()
f_getfree()
f_expand()
esp_vfs_fat_info()
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