DISKmount Function

Microchip MDD File System Interface

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

This function will use the function pointed to by the MDD_MediaInitialize function pointer to initialize the device (if any initialization is required). It then attempts to load the master boot record with the LoadMBR function and the boot sector with the LoadBootSector function. These two functions will be used to initialize a global DISK structure that will be used when accessing file information in the future.

Preconditions

This function should not be called by the user.

Parameters
Parameters 
Description 
dsk 
The disk structure to be initialized. 
Return Values
Return Values 
Description 
CE_GOOD 
Disk mounted 
CE_INIT_ERROR 
Initialization error has occured 
Side Effects

None

Remarks

None

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