FatFS
FIL::err
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::err
FIL::err field
Syntax
Show:
Summary
Declaration
from
ff.h:210
BYTE
err
;
Examples
References
from
examples
Code
Location
Referrer
BYTE
err
;
/* Abort flag (error code) */
ff.h:210
fp
->
err
=
0
;
/* Clear error flag */
ff.c:3877
f_open()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
/* Check validity */
ff.c:3969
f_read()
if
(
clst
<
2
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3990
f_read()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3991
f_read()
if
(
sect
==
0
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3995
f_read()
if
(
disk_read
(
fs
->
pdrv
,
rbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4002
f_read()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4021
f_read()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:4025
f_read()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
/* Check validity */
ff.c:4068
f_write()
if
(
clst
==
1
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4096
f_write()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4097
f_write()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4105
f_write()
if
(
sect
==
0
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4110
f_write()
if
(
disk_write
(
fs
->
pdrv
,
wbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4117
f_write()
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4143
f_write()
if
(
res
==
FR_OK
)
res
=
(
FRESULT
)
fp
->
err
;
ff.c:4491
f_lseek()
if
(
clst
==
1
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4573
f_lseek()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4574
f_lseek()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4598
f_lseek()
if
(
clst
<=
1
||
clst
>=
fs
->
n_fatent
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4599
f_lseek()
if
(
nsect
==
0
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4605
f_lseek()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4618
f_lseek()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
nsect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:4622
f_lseek()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
ff.c:4963
f_truncate()
if
(
res
!=
FR_OK
)
ABORT
(
fs
,
res
)
;
ff.c:4990
f_truncate()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
ff.c:5618
f_expand()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FIL::err
is written by 5 functions and is read by 5 functions:
f_open()
f_read()
f_write()
f_lseek()
f_truncate()
All items filtered out
FIL::err
f_read()
f_write()
f_lseek()
f_truncate()
f_expand()
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