ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_stream_blockdev.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <stdint.h>
29
30#include "ra8_err.h"
31#include "ra8_io_blockdev.h"
32#include "ra8_io_stream.h"
33
46typedef struct {
48 uint32_t lba;
49 uint32_t fill;
53
78 const ra8_io_blockdev_t* bd,
79 uint32_t start_lba);
80
81#ifdef __cplusplus
82}
83#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
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).
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.