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

FIL::fptr field

Syntax

FSIZE_t fptr;

Examples

FIL::fptr is referenced by 13 libraries and example projects.

References

LocationReferrerText
ff.h:159
FSIZE_t fptr; /* File read/write pointer (Zeroed on file open) */
ff.c:3467f_open()
fp->fptr = 0; /* Set file pointer top of the file */
ff.c:3473f_open()
fp->fptr = fp->obj.objsize; /* Offset to seek */
ff.c:3530f_read()
remain = fp->obj.objsize - fp->fptr;
ff.c:3534f_read()
rbuff += rcnt, fp->fptr += rcnt, *br += rcnt, btr -= rcnt) {
ff.c:3535f_read()
if (fp->fptr % SS(fs) == 0) { /* On the sector boundary? */
ff.c:3536f_read()
csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */
ff.c:3538f_read()
if (fp->fptr == 0) { /* On the top of the file? */
ff.c:3543f_read()
clst = clmt_clust(fp, fp->fptr); /* Get cluster# from the CLMT */
ff.c:3590f_read()
rcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */
ff.c:3596f_read()
mem_cpy(rbuff, fp->buf + fp->fptr % SS(fs), rcnt); /* Extract partial sector */
ff.c:3631f_write()
if ((!_FS_EXFAT || fs->fs_type != FS_EXFAT) && (DWORD)(fp->fptr + btw) < (DWORD)fp->fptr) {
ff.c:3632f_write()
btw = (UINT)(0xFFFFFFFF - (DWORD)fp->fptr);
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:3637f_write()
if (fp->fptr % SS(fs) == 0) { /* On the sector boundary? */
ff.c:3638f_write()
csect = (UINT)(fp->fptr / SS(fs)) & (fs->csize - 1); /* Sector offset in the cluster */
ff.c:3640f_write()
if (fp->fptr == 0) { /* On the top of the file? */
ff.c:3648f_write()
clst = clmt_clust(fp, fp->fptr); /* Get cluster# from the CLMT */
ff.c:3701f_write()
fp->fptr < fp->obj.objsize &&
ff.c:3708f_write()
wcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */
ff.c:3715f_write()
mem_cpy(fp->buf + fp->fptr % SS(fs), wbuff, wcnt); /* Fit data to the sector */
ff.c:4052f_lseek()
fp->fptr = ofs; /* Set file pointer */
ff.c:4058f_lseek()
if (fp->fptr % SS(fs) && dsc != fp->sect) { /* Refill sector cache if needed */
ff.c:4083f_lseek()
ifptr = fp->fptr;
ff.c:4084f_lseek()
fp->fptr = nsect = 0;
ff.c:4089f_lseek()
fp->fptr = (ifptr - 1) & ~(FSIZE_t)(bcs - 1); /* start from the current cluster */
ff.c:4090f_lseek()
ofs -= fp->fptr;
ff.c:4106f_lseek()
ofs -= bcs; fp->fptr += bcs;
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:4126f_lseek()
fp->fptr += ofs;
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:4138f_lseek()
if (fp->fptr % SS(fs) && nsect != fp->sect) { /* Fill sector cache if needed */
ff.c:4488f_truncate()
if (fp->fptr < fp->obj.objsize) { /* Process when fptr is not on the eof */
ff.c:4489f_truncate()
if (fp->fptr == 0) { /* When set file size to zero, remove entire cluster chain */
ff.c:4501f_truncate()
fp->obj.objsize = fp->fptr; /* Set file size to current R/W point */

Data Use

Functions writing FIL::fptr
Functions reading FIL::fptr
FIL::fptr
Type of FIL::fptr
FIL::fptr
all items filtered out