MityDSP Documentation Index

e:/hudson/workspace/MityDSP MDK Release/trunk/sw/src/fatfs/MBR.c File Reference

#include "MBR.h"

Functions

teMBR_PartType GetPartitionType (tsMBR *apMBR, int anPartitionNum)
 Get the Type of a Partition given a valid 512 byte MBR.
uint32_t GetPartitionStart (tsMBR *apMBR, int anPartitionNum)
 Get the Starting Logical Block of a partition.
uint32_t GetParitionSize (tsMBR *apMBR, int anPartitionNum)
 Get the size in Logical Blocks (512 byte sector) of a partition.

Function Documentation

teMBR_PartType GetPartitionType ( tsMBR apMBR,
int  anPartitionNum 
)

Get the Type of a Partition given a valid 512 byte MBR.

Parameters:
[in] apMBR Pointer to 512 byte MBR.
[in] anPartitionNum Primary partition number (0-3)
Returns:
Partition type detected.
uint32_t GetPartitionStart ( tsMBR apMBR,
int  anPartitionNum 
)

Get the Starting Logical Block of a partition.

Parameters:
[in] apMBR Pointer to 512 byte MBR.
[in] anPartitionNum Primary partition number (0-3)
Returns:
Starting LBA of partition, NULL if not found
uint32_t GetParitionSize ( tsMBR apMBR,
int  anPartitionNum 
)

Get the size in Logical Blocks (512 byte sector) of a partition.

Parameters:
[in] apMBR Pointer to 512 byte MBR.
[in] anPartitionNum Primary partition number (0-3)
Returns:
Size in LBA's (Sectors), zero if none found or error.

  
Generated on Wed Mar 17 18:24:35 2010 for FAT File System Library by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.