FatFS
ff_disk_write()
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
ff_disk_write()
ff_disk_write() function
Syntax
Show:
Summary
Declaration
Definition
from
diskio.h:34
DRESULT
disk_write
(
BYTE
pdrv
,
const
BYTE
*
buff
,
LBA_t
sector
,
UINT
count
)
;
Implemented in
diskio.c:98
Arguments
Argument
pdrv
buff
sector
count
Examples
References
from
examples
Code
Location
Referrer
DRESULT
ff_disk_write
(
BYTE
pdrv
,
const
BYTE
*
buff
,
LBA_t
sector
,
UINT
count
)
diskio.c:98
DRESULT
disk_write
(
BYTE
pdrv
,
const
BYTE
*
buff
,
LBA_t
sector
,
UINT
count
)
;
diskio.h:34
if
(
disk_write
(
fs
->
pdrv
,
fs
->
win
,
fs
->
winsect
,
1
)
==
RES_OK
)
{
/* Write it back into the volume */
ff.c:1068
sync_window()
if
(
fs
->
n_fats
==
2
)
disk_write
(
fs
->
pdrv
,
fs
->
win
,
fs
->
winsect
+
fs
->
fsize
,
1
)
;
/* Reflect it to 2nd FAT if needed */
ff.c:1071
sync_window()
disk_write
(
fs
->
pdrv
,
fs
->
win
,
fs
->
winsect
,
1
)
;
ff.c:1131
sync_fs()
for
(
n
=
0
;
n
<
fs
->
csize
&&
disk_write
(
fs
->
pdrv
,
ibuf
,
sect
+
n
,
szb
)
==
RES_OK
;
n
+=
szb
)
;
/* Fill the cluster with 0 */
ff.c:1683
dir_clear()
for
(
n
=
0
;
n
<
fs
->
csize
&&
disk_write
(
fs
->
pdrv
,
ibuf
,
sect
+
n
,
szb
)
==
RES_OK
;
n
+=
szb
)
;
/* Fill the cluster with 0 */
ff.c:1689
dir_clear()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4021
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
(
disk_write
(
fs
->
pdrv
,
wbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4117
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_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
{
ff.c:4983
f_truncate()
if
(
disk_write
(
drv
,
buf
,
0
,
1
)
!=
RES_OK
)
return
FR_DISK_ERR
;
/* Write it to the MBR */
ff.c:5915
create_partition()
if
(
disk_write
(
pdrv
,
buf
,
b_vol
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it to the VBR sector */
ff.c:6343
f_mkfs()
disk_write
(
pdrv
,
buf
,
b_vol
+
6
,
1
)
;
/* Write backup VBR (VBR + 6) */
ff.c:6347
f_mkfs()
disk_write
(
pdrv
,
buf
,
b_vol
+
7
,
1
)
;
/* Write backup FSINFO (VBR + 7) */
ff.c:6354
f_mkfs()
disk_write
(
pdrv
,
buf
,
b_vol
+
1
,
1
)
;
/* Write original FSINFO (VBR + 1) */
ff.c:6355
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6372
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6382
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it back to the MBR */
ff.c:6408
f_mkfs()
Call Tree
from
examples
ff_disk_write()
is called by 10 functions and calls 1 function:
sync_window()
sync_fs()
dir_clear()
f_read()
f_write()
f_sync()
f_lseek()
f_truncate()
create_partition()
f_mkfs()
All items filtered out
ff_disk_write()
ff_diskio_impl_t::write
All items filtered out
Data Use
from
examples
ff_disk_write()
reads 1 variable:
s_impls
All items filtered out
ff_disk_write()
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