fat16.h File Reference

#include "fat16_config.h"
#include <stdint.h>

Include dependency graph for fat16.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fat16_dir_entry_struct

Defines

#define FAT16_ATTRIB_READONLY   (1 << 0)
#define FAT16_ATTRIB_HIDDEN   (1 << 1)
#define FAT16_ATTRIB_SYSTEM   (1 << 2)
#define FAT16_ATTRIB_VOLUME   (1 << 3)
#define FAT16_ATTRIB_DIR   (1 << 4)
#define FAT16_ATTRIB_ARCHIVE   (1 << 5)
#define FAT16_SEEK_SET   0
#define FAT16_SEEK_CUR   1
#define FAT16_SEEK_END   2
#define fat16_delete_dir   fat16_delete_file

Functions

struct fat16_fs_structfat16_open (struct partition_struct *partition)
void fat16_close (struct fat16_fs_struct *fs)
struct fat16_file_structfat16_open_file (struct fat16_fs_struct *fs, const struct fat16_dir_entry_struct *dir_entry)
void fat16_close_file (struct fat16_file_struct *fd)
int16_t fat16_read_file (struct fat16_file_struct *fd, uint8_t *buffer, uint16_t buffer_len)
int16_t fat16_write_file (struct fat16_file_struct *fd, const uint8_t *buffer, uint16_t buffer_len)
uint8_t fat16_seek_file (struct fat16_file_struct *fd, int32_t *offset, uint8_t whence)
uint8_t fat16_resize_file (struct fat16_file_struct *fd, uint32_t size)
struct fat16_dir_structfat16_open_dir (struct fat16_fs_struct *fs, const struct fat16_dir_entry_struct *dir_entry)
void fat16_close_dir (struct fat16_dir_struct *dd)
uint8_t fat16_read_dir (struct fat16_dir_struct *dd, struct fat16_dir_entry_struct *dir_entry)
uint8_t fat16_reset_dir (struct fat16_dir_struct *dd)
uint8_t fat16_create_file (struct fat16_dir_struct *parent, const char *file, struct fat16_dir_entry_struct *dir_entry)
uint8_t fat16_delete_file (struct fat16_fs_struct *fs, struct fat16_dir_entry_struct *dir_entry)
uint8_t fat16_create_dir (struct fat16_dir_struct *parent, const char *dir, struct fat16_dir_entry_struct *dir_entry)
void fat16_get_file_modification_date (const struct fat16_dir_entry_struct *dir_entry, uint16_t *year, uint8_t *month, uint8_t *day)
void fat16_get_file_modification_time (const struct fat16_dir_entry_struct *dir_entry, uint8_t *hour, uint8_t *min, uint8_t *sec)
uint8_t fat16_get_dir_entry_of_path (struct fat16_fs_struct *fs, const char *path, struct fat16_dir_entry_struct *dir_entry)
uint32_t fat16_get_fs_size (const struct fat16_fs_struct *fs)
uint32_t fat16_get_fs_free (const struct fat16_fs_struct *fs)


Detailed Description

FAT16 header (license: GPLv2 or LGPLv2.1)

Author:
Roland Riegel

Definition in file fat16.h.


Generated on Wed Sep 17 19:31:52 2008 for mptry by  doxygen 1.5.5