pub struct EasyFileSystem<T: CacheManager, F: CacheManager> {
    used_marker: PhantomData<T>,
    pub block_device: Arc<dyn BlockDevice>,
    pub fat: Fat<F>,
    pub data_area_start_block: u32,
    pub root_clus: u32,
    pub sec_per_clus: u8,
    pub byts_per_sec: u16,
    ino_cnt: Mutex<u64>,
}

Fields

used_marker: PhantomData<T>block_device: Arc<dyn BlockDevice>

Partition/Device the FAT32 is hosted on.

fat: Fat<F>

FAT information

data_area_start_block: u32

The first data sector beyond the root directory

root_clus: u32

This is set to the cluster number of the first cluster of the root directory, usually 2 but not required to be 2.

sec_per_clus: u8

sector per cluster, usually 8 for SD card

byts_per_sec: u16

Bytes per sector, 512 for SD card

ino_cnt: Mutex<u64>

“New” inode number count

Implementations

n is the ordinal number of the cluster.

Open the filesystem object.

Open the root directory

Look up the first sector denoted by inode_id Inode is not natively supported in FAT32. However, fst_clus may be used as the inode_id Only path is an UNIQUE id to a file in FAT32.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.