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

Minimal DRW configuration captured by ra8_drw_init. More...

#include <ra8_drw.h>

Data Fields

uintptr_t framebuffer_addr
 FB base addr (target ARGB).
uint16_t pitch_px
 FB pitch in pixels.
ra8_drw_writeformat_t format
 FB pixel format.
bool enable_caches
 Enable FB + texture caches.
bool enable_buffered_writes
 Set DBWER.BWE on init.

Detailed Description

Minimal DRW configuration captured by ra8_drw_init.

The config carries only the bits the driver needs to know up front: framebuffer base address, pixel format, and pitch in pixels (used to derive PITCH and SIZE for fill operations). The cppcheck suppress-block is required because cppcheck cannot see the test sources where the fields are read.

Invariant
framebuffer_addr is 4-byte aligned for ARGB8888.
pitch_px is equal to or larger than the framebuffer width in pixels.
const ra8_drw_config_t cfg = {
.framebuffer_addr = (uintptr_t)g_layer1,
.pitch_px = 1024,
.enable_caches = true,
};
if (ra8_drw_init(&cfg) != k_ra8_ok) {... }
ra8_err_t ra8_drw_init(const ra8_drw_config_t *cfg)
Power on the DRW block, install the supplied configuration, and arm the IRQ control register.
Definition ra8_drw.c:491
@ k_ra8_drw_writefmt_argb8888
32 bpp ARGB8888.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
Definition ra8_err.h:119
Minimal DRW configuration captured by ra8_drw_init.
Definition ra8_drw.h:79
bool enable_caches
Enable FB + texture caches.
Definition ra8_drw.h:83
ra8_drw_writeformat_t format
FB pixel format.
Definition ra8_drw.h:82
uint16_t pitch_px
FB pitch in pixels.
Definition ra8_drw.h:81
bool enable_buffered_writes
Set DBWER.BWE on init.
Definition ra8_drw.h:84

Definition at line 79 of file ra8_drw.h.

Field Documentation

◆ enable_buffered_writes

bool ra8_drw_config_t::enable_buffered_writes

Set DBWER.BWE on init.

Definition at line 84 of file ra8_drw.h.

Referenced by internal_drw_program_cache_options().

◆ enable_caches

bool ra8_drw_config_t::enable_caches

Enable FB + texture caches.

Definition at line 83 of file ra8_drw.h.

Referenced by internal_drw_program_cache_options().

◆ format

ra8_drw_writeformat_t ra8_drw_config_t::format

FB pixel format.

Definition at line 82 of file ra8_drw.h.

Referenced by ra8_drw_init().

◆ framebuffer_addr

uintptr_t ra8_drw_config_t::framebuffer_addr

FB base addr (target ARGB).

Definition at line 80 of file ra8_drw.h.

Referenced by ra8_drw_init().

◆ pitch_px

uint16_t ra8_drw_config_t::pitch_px

FB pitch in pixels.

Definition at line 81 of file ra8_drw.h.

Referenced by ra8_drw_init().


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