|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Code MRAM driver – shared types (enums, structs, callback typedef). More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_flash_cfg_t |
| Initialisation descriptor for ra8_flash_init. More... | |
| struct | ra8_flash_status_ext_t |
| Extended status snapshot (MRCPS + MSTATR + MASTAT + MREZS). More... | |
| struct | ra8_flash_status_t |
| Decoded status snapshot, FSP-parity surface. More... | |
| struct | ra8_flash_isr_event_t |
| One IRQ event delivered to ra8_flash_callback_t. More... | |
Typedefs | |
| typedef void(* | ra8_flash_callback_t) (const ra8_flash_isr_event_t *ev) |
| Callback signature for the unified flash IRQ dispatcher. | |
Code MRAM driver – shared types (enums, structs, callback typedef).
Type definitions for the RA8D2 MRAM controller driver. This sub-header is split out of ra8_flash.h (the thin umbrella) and holds every typed enum, configuration / status struct, IRQ-event struct, and the unified IRQ callback typedef the driver exposes. It is included by the function-prototype sub-headers (ra8_flash_core.h and ra8_flash_fsp.h) and, transitively, by the ra8_flash.h umbrella that consumers continue to include unchanged.
Definition in file ra8_flash_types.h.
| typedef void(* ra8_flash_callback_t) (const ra8_flash_isr_event_t *ev) |
Callback signature for the unified flash IRQ dispatcher.
| [in] | ev | Event descriptor (source, fault address, status). |
Definition at line 168 of file ra8_flash_types.h.
| enum ra8_flash_arc_id_t : uint8_t |
Anti-rollback counter identifier.
Definition at line 74 of file ra8_flash_types.h.
| enum ra8_flash_irq_src_t : uint8_t |
Source identifier for unified flash IRQ dispatcher.
Definition at line 48 of file ra8_flash_types.h.
| enum ra8_flash_startup_t : uint8_t |
Boot-area selection for ra8_flash_set_startup_area.
| Enumerator | |
|---|---|
| k_ra8_flash_startup_default | Default startup area (BTFLG=1). |
| k_ra8_flash_startup_alternate | Alternate startup area (BTFLG=0). |
| k_ra8_flash_startup_btflg | Validation sentinel. |
Definition at line 64 of file ra8_flash_types.h.
| enum ra8_flash_world_t : uint8_t |
Which secure-attribution gate to open for a write.
MRCPC0 controls writes to the non-secure MRAM half; MRCPC1 controls the secure half. Cite HUM Ch 59 p 3601..3603 (MRCPC0/MRCPC1 register descriptions in chapter range 3542..3625).
| Enumerator | |
|---|---|
| k_ra8_flash_world_ns | Open MRCPC0 (non-secure half). |
| k_ra8_flash_world_s | Open MRCPC1 (secure half). |
Definition at line 39 of file ra8_flash_types.h.