logic_decode
Decode UART, I2C, or SPI signals from verified captures by setting channels and timing/SPI modes; converts captured waveforms into bounded packet data for analysis.
Instructions
Decode UART (8N1), I2C or SPI (8-bit, MSB-first, active-LOW CS) from verified captures. Select physical channels; SPI supports CPOL/CPHA 0 or 1. UART requires >=4 samples/bit. max_samples=null analyzes all; returned packets are bounded by max_packets (1..1000).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"capture_id": "<capture_id>"
},
"name": "logic_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpha | No | ||
| cpol | No | ||
| protocol | No | uart | |
| baud_rate | No | ||
| capture_id | Yes | ||
| cs_channel | No | ||
| rx_channel | No | ||
| clk_channel | No | ||
| max_packets | No | ||
| max_samples | No | ||
| scl_channel | No | ||
| sda_channel | No | ||
| miso_channel | No | ||
| mosi_channel | No |