Skip to main content

channels

Function channels 

Source
pub fn channels(
    probes: &[Probe],
    trace: &[(u64, u16, Level)],
    analog: &[(u64, u16, f64)],
    initial: &[Level],
    start: Option<u64>,
) -> Vec<Channel>
Expand description

Build the channels for probes from the board’s net trace and analog samples.

initial is the level every net held when recording started, emitted at start so a channel begins with the state it actually had. start is None before a trace begins: recording is opt-in, and a probe added early must read as empty rather than invent a sample at tick zero.