Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_io block-device fabric – one LBA vtable across every storage medium.
@ k_ra8_io_block_size_bytes
Bytes per logical block (the only size).
ra8_io targetable byte-stream facade – one writer, many destinations.
ra8_err_t ra8_io_stream_blockdev_init(ra8_io_stream_t *s, ra8_io_stream_blockdev_state_t *state, const ra8_io_blockdev_t *bd, uint32_t start_lba)
Bind a block-device stream sink into a caller-owned stream handle.
Caller-allocated block-device handle binding a backend to its context.
Caller-owned private state for a block-device stream sink.
const ra8_io_blockdev_t * bd
Target device (private).
uint32_t lba
Next LBA to write.
uint8_t sector[(uint32_t) k_ra8_io_block_size_bytes]
Sector buffer.
uint32_t fill
Bytes in the sector buf.
Caller-allocated byte-stream handle binding a sink to its context.