_BPB_FAT32 Structure

Microchip MDD File System Interface

MDDFS Interface Library Help
_BPB_FAT32 Structure
C
typedef struct {
  SWORD BootSec_jmpBoot;
  BYTE BootSec_OEMName[8];
  WORD BootSec_BytsPerSec;
  BYTE BootSec_SecPerClus;
  WORD BootSec_RsvdSecCnt;
  BYTE BootSec_NumFATs;
  WORD BootSec_RootEntCnt;
  WORD BootSec_TotSec16;
  BYTE BootSec_Media;
  WORD BootSec_FATSz16;
  WORD BootSec_SecPerTrk;
  WORD BootSec_NumHeads;
  DWORD BootSec_HiddSec;
  DWORD BootSec_TotSec32;
  DWORD BootSec_FATSz32;
  WORD BootSec_ExtFlags;
  WORD BootSec_FSVers;
  DWORD BootSec_RootClus;
  WORD BootSec_FSInfo;
  WORD BootSec_BkBootSec;
  BYTE BootSec_Reserved[12];
  BYTE BootSec_DrvNum;
  BYTE BootSec_Reserved1;
  BYTE BootSec_BootSig;
  BYTE BootSec_VolID[4];
  BYTE BootSec_VolLab[11];
  BYTE BootSec_FilSysType[8];
} _BPB_FAT32;
Description

The _BPB_FAT32 structure provides a layout of the "bios parameter block" in the boot sector of a FAT32 partition.

Members
Members 
Description 
SWORD BootSec_jmpBoot; 
Jump Command 
BYTE BootSec_OEMName[8]; 
OEM name 
WORD BootSec_BytsPerSec; 
Number of bytes per sector 
BYTE BootSec_SecPerClus; 
Number of sectors per cluster 
WORD BootSec_RsvdSecCnt; 
Number of reserved sectors at the beginning of the partition 
BYTE BootSec_NumFATs; 
Number of FATs on the partition 
WORD BootSec_RootEntCnt; 
Number of root directory entries 
WORD BootSec_TotSec16; 
Total number of sectors 
BYTE BootSec_Media; 
Media descriptor 
WORD BootSec_FATSz16; 
Number of sectors per FAT 
WORD BootSec_SecPerTrk; 
Number of sectors per track 
WORD BootSec_NumHeads; 
Number of heads 
DWORD BootSec_HiddSec; 
Number of hidden sectors 
DWORD BootSec_TotSec32; 
Total sector count (32 bits) 
DWORD BootSec_FATSz32; 
Sectors per FAT (32 bits) 
WORD BootSec_ExtFlags; 
Presently active FAT. Defined by bits 0-3 if bit 7 is 1. 
WORD BootSec_FSVers; 
FAT32 filesystem version. Should be 0:0 
DWORD BootSec_RootClus; 
Start cluster of the root directory (should be 2) 
WORD BootSec_FSInfo; 
File system information 
WORD BootSec_BkBootSec; 
Backup boot sector address. 
BYTE BootSec_Reserved[12]; 
Reserved space 
BYTE BootSec_DrvNum; 
Drive number 
BYTE BootSec_Reserved1; 
Reserved space 
BYTE BootSec_BootSig; 
Boot signature - 0x29 
BYTE BootSec_VolID[4]; 
Volume ID 
BYTE BootSec_VolLab[11]; 
Volume Label 
BYTE BootSec_FilSysType[8]; 
File system type in ASCII. Not used for determination 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.