DISK Structure

Microchip MDD File System Interface

MDDFS Interface Library Help
DISK Structure
C
typedef struct {
  BYTE * buffer;
  DWORD firsts;
  DWORD fat;
  DWORD root;
  DWORD data;
  WORD maxroot;
  DWORD maxcls;
  WORD fatsize;
  BYTE fatcopy;
  BYTE SecPerClus;
  BYTE type;
  BYTE mount;
} DISK;
Description

The DISK structure contains information about the device being accessed.

Members
Members 
Description 
BYTE * buffer; 
Address of the global data buffer used to read and write file information 
DWORD firsts; 
Logical block address of the first sector of the FAT partition on the device 
DWORD fat; 
Logical block address of the FAT 
DWORD root; 
Logical block address of the root directory 
DWORD data; 
Logical block address of the data section of the device. 
WORD maxroot; 
The maximum number of entries in the root directory
DWORD maxcls; 
The maximum number of clusters in the partition. 
WORD fatsize; 
The number of sectors in the FAT 
BYTE fatcopy; 
The number of copies of the FAT in the partition 
BYTE SecPerClus; 
The number of sectors per cluster in the data region 
BYTE type; 
The file system type of the partition (FAT12, FAT16 or FAT32
BYTE mount; 
Device mount flag (TRUE if disk was mounted successfully, FALSE otherwise) 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.