FatFS
FIL
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FIL
FIL struct
Syntax
Show:
Summary
Declaration
from
ff.h:207
typedef
struct
{
FFOBJID
obj
;
BYTE
flag
;
BYTE
err
;
FSIZE_t
fptr
;
DWORD
clust
;
LBA_t
sect
;
#if
!
FF_FS_READONLY
LBA_t
dir_sect
;
BYTE
*
dir_ptr
;
#endif
#if
FF_USE_FASTSEEK
DWORD
*
cltbl
;
#endif
#if
!
FF_FS_TINY
#if
FF_USE_DYN_BUFFER
BYTE
*
buf
;
#else
BYTE
buf
[
FF_MAX_SS
]
;
#endif
#endif
}
FIL
;
Fields
Field
Declared as
FIL::obj
FFOBJID
FIL::flag
BYTE
FIL::err
BYTE
FIL::fptr
FSIZE_t
FIL::clust
DWORD
FIL::sect
LBA_t
FIL::dir_sect
LBA_t
FIL::dir_ptr
BYTE
*
FIL::buf
BYTE
[
FF_MAX_SS
]
Related Functions
Found 15 other functions taking a
FIL
argument:
Function
f_lseek()
f_close()
f_open()
f_write()
f_read()
f_truncate()
f_sync()
f_expand()
f_write_zero_mem()
test_contiguous_file()
f_forward()
f_putc()
f_puts()
f_printf()
f_gets()
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
{
ff.h:207
}
FIL
;
ff.h:228
FIL
*
fp
,
/* Pointer to the blank file object */
ff.c:3731
f_open()
f_open()::fp
FIL
*
fp
,
/* Open file to be read */
ff.c:3952
f_read()
f_read()::fp
FIL
*
fp
,
/* Open file to be written */
ff.c:4052
f_write()
f_write()::fp
FIL
*
fp
/* Open file to be synced */
ff.c:4173
f_sync()
f_sync()::fp
FIL
*
fp
/* Open file to be closed */
ff.c:4254
f_close()
f_close()::fp
FIL
*
fp
,
/* Pointer to the file object */
ff.c:4475
f_lseek()
f_lseek()::fp
FIL
*
fp
/* Pointer to the file object */
ff.c:4954
f_truncate()
f_truncate()::fp
FIL
*
fp
,
/* Pointer to the file object */
ff.c:5607
f_expand()
f_expand()::fp
}
FIL
;
ff.h:228
FIL
FRESULT
f_open
(
FIL
*
fp
,
const
TCHAR
*
path
,
BYTE
mode
)
;
/* Open or create a file */
ff.h:312
f_open()
f_open()::fp
FRESULT
f_close
(
FIL
*
fp
)
;
/* Close an open file object */
ff.h:313
f_close()
f_close()::fp
FRESULT
f_read
(
FIL
*
fp
,
void
*
buff
,
UINT
btr
,
UINT
*
br
)
;
/* Read data from the file */
ff.h:314
f_read()
f_read()::fp
FRESULT
f_write
(
FIL
*
fp
,
const
void
*
buff
,
UINT
btw
,
UINT
*
bw
)
;
/* Write data to the file */
ff.h:315
f_write()
f_write()::fp
FRESULT
f_lseek
(
FIL
*
fp
,
FSIZE_t
ofs
)
;
/* Move file pointer of the file object */
ff.h:316
f_lseek()
f_lseek()::fp
FRESULT
f_truncate
(
FIL
*
fp
)
;
/* Truncate the file */
ff.h:317
f_truncate()
f_truncate()::fp
FRESULT
f_sync
(
FIL
*
fp
)
;
/* Flush cached data of the writing file */
ff.h:318
f_sync()
f_sync()::fp
FRESULT
f_forward
(
FIL
*
fp
,
UINT
(
*
func
)
(
const
BYTE
*
,
UINT
)
,
UINT
btf
,
UINT
*
bf
)
;
/* Forward data to the stream */
ff.h:336
f_forward()
f_forward()::fp
FRESULT
f_expand
(
FIL
*
fp
,
FSIZE_t
fsz
,
BYTE
opt
)
;
/* Allocate a contiguous block to the file */
ff.h:337
f_expand()
f_expand()::fp
int
f_putc
(
TCHAR
c
,
FIL
*
fp
)
;
/* Put a character to the file */
ff.h:342
f_putc()
f_putc()::fp
int
f_puts
(
const
TCHAR
*
str
,
FIL
*
cp
)
;
/* Put a string to the file */
ff.h:343
f_puts()
f_puts()::cp
int
f_printf
(
FIL
*
fp
,
const
TCHAR
*
str
,
...
)
;
/* Put a formatted string to the file */
ff.h:344
f_printf()
f_printf()::fp
TCHAR
*
f_gets
(
TCHAR
*
buff
,
int
len
,
FIL
*
fp
)
;
/* Get a string from the file */
ff.h:345
f_gets()
f_gets()::fp
FIL
files
[
0
]
;
/* array with max_files entries; must be the final member of the structure */
vfs_fat.c:47
::files
size_t
ctx_size
=
sizeof
(
vfs_fat_ctx_t
)
+
max_files
*
sizeof
(
FIL
)
;
vfs_fat.c:198
esp_vfs_fat_register_cfg()
memset
(
&
ctx
->
files
[
fd
]
,
0
,
sizeof
(
FIL
)
)
;
vfs_fat.c:348
file_cleanup()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:440
vfs_fat_write()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:485
vfs_fat_read()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:503
vfs_fat_pread()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:543
vfs_fat_pwrite()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:597
vfs_fat_fsync()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:612
vfs_fat_close()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:634
vfs_fat_lseek()
FIL
*
file
=
&
fat_ctx
->
files
[
fd
]
;
vfs_fat.c:666
vfs_fat_fstat()
FIL
*
pf1
=
(
FIL
*
)
ff_memalloc
(
sizeof
(
FIL
)
)
;
vfs_fat.c:792
vfs_fat_link()
FIL
*
pf2
=
(
FIL
*
)
ff_memalloc
(
sizeof
(
FIL
)
)
;
vfs_fat.c:793
vfs_fat_link()
free
(
pf2
)
;
vfs_fat.c:858
vfs_fat_link()
free
(
pf1
)
;
vfs_fat.c:859
vfs_fat_link()
static
FRESULT
f_write_zero_mem
(
FIL
*
fp
,
FSIZE_t
data_size
,
FSIZE_t
buf_size
,
UINT
*
bytes_written
)
vfs_fat.c:1080
f_write_zero_mem()
f_write_zero_mem()::fp
FIL
*
file
=
NULL
;
vfs_fat.c:1126
vfs_fat_truncate()
file
=
(
FIL
*
)
ff_memalloc
(
sizeof
(
FIL
)
)
;
vfs_fat.c:1141
vfs_fat_truncate()
free
(
file
)
;
vfs_fat.c:1235
vfs_fat_truncate()
FIL
*
file
=
NULL
;
vfs_fat.c:1249
vfs_fat_ftruncate()
FIL
*
file
=
(
FIL
*
)
ff_memalloc
(
sizeof
(
FIL
)
)
;
vfs_fat.c:1406
esp_vfs_fat_create_contiguous_file()
free
(
file
)
;
vfs_fat.c:1432
esp_vfs_fat_create_contiguous_file()
free
(
file
)
;
vfs_fat.c:1437
esp_vfs_fat_create_contiguous_file()
FIL
*
fp
,
/* [IN] Open file object to be checked */
vfs_fat.c:1444
test_contiguous_file()
test_contiguous_file()::fp
FIL
*
file
=
(
FIL
*
)
ff_memalloc
(
sizeof
(
FIL
)
)
;
vfs_fat.c:1492
esp_vfs_fat_test_contiguous_file()
free
(
file
)
;
vfs_fat.c:1518
esp_vfs_fat_test_contiguous_file()
free
(
file
)
;
vfs_fat.c:1523
esp_vfs_fat_test_contiguous_file()
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
Instance
Scope
Location
Project
f_open()::fp
f_open()
ff.h:312
f_close()::fp
f_close()
ff.h:313
f_read()::fp
f_read()
ff.h:314
f_write()::fp
f_write()
ff.h:315
f_lseek()::fp
f_lseek()
ff.h:316
f_truncate()::fp
f_truncate()
ff.h:317
f_sync()::fp
f_sync()
ff.h:318
f_forward()::fp
f_forward()
ff.h:336
f_expand()::fp
f_expand()
ff.h:337
f_putc()::fp
f_putc()
ff.h:342
f_puts()::cp
f_puts()
ff.h:343
f_printf()::fp
f_printf()
ff.h:344
f_gets()::fp
f_gets()
ff.h:345
f_open()::fp
f_open()
ff.c:3731
f_read()::fp
f_read()
ff.c:3952
f_write()::fp
f_write()
ff.c:4052
f_sync()::fp
f_sync()
ff.c:4173
f_close()::fp
f_close()
ff.c:4254
f_lseek()::fp
f_lseek()
ff.c:4475
f_truncate()::fp
f_truncate()
ff.c:4954
f_expand()::fp
f_expand()
ff.c:5607
::files
vfs_fat.c:47
f_write_zero_mem()::fp
f_write_zero_mem()
vfs_fat.c:1080
test_contiguous_file()::fp
test_contiguous_file()
vfs_fat.c:1444
Lifecycle
from
examples
FIL
is freed by 4 symbols:
All items filtered out
FIL
vfs_fat_link()
vfs_fat_truncate()
esp_vfs_fat_create_contiguous_file()
esp_vfs_fat_test_contiguous_file()
All items filtered out