|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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. | |
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.
Definition at line 135 of file ra8_io_blockdev_vsource.c.
| 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().
| 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().
| 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().