pub struct Options {Show 25 fields
pub vcd: Option<PathBuf>,
pub break_at: Option<u32>,
pub analog: bool,
pub wifi: Option<String>,
pub coverage: bool,
pub interactive: Option<Interactive>,
pub screenshot: Option<Screenshot>,
pub probes: Vec<String>,
pub scope: Option<PathBuf>,
pub sr: Option<PathBuf>,
pub sr_rate: Option<u64>,
pub trigger: Option<Trigger>,
pub decodes: Vec<DecodeSection>,
pub gdb: Option<GdbRequest>,
pub pcap: Option<PathBuf>,
pub pcap_air: Option<PathBuf>,
pub pcap_eth: Option<PathBuf>,
pub host_network: bool,
pub host_forwards: Vec<String>,
pub heap_sample: bool,
pub heap_interval: Option<u64>,
pub heap_min_free: Option<u32>,
pub heap_csv: Option<PathBuf>,
pub sd_export: Option<PathBuf>,
pub flash_export: Option<PathBuf>,
}Expand description
What the caller wants recorded about a run, beyond pass or fail.
Fields§
§vcd: Option<PathBuf>Write every net transition to this file as a VCD.
break_at: Option<u32>Stop the first run at this program counter and report the registers.
analog: boolSolve the circuit’s analog network alongside the digital run. Off by
default; [sim] analog = true turns it on for the project.
wifi: Option<String>Override the project’s Wi-Fi access point for this run.
coverage: boolTurn on instruction coverage and print the backend’s report after the run. A backend without coverage ignores it.
interactive: Option<Interactive>Forward lines typed on stdin to one board’s console, so a REPL or a firmware that asks a question can be answered from the terminal.
screenshot: Option<Screenshot>Write a simulated display here as a PNG: at the end of a run, and
when a test fails.
probes: Vec<String>Points to watch, in addition to the project’s [[probe]] entries.
Each is its own channel name.
scope: Option<PathBuf>Write every probe’s record here as a CSV at the end of the run.
sr: Option<PathBuf>Write every probe as a sigrok session archive (.sr) for PulseView
or sigrok-cli. The samples come from the same record the scope
writes, held at each channel’s last transition.
sr_rate: Option<u64>The samplerate for the sigrok archive, in Hz. None uses
litz_board::sigrok::DEFAULT_RATE_HZ.
trigger: Option<Trigger>Start the scope’s window at a logic-analyzer trigger instead of at time zero. The trigger names a probe the run already watches.
decodes: Vec<DecodeSection>Protocols to read off the probed channels, in addition to the project’s
[[decode]] entries.
gdb: Option<GdbRequest>Serve the GDB remote protocol on one board’s chip once it is booted.
pcap: Option<PathBuf>Write the simulated network’s traffic here as a pcap at the end of the run, for Wireshark.
pcap_air: Option<PathBuf>Write every 802.11 frame the radio carries into a link-type-105 pcap as the run goes.
pcap_eth: Option<PathBuf>Write the Ethernet frames the station’s MAC carries into a link-type-1 pcap as the run goes.
host_network: boolPut host sockets behind the Wi-Fi gateway. Non-deterministic by
nature; the forwarded ports are tcp:[host:]port-[guest:]port.
host_forwards: Vec<String>§heap_sample: boolAsk the firmware for its free heap at the end of the run and print it. A firmware that cannot answer makes the run fail, so CI can gate on it.
heap_interval: Option<u64>Sample the free heap every this many nanoseconds of simulated time.
None keeps the end-of-run sample that heap_sample asks for.
heap_min_free: Option<u32>Fail the run when the free heap drops below this many bytes.
heap_csv: Option<PathBuf>Append every heap sample to this CSV as it is taken.
sd_export: Option<PathBuf>Save the image of every SPI microSD card the guest wrote, after the run. One card writes to the path; several treat it as a directory.
flash_export: Option<PathBuf>Save the MCU’s own flash after the run, so a firmware that wrote a config sector or a filesystem hands it to the next run.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Optionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<DecodeSection>: Freeze,
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Optionswhere
RawVecInner: Send,
impl Sync for Optionswhere
RawVecInner: Sync,
impl Unpin for Options
impl UnsafeUnpin for Optionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<DecodeSection>: UnsafeUnpin,
impl UnwindSafe for Optionswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more