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

RTT drain-model state (discovery, line assembly, observability). More...

Data Fields

uint64_t cb_addr
 Control-block address (0 = not found).
uint32_t ticks
 Ticks elapsed (scan cadence clock).
uint32_t next_scan
 Tick of the next discovery scan.
uint32_t scan_gap
 Current backoff gap between scans.
uint32_t drained
 Total bytes drained from up-buffer 0.
uint32_t lines
 Completed lines surfaced.
uint32_t line_len
 Chars buffered in line.
char line [k_rtt_line_max+1U]
 In-flight (not yet newline-ended) line.

Detailed Description

RTT drain-model state (discovery, line assembly, observability).

cb_addr is 0 until the scan finds a validated control block; next_scan / scan_gap implement the backoff cadence; line / line_len assemble the in-flight text line; the counters feed the end-of-run report.

Invariant
line_len < k_rtt_line_max at all times.
cb_addr is either 0 or points at a validated ID match.

Definition at line 104 of file board_periph_rtt.c.

Field Documentation

◆ cb_addr

uint64_t rtt_state_t::cb_addr

Control-block address (0 = not found).

Definition at line 105 of file board_periph_rtt.c.

◆ drained

uint32_t rtt_state_t::drained

Total bytes drained from up-buffer 0.

Definition at line 109 of file board_periph_rtt.c.

◆ line

char rtt_state_t::line[k_rtt_line_max+1U]

In-flight (not yet newline-ended) line.

Definition at line 112 of file board_periph_rtt.c.

◆ line_len

uint32_t rtt_state_t::line_len

Chars buffered in line.

Definition at line 111 of file board_periph_rtt.c.

◆ lines

uint32_t rtt_state_t::lines

Completed lines surfaced.

Definition at line 110 of file board_periph_rtt.c.

◆ next_scan

uint32_t rtt_state_t::next_scan

Tick of the next discovery scan.

Definition at line 107 of file board_periph_rtt.c.

◆ scan_gap

uint32_t rtt_state_t::scan_gap

Current backoff gap between scans.

Definition at line 108 of file board_periph_rtt.c.

◆ ticks

uint32_t rtt_state_t::ticks

Ticks elapsed (scan cadence clock).

Definition at line 106 of file board_periph_rtt.c.


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