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. | |
#define | PARTITION_TYPE_UNKNOWN |
The partition has an unknown type. | |
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 to the partition. | |
typedef uint16_t(* | device_write_callback_t )(uint8_t *buffer, uint32_t offset, void *p) |
A function pointer passed to a device_write_interval_t . | |
typedef uint8_t(* | device_write_interval_t )(uint32_t offset, uint8_t *buffer, uint16_t length, device_write_callback_t callback, void *p) |
A function pointer used to continuously write a data stream obtained from a callback function. | |
Functions | |
struct partition_struct * | partition_open (device_read_t device_read, device_read_interval_t device_read_interval, device_write_t device_write, device_write_interval_t device_write_interval, int8_t index) |
Opens a partition. | |
uint8_t | partition_close (struct partition_struct *partition) |
Closes a partition. |