FatFS
ld_word()
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (3/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
ld_word()
ld_word() function
Syntax
Show:
Summary
Declaration
from
ff.c:622
static
WORD
ld_word
(
const
BYTE
*
ptr
)
;
Arguments
Argument
ptr
Examples
References
from
examples
Code
Location
Referrer
static
WORD
ld_word
(
const
BYTE
*
ptr
)
/* Load a 2-byte little-endian word */
ff.c:622
val
=
ld_word
(
fs
->
win
+
clst
*
2
%
SS
(
fs
)
)
;
/* Simple WORD array */
ff.c:1194
get_fat()
cl
=
ld_word
(
dir
+
DIR_FstClusLO
)
;
ff.c:1860
ld_clust()
cl
|=
(
DWORD
)
ld_word
(
dir
+
DIR_FstClusHI
)
<
<
16
;
ff.c:1862
ld_clust()
if
(
ld_word
(
dir
+
LDIR_FstClusLO
)
!=
0
)
return
0
;
/* Check LDIR_FstClusLO */
ff.c:1899
cmp_lfn()
uc
=
ld_word
(
dir
+
LfnOfs
[
s
]
)
;
/* Pick an LFN character */
ff.c:1904
cmp_lfn()
if
(
ld_word
(
dir
+
LDIR_FstClusLO
)
!=
0
)
return
0
;
/* Check LDIR_FstClusLO is 0 */
ff.c:1935
pick_lfn()
uc
=
ld_word
(
dir
+
LfnOfs
[
s
]
)
;
/* Pick an LFN character */
ff.c:1940
pick_lfn()
fno
->
ftime
=
ld_word
(
dp
->
dir
+
DIR_ModTime
+
0
)
;
/* Time */
ff.c:2751
get_fileinfo()
fno
->
fdate
=
ld_word
(
dp
->
dir
+
DIR_ModTime
+
2
)
;
/* Date */
ff.c:2752
get_fileinfo()
sign
=
ld_word
(
fs
->
win
+
BS_55AA
)
;
ff.c:3307
check_fs()
w
=
ld_word
(
fs
->
win
+
BPB_BytsPerSec
)
;
ff.c:3317
check_fs()
&&
ld_word
(
fs
->
win
+
BPB_RsvdSecCnt
)
!=
0
/* Properness of reserved sectors (MNBZ) */
ff.c:3321
check_fs()
&&
ld_word
(
fs
->
win
+
BPB_RootEntCnt
)
!=
0
/* Properness of root dir entries (MNBZ) */
ff.c:3323
check_fs()
&&
(
ld_word
(
fs
->
win
+
BPB_TotSec16
)
>=
MIN_FAT12_SEC_VOL
||
ld_dword
(
fs
->
win
+
BPB_TotSec32
)
>=
0x10000
)
/* Properness of volume sectors (>=MIN_FAT12_SEC_VOL) */
ff.c:3324
check_fs()
&&
ld_word
(
fs
->
win
+
BPB_FATSz16
)
!=
0
)
{
/* Properness of FAT size (MNBZ) */
ff.c:3325
check_fs()
if
(
ld_word
(
fs
->
win
+
BPB_BytsPerSec
)
!=
SS
(
fs
)
)
return
FR_NO_FILESYSTEM
;
/* (BPB_BytsPerSec must be equal to the physical sector size) */
ff.c:3521
mount_volume()
fasize
=
ld_word
(
fs
->
win
+
BPB_FATSz16
)
;
/* Number of sectors per FAT */
ff.c:3523
mount_volume()
fs
->
n_rootdir
=
ld_word
(
fs
->
win
+
BPB_RootEntCnt
)
;
/* Number of root directory entries */
ff.c:3534
mount_volume()
tsect
=
ld_word
(
fs
->
win
+
BPB_TotSec16
)
;
/* Number of sectors on the volume */
ff.c:3537
mount_volume()
nrsv
=
ld_word
(
fs
->
win
+
BPB_RsvdSecCnt
)
;
/* Number of reserved sectors */
ff.c:3540
mount_volume()
if
(
ld_word
(
fs
->
win
+
BPB_FSVer32
)
!=
0
)
return
FR_NO_FILESYSTEM
;
/* (Must be FAT32 revision 0.0) */
ff.c:3560
mount_volume()
&&
ld_word
(
fs
->
win
+
BPB_FSInfo32
)
==
1
ff.c:3578
mount_volume()
if
(
ld_word
(
fs
->
win
+
BS_55AA
)
==
0xAA55
/* Load FSInfo data if available */
ff.c:3582
mount_volume()
if
(
ld_word
(
fs
->
win
+
i
)
==
0
)
nfree
++
;
ff.c:4925
f_getfree()
if
(
ld_word
(
buf
+
BS_55AA
)
!=
0xAA55
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if MBR is valid */
ff.c:5992
f_mkfs()
Call Tree
from
examples
ld_word()
is called by 9 functions:
get_fat()
ld_clust()
cmp_lfn()
pick_lfn()
get_fileinfo()
check_fs()
mount_volume()
f_getfree()
f_mkfs()
All items filtered out
ld_word()
All items filtered out
Data Use
from
examples
ld_word()
:
All items filtered out
ld_word()
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