ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
dir_slot_t Struct Reference

A directory cursor that addresses one entry, not just one sector. More...

#include <ra8_fs_fat_types_internal.h>

Collaboration diagram for dir_slot_t:

Data Fields

dir_walk_t w
 Sector-level cursor for the containing directory.
uint32_t ent
 Entry index within w.cur_lba.

Detailed Description

A directory cursor that addresses one entry, not just one sector.

dir_walk_t steps a sector at a time, which is all a scan needs. Writing a run of entries needs to step an entry at a time and to cross into the next sector in the middle of the run, so the walker is paired with the index of the entry inside its current sector.

Invariant
ent is in 0 .. k_dir_entries_per_sector - 1.
See also
priv_dir_insert()
Since
0.1.0

Definition at line 610 of file ra8_fs_fat_types_internal.h.

Field Documentation

◆ ent

uint32_t dir_slot_t::ent

Entry index within w.cur_lba.

Definition at line 612 of file ra8_fs_fat_types_internal.h.

Referenced by internal_slot_advance(), priv_dir_commit(), and priv_dir_find_free_run().

◆ w

dir_walk_t dir_slot_t::w

Sector-level cursor for the containing directory.

Definition at line 611 of file ra8_fs_fat_types_internal.h.

Referenced by internal_slot_advance(), priv_dir_commit(), and priv_dir_find_free_run().


The documentation for this struct was generated from the following file: