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

Shadow of the write-only DRW register file plus render statistics. More...

Data Fields

uint32_t control
 CONTROL: limiter enables.
uint32_t control2
 CONTROL2: format / blend / alpha.
uint32_t color1
 COLOR1: source colour.
uint32_t color2
 COLOR2: secondary colour.
uint32_t size
 SIZE: packed bounding box W/H.
uint32_t pitch
 PITCH: framebuffer pitch, pixels.
uint32_t origin
 ORIGIN: bounding box anchor.
uint32_t cachectl
 CACHECTL: cache enables.
uint32_t renders
 Bounding boxes rasterized.
uint32_t skipped
 Renders declined as unmodelled.
uint32_t last_w
 Width of the last render.
uint32_t last_h
 Height of the last render.

Detailed Description

Shadow of the write-only DRW register file plus render statistics.

Every DRW register except STATUS, HWREVISION and the performance counters is write-only on silicon (HUM Ch 62.2, R/W column "W"), so the model keeps its own copies to rasterize from.

Invariant
pitch and size are zero until firmware programs them, and a render with either zero is a no-op.
See also
internal_drw_render

Definition at line 242 of file board_periph_drw.c.

Field Documentation

◆ cachectl

uint32_t drw_state_t::cachectl

CACHECTL: cache enables.

Definition at line 250 of file board_periph_drw.c.

◆ color1

uint32_t drw_state_t::color1

COLOR1: source colour.

Definition at line 245 of file board_periph_drw.c.

◆ color2

uint32_t drw_state_t::color2

COLOR2: secondary colour.

Definition at line 246 of file board_periph_drw.c.

◆ control

uint32_t drw_state_t::control

CONTROL: limiter enables.

Definition at line 243 of file board_periph_drw.c.

◆ control2

uint32_t drw_state_t::control2

CONTROL2: format / blend / alpha.

Definition at line 244 of file board_periph_drw.c.

◆ last_h

uint32_t drw_state_t::last_h

Height of the last render.

Definition at line 254 of file board_periph_drw.c.

◆ last_w

uint32_t drw_state_t::last_w

Width of the last render.

Definition at line 253 of file board_periph_drw.c.

◆ origin

uint32_t drw_state_t::origin

ORIGIN: bounding box anchor.

Definition at line 249 of file board_periph_drw.c.

◆ pitch

uint32_t drw_state_t::pitch

PITCH: framebuffer pitch, pixels.

Definition at line 248 of file board_periph_drw.c.

◆ renders

uint32_t drw_state_t::renders

Bounding boxes rasterized.

Definition at line 251 of file board_periph_drw.c.

◆ size

uint32_t drw_state_t::size

SIZE: packed bounding box W/H.

Definition at line 247 of file board_periph_drw.c.

◆ skipped

uint32_t drw_state_t::skipped

Renders declined as unmodelled.

Definition at line 252 of file board_periph_drw.c.


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