FSFILE Structure

Microchip MDD File System Interface

MDDFS Interface Library Help
FSFILE Structure
C
typedef struct {
  DISK * dsk;
  DWORD cluster;
  DWORD ccls;
  WORD sec;
  WORD pos;
  DWORD seek;
  DWORD size;
  FILEFLAGS flags;
  WORD time;
  WORD date;
  char name[FILE_NAME_SIZE];
  WORD entry;
  WORD chk;
  WORD attributes;
  DWORD dirclus;
  DWORD dirccls;
} FSFILE;
Description

The FSFILE structure is used to hold file information for an open file as it's being modified or accessed. A pointer to an open file's FSFILE structure will be passeed to any library function that will modify that file.

Members
Members 
Description 
DISK * dsk; 
Pointer to a DISK structure 
DWORD cluster; 
The first cluster of the file 
DWORD ccls; 
The current cluster of the file 
WORD sec; 
The current sector in the current cluster of the file 
WORD pos; 
The position in the current sector 
DWORD seek; 
The absolute position in the file 
DWORD size; 
The size of the file 
FILEFLAGS flags; 
A structure containing file flags 
WORD time; 
The file's last update time 
WORD date; 
The file's last update date 
char name[FILE_NAME_SIZE]; 
The name of the file 
WORD entry; 
The position of the file's directory entry in it's directory 
WORD chk; 
File structure checksum 
WORD attributes; 
The file attributes 
DWORD dirclus; 
The base cluster of the file's directory 
DWORD dirccls; 
The current cluster of the file's directory 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.