LoadBootSector Function

Microchip MDD File System Interface

MDDFS Interface Library Help
LoadBootSector Function
C
BYTE LoadBootSector(
    DISK * dsk
);
Description

LoadBootSector will use the function pointed to by the MDD_SectorWrite function pointer to load the boot sector, whose location was obtained by a previous call of LoadMBR. If the boot sector is loaded successfully, partition information will be calcualted from it and copied into the DISK structure pointed to by 'dsk.'

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
dsk 
The disk containing the boot sector 
Return Values
Return Values 
Description 
CE_GOOD 
Boot sector loaded 
CE_BAD_SECTOR_READ 
A bad read occured of a sector 
CE_NOT_FORMATTED 
The disk is of an unsupported format 
CE_CARDFAT32 
FAT 32 device not supported 
Side Effects

None

Remarks

None

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.