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

Caller-owned private state for a block-device stream sink. More...

#include <ra8_io_stream_blockdev.h>

Collaboration diagram for ra8_io_stream_blockdev_state_t:

Data Fields

const ra8_io_blockdev_tbd
 Target device (private).
uint32_t lba
 Next LBA to write.
uint32_t fill
 Bytes in the sector buf.
uint8_t sector [(uint32_t) k_ra8_io_block_size_bytes]
 Sector buffer.

Detailed Description

Caller-owned private state for a block-device stream sink.

Zero-initialise and pass to ra8_io_stream_blockdev_init. Treat the fields as private. The bound block device and this state must out-live the stream.

Invariant
fill < k_ra8_io_block_size_bytes.
Since
0.1.0

Definition at line 46 of file ra8_io_stream_blockdev.h.

Field Documentation

◆ bd

const ra8_io_blockdev_t* ra8_io_stream_blockdev_state_t::bd

Target device (private).

Definition at line 47 of file ra8_io_stream_blockdev.h.

Referenced by internal_bdsink_commit_sector(), and ra8_io_stream_blockdev_init().

◆ fill

uint32_t ra8_io_stream_blockdev_state_t::fill

◆ lba

uint32_t ra8_io_stream_blockdev_state_t::lba

Next LBA to write.

Definition at line 48 of file ra8_io_stream_blockdev.h.

Referenced by internal_bdsink_commit_sector(), and ra8_io_stream_blockdev_init().

◆ sector

uint8_t ra8_io_stream_blockdev_state_t::sector[(uint32_t) k_ra8_io_block_size_bytes]

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