spi_read_reg
Send an SPI command byte and read back N response bytes to inspect registers or identify devices, such as reading a JEDEC ID.
Instructions
发一个 SPI 命令字并读回 N 字节(对读了命令字的从设备通用)。
例:读 JEDEC ID → spi_read_reg(cmd_byte=0x9F, count=3)。
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": {
"cmd_byte": "<cmd_byte>"
},
"name": "spi_read_reg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cs | No | ||
| bus | No | ||
| port | No | ||
| count | No | ||
| baudrate | No | ||
| cmd_byte | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |