FatFs
+ 0/17 examples
CodeScope will show references to
FIL::obj
from the following samples and libraries:
Examples
STM32F413ZH-Nucleo
Demonstrations
STM32F429ZI-Nucleo
Demonstrations
STM32446E_EVAL
Demonstrations
STemWin
Applications
USB_Host
FWupgrade_Standalone
STM32469I-Discovery
Demonstrations
STemWin
Applications
USB_Host
FWupgrade_Standalone
STM32469I_EVAL
Demonstrations
STemWin
STM324xG_EVAL
Demonstrations
STemWin
Applications
USB_Host
CDC_Standalone
FWupgrade_Standalone
STM32F412G-Discovery
Demonstrations
STemWin
STM32F413H-Discovery
Demonstrations
STemWin
STM324x9I_EVAL
Applications
USB_Host
CDC_Standalone
FWupgrade_Standalone
Demonstrations
STemWin
MB1046
MB1063
STM32F429I-Discovery
Applications
USB_Host
FWupgrade_Standalone
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
FatFs
FIL::obj
FIL::obj field
Syntax
from
ff.h:156
_FDID
obj
;
Examples
FIL::obj
is referenced by
17 libraries and example projects
.
References
Location
Referrer
Text
ff.h:156
_FDID
obj
;
/* Object identifier (must be the 1st member to detect invalid object pointer) */
ff.c:1446
clmt_clust()
FATFS
*
fs
=
fp
->
obj
.
fs
;
ff.c:3428
f_open()
fp
->
obj
.
lockid
=
inc_lock
(
&
dj
,
(
mode
&
~
FA_READ
)
?
1
:
0
)
;
ff.c:3429
f_open()
if
(
!
fp
->
obj
.
lockid
)
res
=
FR_INT_ERR
;
ff.c:3456
f_open()
fp
->
obj
.
sclust
=
ld_clust
(
fs
,
dj
.
dir
)
;
/* Get object allocation info */
ff.c:3457
f_open()
fp
->
obj
.
objsize
=
ld_dword
(
dj
.
dir
+
DIR_FileSize
)
;
ff.c:3462
f_open()
fp
->
obj
.
fs
=
fs
;
/* Validate the file object */
ff.c:3463
f_open()
fp
->
obj
.
id
=
fs
->
id
;
ff.c:3472
f_open()
if
(
(
mode
&
FA_SEEKEND
)
&&
fp
->
obj
.
objsize
>
0
)
{
/* Seek to end of file if FA_OPEN_APPEND is specified */
ff.c:3473
f_open()
fp
->
fptr
=
fp
->
obj
.
objsize
;
/* Offset to seek */
ff.c:3475
f_open()
clst
=
fp
->
obj
.
sclust
;
/* Follow the cluster chain */
ff.c:3476
f_open()
for
(
ofs
=
fp
->
obj
.
objsize
;
res
==
FR_OK
&&
ofs
>
bcs
;
ofs
-=
bcs
)
{
ff.c:3477
f_open()
clst
=
get_fat
(
&
fp
->
obj
,
clst
)
;
ff.c:3499
f_open()
if
(
res
!=
FR_OK
)
fp
->
obj
.
fs
=
0
;
/* Invalidate file object on error */
ff.c:3527
f_read()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:3530
f_read()
remain
=
fp
->
obj
.
objsize
-
fp
->
fptr
;
ff.c:3539
f_read()
clst
=
fp
->
obj
.
sclust
;
/* Follow cluster chain from the origin */
ff.c:3547
f_read()
clst
=
get_fat
(
&
fp
->
obj
,
fp
->
clust
)
;
/* Follow cluster chain on the FAT */
ff.c:3626
f_write()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:3636
f_write()
wbuff
+=
wcnt
,
fp
->
fptr
+=
wcnt
,
fp
->
obj
.
objsize
=
(
fp
->
fptr
>
fp
->
obj
.
objsize
)
?
fp
->
fptr
:
fp
->
obj
.
objsize
,
*
bw
+=
wcnt
,
btw
-=
wcnt
)
{
ff.c:3641
f_write()
clst
=
fp
->
obj
.
sclust
;
/* Follow from the origin */
ff.c:3643
f_write()
clst
=
create_chain
(
&
fp
->
obj
,
0
)
;
/* create a new cluster chain */
ff.c:3652
f_write()
clst
=
create_chain
(
&
fp
->
obj
,
fp
->
clust
)
;
/* Follow or stretch cluster chain on the FAT */
ff.c:3659
f_write()
if
(
fp
->
obj
.
sclust
==
0
)
fp
->
obj
.
sclust
=
clst
;
/* Set start cluster if the first write */
ff.c:3701
f_write()
fp
->
fptr
<
fp
->
obj
.
objsize
&&
ff.c:3745
f_sync()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:3789
f_sync()
st_clust
(
fp
->
obj
.
fs
,
dir
,
fp
->
obj
.
sclust
)
;
/* Update file allocation info */
ff.c:3790
f_sync()
st_dword
(
dir
+
DIR_FileSize
,
(
DWORD
)
fp
->
obj
.
objsize
)
;
/* Update file size */
ff.c:3825
f_close()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Lock volume */
ff.c:3828
f_close()
res
=
dec_lock
(
fp
->
obj
.
lockid
)
;
/* Decrement file open counter */
ff.c:3832
f_close()
fp
->
obj
.
fs
=
0
;
/* Invalidate file object */
ff.c:4014
f_lseek()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:4028
f_lseek()
cl
=
fp
->
obj
.
sclust
;
/* Origin of the chain */
ff.c:4035
f_lseek()
cl
=
get_fat
(
&
fp
->
obj
,
cl
)
;
ff.c:4051
f_lseek()
if
(
ofs
>
fp
->
obj
.
objsize
)
ofs
=
fp
->
obj
.
objsize
;
/* Clip offset at the file size */
ff.c:4080
f_lseek()
if
(
ofs
>
fp
->
obj
.
objsize
&&
(
_FS_READONLY
||
!
(
fp
->
flag
&
FA_WRITE
)
)
)
{
/* In read-only mode, clip offset with the file size */
ff.c:4081
f_lseek()
ofs
=
fp
->
obj
.
objsize
;
ff.c:4093
f_lseek()
clst
=
fp
->
obj
.
sclust
;
/* start from the first cluster */
ff.c:4096
f_lseek()
clst
=
create_chain
(
&
fp
->
obj
,
0
)
;
ff.c:4099
f_lseek()
fp
->
obj
.
sclust
=
clst
;
ff.c:4109
f_lseek()
if
(
_FS_EXFAT
&&
fp
->
fptr
>
fp
->
obj
.
objsize
)
{
/* No FAT chain object needs correct objsize to generate FAT value */
ff.c:4110
f_lseek()
fp
->
obj
.
objsize
=
fp
->
fptr
;
ff.c:4113
f_lseek()
clst
=
create_chain
(
&
fp
->
obj
,
clst
)
;
/* Follow chain with forceed stretch */
ff.c:4120
f_lseek()
clst
=
get_fat
(
&
fp
->
obj
,
clst
)
;
/* Follow cluster chain if not in write mode */
ff.c:4134
f_lseek()
if
(
!
_FS_READONLY
&&
fp
->
fptr
>
fp
->
obj
.
objsize
)
{
/* Set file change flag if the file size is extended */
ff.c:4135
f_lseek()
fp
->
obj
.
objsize
=
fp
->
fptr
;
ff.c:4484
f_truncate()
res
=
validate
(
&
fp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:4488
f_truncate()
if
(
fp
->
fptr
<
fp
->
obj
.
objsize
)
{
/* Process when fptr is not on the eof */
ff.c:4490
f_truncate()
res
=
remove_chain
(
&
fp
->
obj
,
fp
->
obj
.
sclust
,
0
)
;
ff.c:4491
f_truncate()
fp
->
obj
.
sclust
=
0
;
ff.c:4493
f_truncate()
ncl
=
get_fat
(
&
fp
->
obj
,
fp
->
clust
)
;
ff.c:4498
f_truncate()
res
=
remove_chain
(
&
fp
->
obj
,
ncl
,
fp
->
clust
)
;
ff.c:4501
f_truncate()
fp
->
obj
.
objsize
=
fp
->
fptr
;
/* Set file size to current R/W point */
Data Use
Functions reading
FIL::obj
FIL::obj
clmt_clust()
f_open()
f_read()
f_write()
f_sync()
f_close()
f_lseek()
f_truncate()
all items filtered out
Type of
FIL::obj
FIL::obj
_FDID
all items filtered out