Microchip® Advanced Software Framework

Fs_management Struct Reference

Structure to save the variables frequently used by file system mounted.

#include <fat.h>

Data Fields

uint8_t b_mode_nav
 Navigation step ( FS_FILE or FS_DIR ) More...
 
uint8_t b_mode_nav_single
 Navigation File List provide only files or directories. More...
 
Fs_rootdir rootdir
 Root directory informations. More...
 
FS_STRING sz_filterext
 pointer on extension filter to use in nav_filterlist functions More...
 
uint16_t u16_entry_pos_sel_dir
 Position of selected directory in her parent directory (only use to speed up the get directory name routine) More...
 
uint16_t u16_flat_pos_offset
 Offset in flat list of the directory. More...
 
uint16_t u16_offset_FSInfo
 Offset between the beginning of FAT and the FSInfo sector (only used by FAT32) (unit 512B) More...
 
uint16_t u16_pos_filterlist
 File position in the file list filtered (only for nav_filterlist functions) More...
 
uint16_t u16_pos_sel_file
 File position in the file list (only used by navigation functions) More...
 
uint32_t u32_cluster_sel_dir
 First cluster number of selected directory (0 for the root directory) More...
 
uint32_t u32_CountofCluster
 Number of cluster (include the two reserved cluster) More...
 
uint32_t u32_fat_size
 Size of one FAT (unit 512B) More...
 
uint32_t u32_offset_data
 Offset between the beginning of FAT and the first cluster (unit 512B) More...
 
uint32_t u32_ptr_fat
 FAT address (unit 512B) More...
 
uint8_t u8_BPB_SecPerClus
 Cluster size (unit 512B) More...
 
uint8_t u8_flat_dir_level
 Directory level of the current dir in flat list. More...
 
uint8_t u8_lun
 Number of logical driver. More...
 

uint8_t Fs_management::b_mode_nav_single
Fs_rootdir Fs_management::rootdir

Root directory informations.

Referenced by fat_cluster_list(), and fat_mount().

FS_STRING Fs_management::sz_filterext

pointer on extension filter to use in nav_filterlist functions

uint16_t Fs_management::u16_entry_pos_sel_dir

Position of selected directory in her parent directory (only use to speed up the get directory name routine)

Referenced by nav_dir_cd(), and nav_dir_name().

uint16_t Fs_management::u16_flat_pos_offset

Offset in flat list of the directory.

uint16_t Fs_management::u16_offset_FSInfo

Offset between the beginning of FAT and the FSInfo sector (only used by FAT32) (unit 512B)

Referenced by fat_mount(), fat_read_fat32_FSInfo(), and fat_write_PBR().

uint16_t Fs_management::u16_pos_filterlist

File position in the file list filtered (only for nav_filterlist functions)

uint16_t Fs_management::u16_pos_sel_file

File position in the file list (only used by navigation functions)

Referenced by fat_clear_entry_info_and_ptr(), nav_file_create(), nav_filelist_eol(), nav_filelist_exist(), nav_filelist_get(), nav_filelist_nb(), and nav_filelist_set().

uint32_t Fs_management::u32_cluster_sel_dir
uint32_t Fs_management::u32_CountofCluster

Number of cluster (include the two reserved cluster)

Referenced by fat_getfreespace(), fat_getfreespace_percent(), fat_mount(), and nav_partition_space().

uint32_t Fs_management::u32_fat_size
uint32_t Fs_management::u32_offset_data

Offset between the beginning of FAT and the first cluster (unit 512B)

Referenced by fat_cache_clusterlist_update_read(), fat_cluster_list(), and fat_mount().

uint8_t Fs_management::u8_flat_dir_level

Directory level of the current dir in flat list.