Go to the documentation of this file. 1 #ifndef __FAT_ACCESS_H__
2 #define __FAT_ACCESS_H__
11 #define FAT_INIT_MEDIA_ACCESS_ERROR (-1)
12 #define FAT_INIT_INVALID_SECTOR_SIZE (-2)
13 #define FAT_INIT_INVALID_SIGNATURE (-3)
14 #define FAT_INIT_ENDIAN_ERROR (-4)
15 #define FAT_INIT_WRONG_FILESYS_TYPE (-5)
16 #define FAT_INIT_WRONG_PARTITION_TYPE (-6)
17 #define FAT_INIT_STRUCT_PACKING (-7)
19 #define FAT_DIR_ENTRIES_PER_SECTOR (FAT_SECTOR_SIZE / FAT_DIR_ENTRY_SIZE)
104 #if FATFS_INC_TIME_DATE_SUPPORT
int fatfs_mark_file_deleted(struct fatfs *fs, uint32 Cluster, char *shortname)
int fatfs_update_timestamps(struct fat_dir_entry *directoryEntry, int create, int modify, int access)
uint32 fatfs_lba_of_cluster(struct fatfs *fs, uint32 Cluster_Number)
fn_diskio_write write_media
uint32 fatfs_get_root_cluster(struct fatfs *fs)
int fatfs_list_directory_next(struct fatfs *fs, struct fs_dir_list_status *dirls, struct fs_dir_ent *entry)
struct fat_buffer fat_buffers[1]
int fatfs_sector_write(struct fatfs *fs, uint32 lba, uint8 *target, uint32 count)
fn_diskio_read read_media
int fatfs_write_sector(struct fatfs *fs, uint32 cluster, uint32 sector, uint8 *target)
int fatfs_init(struct fatfs *fs)
uint8 sectors_per_cluster
int fatfs_read_sector(struct fatfs *fs, uint32 cluster, uint32 sector, uint8 *target)
uint32 fatfs_get_file_entry(struct fatfs *fs, uint32 Cluster, char *nametofind, struct fat_dir_entry *sfEntry)
int fatfs_sfn_exists(struct fatfs *fs, uint32 Cluster, char *shortname)
uint32 rootdir_first_sector
int fatfs_sector_read(struct fatfs *fs, uint32 lba, uint8 *target, uint32 count)
struct fat_buffer currentsector
int fatfs_sector_reader(struct fatfs *fs, uint32 Startcluster, uint32 offset, uint8 *target)
struct fat_buffer * fat_buffer_head
#define FATFS_MAX_LONG_FILENAME
void fatfs_list_directory_start(struct fatfs *fs, struct fs_dir_list_status *dirls, uint32 StartCluster)
int fatfs_update_file_length(struct fatfs *fs, uint32 Cluster, char *shortname, uint32 fileLength)
int(* fn_diskio_write)(uint32 sector, uint8 *buffer, uint32 sector_count)
void fatfs_show_details(struct fatfs *fs)
#define FAT_BUFFER_SECTORS
uint32 rootdir_first_cluster
int(* fn_diskio_read)(uint32 sector, uint8 *buffer, uint32 sector_count)