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

Per-app stub state: a display name + lifecycle-call counters. More...

Data Fields

const char * name
 Display name + ITM log tag (non-NULL).
uint32_t inits
 Times init fired (at register).
uint32_t enters
 Times on_enter fired.
uint32_t leaves
 Times on_leave fired.
uint32_t renders
 Times render fired.
uint32_t inputs
 Times on_input fired.
uint32_t deinits
 Times deinit fired (teardown).

Detailed Description

Per-app stub state: a display name + lifecycle-call counters.

Each registered app points its ctx at one of these. The vtable callbacks bump the matching counter and log the event, so the self-check can assert the exact focus lifecycle (how many inits/enters/leaves/renders/inputs fired) without any display.

Invariant
enters >= leaves while the app is foreground.
Since
0.1.0

Definition at line 219 of file main.c.

Field Documentation

◆ deinits

uint32_t app_shell_ctx_t::deinits

Times deinit fired (teardown).

Definition at line 226 of file main.c.

Referenced by app_stub_deinit().

◆ enters

uint32_t app_shell_ctx_t::enters

Times on_enter fired.

Definition at line 222 of file main.c.

Referenced by app_stub_on_enter().

◆ inits

uint32_t app_shell_ctx_t::inits

Times init fired (at register).

Definition at line 221 of file main.c.

Referenced by app_stub_init().

◆ inputs

uint32_t app_shell_ctx_t::inputs

Times on_input fired.

Definition at line 225 of file main.c.

Referenced by app_stub_on_input().

◆ leaves

uint32_t app_shell_ctx_t::leaves

Times on_leave fired.

Definition at line 223 of file main.c.

Referenced by app_stub_on_leave().

◆ name

const char* app_shell_ctx_t::name

Display name + ITM log tag (non-NULL).

Definition at line 220 of file main.c.

Referenced by app_shell_add(), app_stub_deinit(), app_stub_init(), app_stub_on_enter(), app_stub_on_input(), app_stub_on_leave(), and app_stub_render().

◆ renders

uint32_t app_shell_ctx_t::renders

Times render fired.

Definition at line 224 of file main.c.

Referenced by app_stub_render().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_validated/hil/app_shell_demo/src/main.c