FatFS
FIL::sect
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
FIL::sect
FIL::sect field
Syntax
Show:
Summary
Declaration
from
ff.h:213
LBA_t
sect
;
Examples
References
from
examples
Code
Location
Referrer
LBA_t
sect
;
/* Sector number appearing in buf[] (0:invalid) */
ff.h:213
fp
->
sect
=
0
;
/* Invalidate current data sector */
ff.c:3878
f_open()
fp
->
sect
=
sc
+
(
DWORD
)
(
ofs
/
SS
(
fs
)
)
;
ff.c:3911
f_open()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:3913
f_open()
if
(
(
fp
->
flag
&
FA_DIRTY
)
&&
fp
->
sect
-
sect
<
cc
)
{
ff.c:4009
f_read()
memcpy
(
rbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
fp
->
buf
,
SS
(
fs
)
)
;
ff.c:4010
f_read()
if
(
fp
->
sect
!=
sect
)
{
/* Load data sector if not in cache */
ff.c:4018
f_read()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4021
f_read()
fp
->
sect
=
sect
;
ff.c:4028
f_read()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4105
f_write()
if
(
fp
->
sect
-
sect
<
cc
)
{
/* Refill sector cache if it gets invalidated by the direct write */
ff.c:4125
f_write()
memcpy
(
fp
->
buf
,
wbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
SS
(
fs
)
)
;
ff.c:4126
f_write()
if
(
fp
->
sect
!=
sect
&&
/* Fill sector cache with file data */
ff.c:4140
f_write()
fp
->
sect
=
sect
;
ff.c:4146
f_write()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
LEAVE_FF
(
fs
,
FR_DISK_ERR
)
;
ff.c:4187
f_sync()
if
(
fp
->
fptr
%
SS
(
fs
)
&&
nsect
!=
fp
->
sect
)
{
/* Fill sector cache if needed */
ff.c:4614
f_lseek()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4618
f_lseek()
fp
->
sect
=
nsect
;
ff.c:4624
f_lseek()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
{
ff.c:4983
f_truncate()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FIL::sect
is written by 4 functions and is read by 6 functions:
f_open()
f_read()
f_write()
f_lseek()
All items filtered out
FIL::sect
f_open()
f_read()
f_write()
f_sync()
f_lseek()
f_truncate()
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