Nut/OS  4.10.3
API Reference
_PHATFILE Struct Reference

PHAT file descriptor structure. More...

#include <phatfs.h>

Collaboration diagram for _PHATFILE:

Data Fields

uint32_t f_pos
 Current position into the file.
uint32_t f_clust
 Current cluster.
uint32_t f_clust_pos
 Sector within the current cluster.
uint32_t f_sect_pos
 Position within the sector.
uint32_t f_clust_prv
 Previous cluster used,.
uint32_t f_mode
 File open mode flags.
PHATDIRENT f_dirent
 Directory entry of this file.
uint32_t f_de_sect
 Sector of the directory entry.
uint32_t f_de_offs
 Offset into the sector containing the directory entry.
unsigned int f_de_dirty
 Directory entry change marker.
uint16_t f_pde_clust
 First cluster of the parent directory, low word.
uint16_t f_pde_clusthi
 First cluster of the parent directory, high word.

Detailed Description

PHAT file descriptor structure.

Definition at line 88 of file phatfs.h.


Field Documentation

Current position into the file.

Definition at line 90 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

Sector within the current cluster.

Definition at line 94 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), PhatFileOpen(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

Previous cluster used,.

Definition at line 98 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

File open mode flags.

Definition at line 100 of file phatfs.h.

Referenced by PhatDirOpen(), and PhatFileOpen().

Sector of the directory entry.

For the root directory this value is zero, because the root doesn't have any entry in another directory.

Definition at line 108 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), and PhatFileOpen().

Offset into the sector containing the directory entry.

Definition at line 110 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirOpen(), and PhatFileOpen().

unsigned int _PHATFILE::f_de_dirty

Directory entry change marker.

Definition at line 112 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatFileOpen(), and PhatFileWrite().

First cluster of the parent directory, low word.

Our directory entry is located in this cluster.

Definition at line 117 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), and PhatFileOpen().

First cluster of the parent directory, high word.

Definition at line 119 of file phatfs.h.

Referenced by PhatDbgFileInfo(), PhatDirCreate(), PhatDirOpen(), and PhatFileOpen().


The documentation for this struct was generated from the following file: