Contiki-Inga 3.x
Data Structures | Functions
mbr.h File Reference

    MBR Support definitions
More...

#include "diskio.h"

Go to the source code of this file.

Data Structures

struct  mbr_primary_partition
 Represents a primary partition in the mbr. More...
 
struct  mbr
 Represents the MBR of a disk, without the code portion and the constant bytes. More...
 

Functions

void mbr_init (struct mbr *mbr)
 Initializes a mbr structure. More...
 
int mbr_read (struct diskio_device_info *from, struct mbr *to)
 Reads the MBR from the specified device. More...
 
int mbr_write (struct mbr *from, struct diskio_device_info *to)
 Write the MBR to the specified device. More...
 
int mbr_addPartition (struct mbr *mbr, uint8_t part_num, uint8_t part_type, uint32_t start, uint32_t len)
 Adds a Partition to the mbr-structure. More...
 
int mbr_delPartition (struct mbr *mbr, uint8_t part_num)
 Deletes a Partition from the mbr-structure. More...
 
int mbr_hasPartition (struct mbr *mbr, uint8_t part_num)
 Checks if the given Partition exists. More...
 

Detailed Description

    MBR Support definitions
Author
Christoph Peltz peltz.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de

Definition in file mbr.h.