ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
rabook_import_internal.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <stdint.h>
18
19#include "ra8_attributes.h"
20#include "ra8_err.h"
21
23typedef ra8_err_t (*rabook_import_read_fn)(void* ctx,
24 uint8_t* buf,
25 uint32_t requested,
26 uint32_t* out_read);
27
54 void* read_ctx,
55 uint64_t expected_size,
56 uint8_t* buf,
57 uint32_t cap,
58 uint32_t max_reads,
59 uint32_t* out_size,
60 uint32_t* out_crc);
61
86 void* read_ctx,
87 uint64_t expected_size,
88 uint8_t* buf,
89 uint32_t cap,
90 uint32_t max_reads,
91 uint32_t* out_size,
92 uint32_t* out_crc);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
#define RA8_TEST_HELPER
Mark a symbol as externally-linked but only callable from tests.
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_err_t priv_rabook_import_crc_stream(rabook_import_read_fn read_fn, void *read_ctx, uint64_t expected_size, uint8_t *buf, uint32_t cap, uint32_t max_reads, uint32_t *out_size, uint32_t *out_crc)
Compute one exact bounded source CRC through an injected reader.
ra8_err_t(* rabook_import_read_fn)(void *ctx, uint8_t *buf, uint32_t requested, uint32_t *out_read)
Exact sequential-reader seam used by the source-key CRC pass.
ra8_err_t rabook_import_crc_stream_test(rabook_import_read_fn read_fn, void *read_ctx, uint64_t expected_size, uint8_t *buf, uint32_t cap, uint32_t max_reads, uint32_t *out_size, uint32_t *out_crc)
Exercise the bounded source-key CRC contract from focused tests.