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)。
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 |