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

Live peripheral snapshot the status sidebar renders each frame. More...

#include <board_overlay.h>

Collaboration diagram for board_status_t:

Data Fields

board_led_status_t leds [k_overlay_led_count]
 Per-LED indicator state.
const char * usb_state
 USB device state string.
const char * uart_line
 Last captured UART line.
uint32_t irq_total
 Total NVIC IRQs taken.
uint32_t irq0
 IRQ0 taken count.
uint32_t irq1
 IRQ1 taken count.
bool has_touch
 A touch has been drained.
uint16_t touch_x
 Last touch X (if any).
uint16_t touch_y
 Last touch Y (if any).
bool sw1_pressed
 On-screen SW1 held down.
bool sw2_pressed
 On-screen SW2 held down.
uint8_t battery_soc
 Fuel-gauge SOC percent.
bool battery_charging
 Fuel gauge reports charge.
bool low_power
 Low-power (M33 4:1 clock) on.
bool core_is_m33
 Primary core is the M33.
const char * app_name
 App / window title.
bool sd_attached
 A microSD card is attached.
uint64_t sd_bytes
 SD card size in bytes (>4GB).
uint8_t sd_fat_bits
 12/16/32 if –sd-new, else 0.
const char * sd_label
 SD volume label (–sd-new).
char console [k_overlay_console_rows][k_overlay_line_cap]
 Visible lines (active tab).
uint32_t console_count
 Visible lines populated (<= rows).
uint32_t console_scroll
 Lines scrolled back from newest (0=live).
uint32_t console_total
 Total lines in the active channel ring.
bool console_autoscroll
 True = following live tail; false=paused.
uint32_t console_ch_count
 Tabs to draw (<= max).
uint32_t console_active_ch
 Active tab index.
const char * console_ch_name [k_overlay_console_tabs_max]
 Per-tab caption.
uint32_t console_ch_count_lines [k_overlay_console_tabs_max]
 Per-tab line count.
uint32_t pc
 Current emulated program counter.
uint32_t chunks
 Emulation chunks run so far.
uint32_t mmio_reads
 Modelled-peripheral MMIO reads served.
uint32_t mmio_writes
 Modelled-peripheral MMIO writes served.
uint32_t uart_tx_total
 Total UART TX bytes the firmware emitted.
bool running
 True while the run loop is live (not parked).

Detailed Description

Live peripheral snapshot the status sidebar renders each frame.

main.c fills this from the read-only board_periph / board_usb getters once per present. String fields are borrowed pointers valid only for the duration of the board_overlay_compose call; the overlay copies nothing.

Definition at line 90 of file board_overlay.h.

Field Documentation

◆ app_name

const char* board_status_t::app_name

App / window title.

Definition at line 106 of file board_overlay.h.

Referenced by board_overlay_draw_sidebar(), and internal_fill_status_hw().

◆ battery_charging

bool board_status_t::battery_charging

Fuel gauge reports charge.

Definition at line 103 of file board_overlay.h.

Referenced by internal_draw_power(), and internal_fill_status_hw().

◆ battery_soc

uint8_t board_status_t::battery_soc

Fuel-gauge SOC percent.

Definition at line 102 of file board_overlay.h.

Referenced by internal_draw_power(), and internal_fill_status_hw().

◆ chunks

uint32_t board_status_t::chunks

Emulation chunks run so far.

Definition at line 132 of file board_overlay.h.

Referenced by internal_draw_run_stats(), and internal_fill_status_console().

◆ console

char board_status_t::console[k_overlay_console_rows][k_overlay_line_cap]

Visible lines (active tab).

Definition at line 115 of file board_overlay.h.

Referenced by internal_draw_console_body(), and internal_fill_status_console().

◆ console_active_ch

uint32_t board_status_t::console_active_ch

Active tab index.

Definition at line 126 of file board_overlay.h.

Referenced by internal_draw_console_tabs(), and internal_fill_console_tabs().

◆ console_autoscroll

bool board_status_t::console_autoscroll

True = following live tail; false=paused.

Definition at line 119 of file board_overlay.h.

Referenced by internal_draw_console_heading(), and internal_fill_status_console().

◆ console_ch_count

uint32_t board_status_t::console_ch_count

Tabs to draw (<= max).

Definition at line 124 of file board_overlay.h.

Referenced by internal_draw_console(), internal_draw_console_tabs(), and internal_fill_console_tabs().

◆ console_ch_count_lines

uint32_t board_status_t::console_ch_count_lines[k_overlay_console_tabs_max]

Per-tab line count.

Definition at line 130 of file board_overlay.h.

Referenced by internal_draw_console_tabs(), and internal_fill_console_tabs().

◆ console_ch_name

const char* board_status_t::console_ch_name[k_overlay_console_tabs_max]

Per-tab caption.

Definition at line 128 of file board_overlay.h.

Referenced by internal_draw_console_tabs(), and internal_fill_console_tabs().

◆ console_count

uint32_t board_status_t::console_count

Visible lines populated (<= rows).

Definition at line 116 of file board_overlay.h.

Referenced by internal_draw_console_body(), and internal_fill_status_console().

◆ console_scroll

uint32_t board_status_t::console_scroll

Lines scrolled back from newest (0=live).

Definition at line 117 of file board_overlay.h.

Referenced by internal_draw_console_heading(), and internal_fill_status_console().

◆ console_total

uint32_t board_status_t::console_total

Total lines in the active channel ring.

Definition at line 118 of file board_overlay.h.

Referenced by internal_draw_console_heading(), and internal_fill_status_console().

◆ core_is_m33

bool board_status_t::core_is_m33

Primary core is the M33.

Definition at line 105 of file board_overlay.h.

Referenced by internal_draw_core(), and internal_fill_status_hw().

◆ has_touch

bool board_status_t::has_touch

A touch has been drained.

Definition at line 97 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ irq0

uint32_t board_status_t::irq0

IRQ0 taken count.

Definition at line 95 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ irq1

uint32_t board_status_t::irq1

IRQ1 taken count.

Definition at line 96 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ irq_total

uint32_t board_status_t::irq_total

Total NVIC IRQs taken.

Definition at line 94 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ leds

board_led_status_t board_status_t::leds[k_overlay_led_count]

Per-LED indicator state.

Definition at line 91 of file board_overlay.h.

Referenced by internal_draw_leds(), and internal_fill_status_hw().

◆ low_power

bool board_status_t::low_power

Low-power (M33 4:1 clock) on.

Definition at line 104 of file board_overlay.h.

Referenced by internal_draw_core(), and internal_fill_status_hw().

◆ mmio_reads

uint32_t board_status_t::mmio_reads

Modelled-peripheral MMIO reads served.

Definition at line 133 of file board_overlay.h.

Referenced by internal_draw_run_stats(), and internal_fill_status_console().

◆ mmio_writes

uint32_t board_status_t::mmio_writes

Modelled-peripheral MMIO writes served.

Definition at line 134 of file board_overlay.h.

Referenced by internal_draw_run_stats(), and internal_fill_status_console().

◆ pc

uint32_t board_status_t::pc

Current emulated program counter.

Definition at line 131 of file board_overlay.h.

Referenced by internal_draw_run_stats(), and internal_fill_status_console().

◆ running

bool board_status_t::running

True while the run loop is live (not parked).

Definition at line 136 of file board_overlay.h.

Referenced by internal_draw_run_stats(), and internal_fill_status_console().

◆ sd_attached

bool board_status_t::sd_attached

A microSD card is attached.

Definition at line 107 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ sd_bytes

uint64_t board_status_t::sd_bytes

SD card size in bytes (>4GB).

Definition at line 108 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ sd_fat_bits

uint8_t board_status_t::sd_fat_bits

12/16/32 if –sd-new, else 0.

Definition at line 109 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ sd_label

const char* board_status_t::sd_label

SD volume label (–sd-new).

Definition at line 110 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ sw1_pressed

bool board_status_t::sw1_pressed

On-screen SW1 held down.

Definition at line 100 of file board_overlay.h.

Referenced by internal_draw_buttons(), and internal_fill_status_hw().

◆ sw2_pressed

bool board_status_t::sw2_pressed

On-screen SW2 held down.

Definition at line 101 of file board_overlay.h.

Referenced by internal_draw_buttons(), and internal_fill_status_hw().

◆ touch_x

uint16_t board_status_t::touch_x

Last touch X (if any).

Definition at line 98 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ touch_y

uint16_t board_status_t::touch_y

Last touch Y (if any).

Definition at line 99 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().

◆ uart_line

const char* board_status_t::uart_line

Last captured UART line.

Definition at line 93 of file board_overlay.h.

Referenced by internal_fill_status_hw().

◆ uart_tx_total

uint32_t board_status_t::uart_tx_total

Total UART TX bytes the firmware emitted.

Definition at line 135 of file board_overlay.h.

Referenced by internal_draw_console_heading(), and internal_fill_status_console().

◆ usb_state

const char* board_status_t::usb_state

USB device state string.

Definition at line 92 of file board_overlay.h.

Referenced by internal_draw_io_block(), and internal_fill_status_hw().


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