_BootSec Structure

Microchip MDD File System Interface

MDDFS Interface Library Help
_BootSec Structure
C
typedef struct {
  union {
    _BPB_FAT32 FAT_32;
    _BPB_FAT16 FAT_16;
    _BPB_FAT12 FAT_12;
  } FAT;
  BYTE Reserved[MEDIA_SECTOR_SIZE-sizeof(_BPB_FAT32)-2];
  BYTE Signature0;
  BYTE Signature1;
} _BootSec;
Description

The _BootSec structure has the same form as a boot sector. When the boot sector is loaded from the device, it will be cast as a _BootSec structure so the boot sector elements can be accessed.

Members
Members 
Description 
union {
_BPB_FAT32 FAT_32;
_BPB_FAT16 FAT_16;
_BPB_FAT12 FAT_12;
} FAT; 
A union of different bios parameter blocks 
BYTE Reserved[MEDIA_SECTOR_SIZE-sizeof(_BPB_FAT32)-2]; 
Reserved space 
BYTE Signature0; 
Boot sector signature code - equal to 0x55 
BYTE Signature1; 
Boot sector signature code - equal to 0xAA 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.