FatFS
FIL::buf
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FIL::buf
FIL::buf field
Syntax
Show:
Summary
Declaration
from
ff.h:225
BYTE
buf
[
FF_MAX_SS
]
;
Examples
References
from
examples
Code
Location
Referrer
BYTE
buf
[
FF_MAX_SS
]
;
/* File private data read/write window */
ff.h:225
memset
(
fp
->
buf
,
0
,
SS
(
fs
)
)
;
/* Clear sector buffer */
ff.c:3893
f_open()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:3913
f_open()
memcpy
(
rbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
fp
->
buf
,
SS
(
fs
)
)
;
ff.c:4010
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()
memcpy
(
rbuff
,
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
rcnt
)
;
/* Extract partial sector */
ff.c:4036
f_read()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4105
f_write()
memcpy
(
fp
->
buf
,
wbuff
+
(
(
fp
->
sect
-
sect
)
*
SS
(
fs
)
)
,
SS
(
fs
)
)
;
ff.c:4126
f_write()
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
sect
,
1
)
!=
RES_OK
)
{
ff.c:4142
f_write()
memcpy
(
fp
->
buf
+
fp
->
fptr
%
SS
(
fs
)
,
wbuff
,
wcnt
)
;
/* Fit data to the sector */
ff.c:4155
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
(
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
(
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::buf
is read by 6 functions:
All items filtered out
FIL::buf
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