Spiguy is a standalone Linux command-line tool that can be used for sending single SPI transactions (using an activated spidev device) and viewing the result.
At the time of this writing, Spiguy supports the following features:
- Performs a single full-duplex transaction.
- Input and output is on stdin/stdout.
- Input and output is raw binary by default, but can also encode/decode from hex and decimal.
- SPI bus speed and operating mode (CPOL/CPHA) is controllable.
- a GPIO chip-select line can optionally be controlled.
At the time of this writing, Spiguy should compile cleanly and has no known bugs.