FatFS
disk_write
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
disk_write
disk_write macro
Syntax
Show:
Summary
Declaration
from
ffconf.h:366
#define
disk_write
ff_disk_write
Examples
References
from
examples
Code
Location
#define
disk_write
ff_disk_write
ffconf.h:366
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
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
disk_write
(
fs
->
pdrv
,
fs
->
win
,
fs
->
winsect
,
1
)
;
ff.c:1131
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
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
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4021
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4105
if
(
disk_write
(
fs
->
pdrv
,
wbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4117
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
LEAVE_FF
(
fs
,
FR_DISK_ERR
)
;
ff.c:4187
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4618
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
{
ff.c:4983
if
(
disk_write
(
drv
,
buf
,
0
,
1
)
!=
RES_OK
)
return
FR_DISK_ERR
;
/* Write it to the MBR */
ff.c:5915
if
(
disk_write
(
pdrv
,
buf
,
b_vol
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it to the VBR sector */
ff.c:6343
disk_write
(
pdrv
,
buf
,
b_vol
+
6
,
1
)
;
/* Write backup VBR (VBR + 6) */
ff.c:6347
disk_write
(
pdrv
,
buf
,
b_vol
+
7
,
1
)
;
/* Write backup FSINFO (VBR + 7) */
ff.c:6354
disk_write
(
pdrv
,
buf
,
b_vol
+
1
,
1
)
;
/* Write original FSINFO (VBR + 1) */
ff.c:6355
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6372
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6382
if
(
disk_write
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it back to the MBR */
ff.c:6408
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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