FatFs
+ 0/13 examples
CodeScope will show references to
FIL::fptr
from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
STemWin
STM32469I-Discovery
Demonstrations
STemWin
STM32469I_EVAL
Demonstrations
STemWin
STM324xG_EVAL
Demonstrations
STemWin
Applications
USB_Host
CDC_Standalone
DynamicSwitch_Standalone
STM32F412G-Discovery
Demonstrations
STemWin
Applications
USB_Host
AUDIO_Standalone
STM32F413H-Discovery
Demonstrations
STemWin
STM324x9I_EVAL
Applications
USB_Host
CDC_Standalone
DynamicSwitch_Standalone
Demonstrations
STemWin
MB1046
MB1063
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
FatFs
FIL::fptr
FIL::fptr field
Syntax
from
ff.h:159
FSIZE_t
fptr
;
Examples
FIL::fptr
is referenced by
13 libraries and example projects
.
References
Location
Referrer
Text
ff.h:159
FSIZE_t
fptr
;
/* File read/write pointer (Zeroed on file open) */
ff.c:3467
f_open()
fp
->
fptr
=
0
;
/* Set file pointer top of the file */
ff.c:3473
f_open()
fp
->
fptr
=
fp
->
obj
.
objsize
;
/* Offset to seek */
ff.c:3530
f_read()
remain
=
fp
->
obj
.
objsize
-
fp
->
fptr
;
ff.c:3534
f_read()
rbuff
+=
rcnt
,
fp
->
fptr
+=
rcnt
,
*
br
+=
rcnt
,
btr
-=
rcnt
)
{
ff.c:3535
f_read()
if
(
fp
->
fptr
%
SS
(
fs
)
==
0
)
{
/* On the sector boundary? */
ff.c:3536
f_read()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
&
(
fs
->
csize
-
1
)
)
;
/* Sector offset in the cluster */
ff.c:3538
f_read()
if
(
fp
->
fptr
==
0
)
{
/* On the top of the file? */
ff.c:3543
f_read()
clst
=
clmt_clust
(
fp
,
fp
->
fptr
)
;
/* Get cluster# from the CLMT */
ff.c:3590
f_read()
rcnt
=
SS
(
fs
)
-
(
UINT
)
fp
->
fptr
%
SS
(
fs
)
;
/* Number of bytes left in the sector */
ff.c:3596
f_read()
mem_cpy
(
rbuff
,
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
rcnt
)
;
/* Extract partial sector */
ff.c:3631
f_write()
if
(
(
!
_FS_EXFAT
||
fs
->
fs_type
!=
FS_EXFAT
)
&&
(
DWORD
)
(
fp
->
fptr
+
btw
)
<
(
DWORD
)
fp
->
fptr
)
{
ff.c:3632
f_write()
btw
=
(
UINT
)
(
0xFFFFFFFF
-
(
DWORD
)
fp
->
fptr
)
;
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:3637
f_write()
if
(
fp
->
fptr
%
SS
(
fs
)
==
0
)
{
/* On the sector boundary? */
ff.c:3638
f_write()
csect
=
(
UINT
)
(
fp
->
fptr
/
SS
(
fs
)
)
&
(
fs
->
csize
-
1
)
;
/* Sector offset in the cluster */
ff.c:3640
f_write()
if
(
fp
->
fptr
==
0
)
{
/* On the top of the file? */
ff.c:3648
f_write()
clst
=
clmt_clust
(
fp
,
fp
->
fptr
)
;
/* Get cluster# from the CLMT */
ff.c:3701
f_write()
fp
->
fptr
<
fp
->
obj
.
objsize
&&
ff.c:3708
f_write()
wcnt
=
SS
(
fs
)
-
(
UINT
)
fp
->
fptr
%
SS
(
fs
)
;
/* Number of bytes left in the sector */
ff.c:3715
f_write()
mem_cpy
(
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
wbuff
,
wcnt
)
;
/* Fit data to the sector */
ff.c:4052
f_lseek()
fp
->
fptr
=
ofs
;
/* Set file pointer */
ff.c:4058
f_lseek()
if
(
fp
->
fptr
%
SS
(
fs
)
&&
dsc
!=
fp
->
sect
)
{
/* Refill sector cache if needed */
ff.c:4083
f_lseek()
ifptr
=
fp
->
fptr
;
ff.c:4084
f_lseek()
fp
->
fptr
=
nsect
=
0
;
ff.c:4089
f_lseek()
fp
->
fptr
=
(
ifptr
-
1
)
&
~
(
FSIZE_t
)
(
bcs
-
1
)
;
/* start from the current cluster */
ff.c:4090
f_lseek()
ofs
-=
fp
->
fptr
;
ff.c:4106
f_lseek()
ofs
-=
bcs
;
fp
->
fptr
+=
bcs
;
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:4126
f_lseek()
fp
->
fptr
+=
ofs
;
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:4138
f_lseek()
if
(
fp
->
fptr
%
SS
(
fs
)
&&
nsect
!=
fp
->
sect
)
{
/* Fill sector cache if needed */
ff.c:4488
f_truncate()
if
(
fp
->
fptr
<
fp
->
obj
.
objsize
)
{
/* Process when fptr is not on the eof */
ff.c:4489
f_truncate()
if
(
fp
->
fptr
==
0
)
{
/* When set file size to zero, remove entire cluster chain */
ff.c:4501
f_truncate()
fp
->
obj
.
objsize
=
fp
->
fptr
;
/* Set file size to current R/W point */
Data Use
Functions writing
FIL::fptr
Functions reading
FIL::fptr
f_open()
f_read()
f_write()
f_lseek()
all items filtered out
FIL::fptr
f_read()
f_write()
f_lseek()
f_truncate()
all items filtered out
Type of
FIL::fptr
FIL::fptr
FSIZE_t
all items filtered out