ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
emu_args.h
Go to the documentation of this file.
1
22
23#pragma once
24
25#include <stdint.h>
26
27#include "board_periph.h"
28#include "emu_run.h"
29#include "emu_trace.h"
30#include "ra8_attributes.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
51typedef struct {
52 const char* elf_path;
53 bool want_view;
54 const char* ppm_path;
55 const char* record_dir;
56 uint32_t record_secs;
57 uint32_t rotate_deg;
58 const char* panel_path;
59 const char* input_str;
60 const char* keys_str;
61 const char* touch_seq_str;
62 const char* usb_in_str;
64 uint32_t dump_sym_n;
65 const char* stop_sym_name;
66 uint32_t stop_sym_thresh;
68 uint32_t trace_sym_n;
69 const char* save_sd_path;
70 const char* ns_elf_path;
71 bool size_set;
74 int click_x;
75 int click_y;
81 uint16_t view_w;
82 uint16_t view_h;
86
116bool emu_args_parse(int argc, char** argv, emu_args_t* out);
117
118#ifdef __cplusplus
119}
120#endif
Register-accurate peripheral-model framework for the board emulator.
board_device_t
The RA8 device the emulator models for this run.
bool emu_args_parse(int argc, char **argv, emu_args_t *out)
Parse the ra8_emulator command line into out (or print usage).
Definition emu_args.c:485
The chunked emulation run loop, report and exit-code mapping.
@ k_dump_sym_max
Max –dump-sym globals per run.
Definition emu_run.h:97
Function-entry seam glue + the –trace-sym instrument.
@ k_trace_sym_max
Max –trace-sym functions per run.
Definition emu_trace.h:45
Annotation-attribute framework macros for ra8-firmware.
Every value the ra8_emulator CLI parse produces for the setup phase.
Definition emu_args.h:51
uint32_t stop_sym_thresh
–stop-sym stop threshold.
Definition emu_args.h:66
int click_x
–click column (-1 = unset).
Definition emu_args.h:74
const char * elf_path
Firmware ELF path (argv[1]).
Definition emu_args.h:52
const char * touch_seq_str
–touch-seq raw-point FIFO string.
Definition emu_args.h:61
int click_y
–click row (-1 = unset).
Definition emu_args.h:75
const char * stop_sym_name
–stop-sym watch global (NULL = off).
Definition emu_args.h:65
uint32_t trace_sym_n
Count of –trace-sym entries.
Definition emu_args.h:68
uint16_t view_w
Panel width in pixels.
Definition emu_args.h:81
uint32_t dump_sym_n
Count of –dump-sym entries.
Definition emu_args.h:64
const char * usb_in_str
–usb-in CDC bulk OUT string.
Definition emu_args.h:62
int battery_soc
–battery pct (-1 = model default).
Definition emu_args.h:78
bool usbhs_loop
–usbhs-loop chip-internal self-loop.
Definition emu_args.h:84
bool want_view
–view live window.
Definition emu_args.h:53
const char * panel_path
–panel descriptor path (NULL = none).
Definition emu_args.h:58
const char * trace_sym_names[k_trace_sym_max]
–trace-sym functions to log.
Definition emu_args.h:67
int button_press
–button: 1=SW1, 2=SW2, 0=none.
Definition emu_args.h:76
bool battery_opt
Any battery flag given.
Definition emu_args.h:80
const char * ns_elf_path
–ns second (NS) image path.
Definition emu_args.h:70
bool want_trace
–trace transition logging.
Definition emu_args.h:73
const char * save_sd_path
–save-sd dump path (NULL = off).
Definition emu_args.h:69
int reboot_count
–reboot N warm reboots.
Definition emu_args.h:77
uint16_t view_h
Panel height in pixels.
Definition emu_args.h:82
const char * dump_sym_names[k_dump_sym_max]
–dump-sym globals to read.
Definition emu_args.h:63
bool battery_charging
–charge given.
Definition emu_args.h:79
const char * record_dir
–record directory (NULL = off).
Definition emu_args.h:55
board_device_t emu_device
–device selected part (RA8D2 default).
Definition emu_args.h:83
bool size_set
–size given (wins over –panel).
Definition emu_args.h:71
const char * keys_str
–keys window-key path string.
Definition emu_args.h:60
const char * ppm_path
–ppm output path (NULL = off).
Definition emu_args.h:54
bool want_click
–click armed with valid coordinates.
Definition emu_args.h:72
uint32_t record_secs
–record-secs bound (0 = unbounded).
Definition emu_args.h:56
uint32_t rotate_deg
–rotate display rotation (0 default).
Definition emu_args.h:57
const char * input_str
–input console RX string.
Definition emu_args.h:59