Contiki-Inga 3.x
Functions
mbr.c File Reference

 MBR Support implementation
More...

#include "mbr.h"
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

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 implementation
Author
Christoph Peltz peltz.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de

Definition in file mbr.c.