FatFs + 0/17 examples
CodeScope will show references to FIL::obj from the following samples and libraries:
Examples
STM32F413ZH-Nucleo
STM32F429ZI-Nucleo
STM32446E_EVAL
Demonstrations
Applications
USB_Host
STM32469I-Discovery
Demonstrations
Applications
USB_Host
STM32469I_EVAL
Demonstrations
STM324xG_EVAL
Demonstrations
Applications
USB_Host
STM32F412G-Discovery
Demonstrations
STM32F413H-Discovery
Demonstrations
STM324x9I_EVAL
Applications
USB_Host
Demonstrations
STemWin
STM32F429I-Discovery
Applications
USB_Host
 
Symbols
loading...
Files
loading...

FIL::obj field

Syntax

_FDID obj;

Examples

FIL::obj is referenced by 17 libraries and example projects.

References

LocationReferrerText
ff.h:156
_FDID obj; /* Object identifier (must be the 1st member to detect invalid object pointer) */
ff.c:1446clmt_clust()
FATFS *fs = fp->obj.fs;
ff.c:3428f_open()
fp->obj.lockid = inc_lock(&dj, (mode & ~FA_READ) ? 1 : 0);
ff.c:3429f_open()
if (!fp->obj.lockid) res = FR_INT_ERR;
ff.c:3456f_open()
fp->obj.sclust = ld_clust(fs, dj.dir); /* Get object allocation info */
ff.c:3457f_open()
ff.c:3462f_open()
fp->obj.fs = fs; /* Validate the file object */
ff.c:3463f_open()
fp->obj.id = fs->id;
ff.c:3472f_open()
if ((mode & FA_SEEKEND) && fp->obj.objsize > 0) { /* Seek to end of file if FA_OPEN_APPEND is specified */
ff.c:3473f_open()
fp->fptr = fp->obj.objsize; /* Offset to seek */
ff.c:3475f_open()
clst = fp->obj.sclust; /* Follow the cluster chain */
ff.c:3476f_open()
for (ofs = fp->obj.objsize; res == FR_OK && ofs > bcs; ofs -= bcs) {
ff.c:3477f_open()
clst = get_fat(&fp->obj, clst);
ff.c:3499f_open()
if (res != FR_OK) fp->obj.fs = 0; /* Invalidate file object on error */
ff.c:3527f_read()
res = validate(&fp->obj, &fs); /* Check validity of the file object */
ff.c:3530f_read()
remain = fp->obj.objsize - fp->fptr;
ff.c:3539f_read()
clst = fp->obj.sclust; /* Follow cluster chain from the origin */
ff.c:3547f_read()
clst = get_fat(&fp->obj, fp->clust); /* Follow cluster chain on the FAT */
ff.c:3626f_write()
res = validate(&fp->obj, &fs); /* Check validity of the file object */
ff.c:3636f_write()
wbuff += wcnt, fp->fptr += wcnt, fp->obj.objsize = (fp->fptr > fp->obj.objsize) ? fp->fptr : fp->obj.objsize, *bw += wcnt, btw -= wcnt) {
ff.c:3641f_write()
clst = fp->obj.sclust; /* Follow from the origin */
ff.c:3643f_write()
clst = create_chain(&fp->obj, 0); /* create a new cluster chain */
ff.c:3652f_write()
clst = create_chain(&fp->obj, fp->clust); /* Follow or stretch cluster chain on the FAT */
ff.c:3659f_write()
if (fp->obj.sclust == 0) fp->obj.sclust = clst; /* Set start cluster if the first write */
ff.c:3701f_write()
fp->fptr < fp->obj.objsize &&
ff.c:3745f_sync()
res = validate(&fp->obj, &fs); /* Check validity of the file object */
ff.c:3789f_sync()
st_clust(fp->obj.fs, dir, fp->obj.sclust); /* Update file allocation info */
ff.c:3790f_sync()
st_dword(dir + DIR_FileSize, (DWORD)fp->obj.objsize); /* Update file size */
ff.c:3825f_close()
res = validate(&fp->obj, &fs); /* Lock volume */
ff.c:3828f_close()
res = dec_lock(fp->obj.lockid); /* Decrement file open counter */
ff.c:3832f_close()
fp->obj.fs = 0; /* Invalidate file object */
ff.c:4014f_lseek()
res = validate(&fp->obj, &fs); /* Check validity of the file object */
ff.c:4028f_lseek()
cl = fp->obj.sclust; /* Origin of the chain */
ff.c:4035f_lseek()
cl = get_fat(&fp->obj, cl);
ff.c:4051f_lseek()
if (ofs > fp->obj.objsize) ofs = fp->obj.objsize; /* Clip offset at the file size */
ff.c:4080f_lseek()
if (ofs > fp->obj.objsize && (_FS_READONLY || !(fp->flag & FA_WRITE))) { /* In read-only mode, clip offset with the file size */
ff.c:4081f_lseek()
ofs = fp->obj.objsize;
ff.c:4093f_lseek()
clst = fp->obj.sclust; /* start from the first cluster */
ff.c:4096f_lseek()
clst = create_chain(&fp->obj, 0);
ff.c:4099f_lseek()
fp->obj.sclust = clst;
ff.c:4109f_lseek()
if (_FS_EXFAT && fp->fptr > fp->obj.objsize) { /* No FAT chain object needs correct objsize to generate FAT value */
ff.c:4110f_lseek()
fp->obj.objsize = fp->fptr;
ff.c:4113f_lseek()
clst = create_chain(&fp->obj, clst); /* Follow chain with forceed stretch */
ff.c:4120f_lseek()
clst = get_fat(&fp->obj, clst); /* Follow cluster chain if not in write mode */
ff.c:4134f_lseek()
if (!_FS_READONLY && fp->fptr > fp->obj.objsize) { /* Set file change flag if the file size is extended */
ff.c:4135f_lseek()
fp->obj.objsize = fp->fptr;
ff.c:4484f_truncate()
res = validate(&fp->obj, &fs); /* Check validity of the file object */
ff.c:4488f_truncate()
if (fp->fptr < fp->obj.objsize) { /* Process when fptr is not on the eof */
ff.c:4490f_truncate()
res = remove_chain(&fp->obj, fp->obj.sclust, 0);
ff.c:4491f_truncate()
fp->obj.sclust = 0;
ff.c:4493f_truncate()
ncl = get_fat(&fp->obj, fp->clust);
ff.c:4498f_truncate()
res = remove_chain(&fp->obj, ncl, fp->clust);
ff.c:4501f_truncate()
fp->obj.objsize = fp->fptr; /* Set file size to current R/W point */

Data Use

Functions reading FIL::obj
FIL::obj
Type of FIL::obj
FIL::obj
all items filtered out