PHATFILE Struct Reference
[PHAT File System]

PHAT file descriptor structure. More...

Collaboration diagram for PHATFILE:

Collaboration graph
[legend]

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

uint32_t PHATFILE::f_pos

Current position into the file.

Definition at line 90 of file phatfs.h.

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

uint32_t PHATFILE::f_clust

Current cluster.

Definition at line 92 of file phatfs.h.

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

uint32_t PHATFILE::f_clust_pos

Sector within the current cluster.

Definition at line 94 of file phatfs.h.

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

uint32_t PHATFILE::f_sect_pos

Position within the sector.

Definition at line 96 of file phatfs.h.

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

uint32_t PHATFILE::f_clust_prv

Previous cluster used,.

Definition at line 98 of file phatfs.h.

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

uint32_t PHATFILE::f_mode

File open mode flags.

Definition at line 100 of file phatfs.h.

Referenced by PhatDirOpen(), and PhatFileOpen().

PHATDIRENT PHATFILE::f_dirent

Directory entry of this file.

Definition at line 102 of file phatfs.h.

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

uint32_t PHATFILE::f_de_sect

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().

uint32_t PHATFILE::f_de_offs

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().

uint16_t PHATFILE::f_pde_clust

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().

uint16_t PHATFILE::f_pde_clusthi

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:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/