MityDSP Documentation Index

e:/hudson/workspace/MityDSP MDK Release/trunk/sw/inc/fatfs/MBR.h File Reference

#include <stdint.h>

Classes

struct  tsCHS
struct  tsMBR_Partition_Ent
struct  tsMBR

Enumerations

enum  teMBR_PartType {
  eeEmpty = 0x00, eeDOS_FAT12 = 0x01, eeXINIX_ROOT = 0x02, eeXINIX_USR = 0x03,
  eeDOS30_FAT16 = 0x04, eeDOS33_FAT16 = 0x05, eeDOS331_FAT16 = 0x06, eeNTFS = 0x07,
  eeWIN95_FAT32 = 0x0B, eeWIN95_FAT32_LBA = 0x0C, eeWIN95_DOS16_LBA = 0x0E, eeWIN95_EXT_LBA = 0x0F,
  eeLINUX_SWAP = 0x42, eeLINUX_NATIVE = 0x43, eeLINUX_SWAP1 = 0x82, eeLINUX_NATIVE1 = 0x83,
  eeUNKNOWN = 0x100
}
 

enumerations for MBR types.

More...

Functions

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

Enumeration Type Documentation

enumerations for MBR types.

.. there are a bunch, but only the ones of interest are captured here...

Enumerator:
eeEmpty 
eeDOS_FAT12 
eeXINIX_ROOT 
eeXINIX_USR 
eeDOS30_FAT16 
eeDOS33_FAT16 
eeDOS331_FAT16 
eeNTFS 
eeWIN95_FAT32 
eeWIN95_FAT32_LBA 
eeWIN95_DOS16_LBA 
eeWIN95_EXT_LBA 
eeLINUX_SWAP 
eeLINUX_NATIVE 
eeLINUX_SWAP1 
eeLINUX_NATIVE1 
eeUNKNOWN 

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.