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

File-scope runtime state shared across the ra8_flash TUs. More...

#include <ra8_flash_internal.h>

Collaboration diagram for ra8_flash_runtime_t:

Data Fields

ra8_flash_callback_t cb
 Registered IRQ callback (or NULL).
void * user_ctx
 Caller pointer passed to cb.
bool initialized
 True after ra8_flash_init.
bool prefetch_on
 Last-known MRCPFB state.
uintptr_t win_low
 Soft access-window low (incl).
uintptr_t win_high
 Soft access-window high (excl).

Detailed Description

File-scope runtime state shared across the ra8_flash TUs.

Cleared at init. Used by the IRQ dispatcher to find the registered callback and to detect callers that try to use APIs before init. The single definition lives in ra8_flash.c; the configuration and IRQ TUs reference it via the g_flash_rt extern below.

Invariant
win_low < win_high whenever a soft window is installed, else both are 0 (window disabled).
See also
g_flash_rt
Since
0.1.0

Definition at line 54 of file ra8_flash_internal.h.

Field Documentation

◆ cb

ra8_flash_callback_t ra8_flash_runtime_t::cb

Registered IRQ callback (or NULL).

Definition at line 55 of file ra8_flash_internal.h.

◆ initialized

bool ra8_flash_runtime_t::initialized

True after ra8_flash_init.

Definition at line 57 of file ra8_flash_internal.h.

◆ prefetch_on

bool ra8_flash_runtime_t::prefetch_on

Last-known MRCPFB state.

Definition at line 58 of file ra8_flash_internal.h.

◆ user_ctx

void* ra8_flash_runtime_t::user_ctx

Caller pointer passed to cb.

Definition at line 56 of file ra8_flash_internal.h.

◆ win_high

uintptr_t ra8_flash_runtime_t::win_high

Soft access-window high (excl).

Definition at line 60 of file ra8_flash_internal.h.

◆ win_low

uintptr_t ra8_flash_runtime_t::win_low

Soft access-window low (incl).

Definition at line 59 of file ra8_flash_internal.h.


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