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

Mutable walk state shared by the head/middle/tail read segments. More...

Data Fields

uint64_t cur
 Absolute device byte offset of the next unread byte.
uint8_t * out
 Next unwritten byte of the caller's destination buffer.
uint32_t remain
 Bytes still owed to the caller.

Detailed Description

Mutable walk state shared by the head/middle/tail read segments.

A byte-offset read is serviced as up to three segments. Each segment advances the same running cursor: the current absolute byte position, the next write position in the caller buffer, and the count of bytes still owed. Bundling the three fields lets each segment live in its own helper without smearing the walk state across separate by-reference out-parameters.

Invariant
cur is the absolute device byte offset of the next unread byte.
out points at the next unwritten byte of the caller buffer.
Since
0.1.0

Definition at line 135 of file ra8_io_blockdev_vsource.c.

Field Documentation

◆ cur

uint64_t ra8_io_bd_vsource_cursor_t::cur

Absolute device byte offset of the next unread byte.

Definition at line 136 of file ra8_io_blockdev_vsource.c.

Referenced by internal_bd_read_head(), internal_bd_read_middle(), and internal_bd_read_tail().

◆ out

uint8_t* ra8_io_bd_vsource_cursor_t::out

Next unwritten byte of the caller's destination buffer.

Definition at line 137 of file ra8_io_blockdev_vsource.c.

Referenced by internal_bd_read_head(), internal_bd_read_middle(), and internal_bd_read_tail().

◆ remain

uint32_t ra8_io_bd_vsource_cursor_t::remain

Bytes still owed to the caller.

Definition at line 138 of file ra8_io_blockdev_vsource.c.

Referenced by internal_bd_read_head(), internal_bd_read_middle(), and internal_bd_read_tail().


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