decode_protocol
Decode saved logic-analyzer captures using single-layer or stacked protocol decoders, map protocol roles to channels, and return bounded structured events instead of raw waveforms.
Instructions
Decode a saved capture with bundled single-layer or stacked protocol decoders. Protocols: can, cjtag, i2c, i2s, ir_nec, jtag, jtag_ejtag, jtag_stm32, lin, mdio, modbus, onewire_link, onewire_network, ps2, qspi, sdcard_sd, sdcard_spi, spdif, spi, spiflash, swd, usb_signalling. Map protocol roles explicitly, for example channels={scl:D0,sda:D1}. Inspect capabilities for each protocol's required/optional channels and typed options. Returns bounded structured events, never raw waveform arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Typed decoder options. Use decoder.option when stacked layers share a name, for example spi.cpol=0. See capabilities. | |
| start_s | No | ||
| channels | Yes | Protocol role to capture channel, e.g. {"scl":"D0","sda":"D1"} | |
| protocol | Yes | ||
| capture_id | Yes | ||
| duration_s | No | ||
| max_events | No | ||
| include_bits | No | ||
| include_lower_layers | No | Include lower-layer annotations for stacked protocols. |