FSFILE Structure

MDD File System Interface Library

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_8P3];
  BOOL AsciiEncodingType;
  unsigned short int * utf16LFNptr;
  unsigned short int utf16LFNlength;
  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_8P3]; 
The short name of the file 
BOOL AsciiEncodingType; 
Ascii file name or Non-Ascii file name indicator 
unsigned short int * utf16LFNptr; 
Pointer to long file name in UTF16 format 
unsigned short int utf16LFNlength; 
LFN length in terms of words excluding the NULL word at the last. 
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.4.2 - [Oct 15, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.