partition.h File Reference


Detailed Description

Partition table header.

Author:
Roland Riegel


Data Structures

struct  partition_struct
 Describes a partition. More...

Defines

#define PARTITION_TYPE_FREE
 The partition table entry is not used.
#define PARTITION_TYPE_FAT12
 The partition contains a FAT12 filesystem.
#define PARTITION_TYPE_FAT16_32MB
 The partition contains a FAT16 filesystem with 32MB maximum.
#define PARTITION_TYPE_EXTENDED
 The partition is an extended partition with its own partition table.
#define PARTITION_TYPE_FAT16
 The partition contains a FAT16 filesystem.
#define PARTITION_TYPE_FAT32
 The partition contains a FAT32 filesystem.
#define PARTITION_TYPE_FAT32_LBA
 The partition contains a FAT32 filesystem with LBA.
#define PARTITION_TYPE_FAT16_LBA
 The partition contains a FAT16 filesystem with LBA.
#define PARTITION_TYPE_EXTENDED_LBA
 The partition is an extended partition with LBA.

Typedefs

typedef uint8_t(* device_read_t )(uint32_t offset, uint8_t *buffer, uint16_t length)
 A function pointer used to read from the partition.
typedef uint8_t(* device_read_callback_t )(uint8_t *buffer, uint32_t offset, void *p)
 A function pointer passed to a device_read_interval_t.
typedef uint8_t(* device_read_interval_t )(uint32_t offset, uint8_t *buffer, uint16_t interval, uint16_t length, device_read_callback_t callback, void *p)
 A function pointer used to continuously read units of interval bytes and call a callback function.
typedef uint8_t(* device_write_t )(uint32_t offset, const uint8_t *buffer, uint16_t length)
 A function pointer used to write from the partition.

Functions

partition_structpartition_open (device_read_t device_read, device_read_interval_t device_read_interval, device_write_t device_write, uint8_t index)
 Opens a partition.
uint8_t partition_close (struct partition_struct *partition)
 Closes a partition.


Generated on Thu Mar 16 13:43:58 2006 for sd-reader by  doxygen 1.4.6