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

Active GLCDC graphics-layer framebuffer descriptor. More...

#include <board_periph.h>

Data Fields

uint32_t base
 Framebuffer base address (GRn FLM2.BASE).
uint32_t width
 Width in pixels (line stride / bytes-per-pixel).
uint32_t height
 Height in pixels (GRn FLM5.LNNUM + 1).
uint32_t stride
 Line stride in bytes (GRn FLM3.LNOFF[31:16]).
uint8_t format
 Pixel format code (GRn FLM6.FORMAT[30:28]).
uint8_t layer
 Source layer: 1 = GR1 (upper), 2 = GR2 (lower).
bool enabled
 True when the layer is fetching (FLMRD set + BG EN).

Detailed Description

Active GLCDC graphics-layer framebuffer descriptor.

The decode the GLCDC model (board_periph_glcdc.c) recovers from the graphics layer registers the firmware programmed: where the scanned-out framebuffer lives in emulated memory and how to read it. board_periph_glcdc_get_framebuffer fills this so a harness can fetch the rendered pixels out of modelled RAM (on-chip SRAM or external SDRAM at 0x68000000) and checksum them.

Invariant
stride >= width * (bytes-per-pixel of format).
base points into a modelled RAM window whenever this descriptor is returned; enabled additionally reflects the BG output stage.
See also
board_periph_glcdc_get_framebuffer

Definition at line 725 of file board_periph.h.

Field Documentation

◆ base

uint32_t board_glcdc_fb_t::base

Framebuffer base address (GRn FLM2.BASE).

Definition at line 726 of file board_periph.h.

Referenced by internal_glcdc_hash_framebuffer(), internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ enabled

bool board_glcdc_fb_t::enabled

True when the layer is fetching (FLMRD set + BG EN).

Definition at line 732 of file board_periph.h.

Referenced by internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ format

uint8_t board_glcdc_fb_t::format

Pixel format code (GRn FLM6.FORMAT[30:28]).

Definition at line 730 of file board_periph.h.

Referenced by internal_glcdc_hash_framebuffer(), internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ height

uint32_t board_glcdc_fb_t::height

Height in pixels (GRn FLM5.LNNUM + 1).

Definition at line 728 of file board_periph.h.

Referenced by internal_glcdc_hash_framebuffer(), internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ layer

uint8_t board_glcdc_fb_t::layer

Source layer: 1 = GR1 (upper), 2 = GR2 (lower).

Definition at line 731 of file board_periph.h.

Referenced by internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ stride

uint32_t board_glcdc_fb_t::stride

Line stride in bytes (GRn FLM3.LNOFF[31:16]).

Definition at line 729 of file board_periph.h.

Referenced by internal_glcdc_hash_framebuffer(), internal_glcdc_layer_decode(), and internal_glcdc_report().

◆ width

uint32_t board_glcdc_fb_t::width

Width in pixels (line stride / bytes-per-pixel).

Definition at line 727 of file board_periph.h.

Referenced by internal_glcdc_hash_framebuffer(), internal_glcdc_layer_decode(), and internal_glcdc_report().


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