ftdi_spi_transfer
Transfers SPI data over an FT232H/FTDI MPSSE bridge by writing hex bytes on MOSI and reading set bytes from MISO, with configurable chip select, clock, and mode.
Instructions
Perform an SPI exchange/transfer via an FT232H/FTDI MPSSE bridge.
Args: write_hex: Hex bytes string to transmit over MOSI (e.g., '9F' to read JEDEC Flash ID). read_length: Number of bytes to read back on MISO after writing. ftdi_url: PyFtdi device URL (default 'ftdi:///1'). cs: Chip Select index (0..3, default 0). freq_hz: SPI clock frequency in Hz (default 1MHz). mode: SPI mode (0, 1, 2, or 3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cs | No | ||
| mode | No | ||
| freq_hz | No | ||
| ftdi_url | No | ftdi:///1 | |
| write_hex | Yes | ||
| read_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||