FatFS
FATFS::pdrv
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
FATFS::pdrv
FATFS::pdrv field
Syntax
Show:
Summary
Declaration
from
ff.h:134
BYTE
pdrv
;
Examples
References
from
examples
Code
Location
Referrer
BYTE
pdrv
;
/* Volume hosting physical drive */
ff.h:134
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()
if
(
disk_read
(
fs
->
pdrv
,
fs
->
win
,
sect
,
1
)
!=
RES_OK
)
{
ff.c:1095
move_window()
disk_write
(
fs
->
pdrv
,
fs
->
win
,
fs
->
winsect
,
1
)
;
ff.c:1131
sync_fs()
if
(
disk_ioctl
(
fs
->
pdrv
,
CTRL_SYNC
,
0
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:1135
sync_fs()
disk_ioctl
(
fs
->
pdrv
,
CTRL_TRIM
,
rt
)
;
/* Inform storage device that the data in the block may be erased */
ff.c:1485
remove_chain()
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()
stat
=
disk_status
(
fs
->
pdrv
)
;
ff.c:3420
mount_volume()
stat
=
disk_initialize
(
fs
->
pdrv
)
;
/* Initialize the volume hosting physical drive */
ff.c:3433
mount_volume()
if
(
disk_ioctl
(
fs
->
pdrv
,
GET_SECTOR_SIZE
,
&
SS
(
fs
)
)
!=
RES_OK
)
return
FR_DISK_ERR
;
ff.c:3441
mount_volume()
if
(
!
(
disk_status
(
obj
->
fs
->
pdrv
)
&
STA_NOINIT
)
)
{
/* Test if the hosting phsical drive is kept initialized */
ff.c:3633
validate()
fs
->
pdrv
=
LD2PD
(
vol
)
;
/* Volume hosting physical drive */
ff.c:3699
f_mount()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:3913
f_open()
if
(
disk_read
(
fs
->
pdrv
,
rbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4002
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()
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()
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
sect
,
1
)
!=
RES_OK
)
{
ff.c:4142
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
FATFS::pdrv
is written by 1 function and is read by 13 functions:
f_mount()
All items filtered out
FATFS::pdrv
sync_window()
move_window()
sync_fs()
remove_chain()
dir_clear()
mount_volume()
validate()
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