Scroll to navigation

SPI-PIPE(1) User Commands SPI-PIPE(1)

NAME

spi-pipe - full-duplex SPI communication tool.

SYNOPSIS

spi-pipe options...

DESCRIPTION

This program allows full-duplex communications, sending data from its standard input to the SPI slave, and displaying on its standard output the data received from the SPI port.

use the given Linux spidev character device.
set the target SPI speed for transfer.
set the block size (in bytes) for transfer.
set the number of blocks to transmit (-1 for continuous transfert).
display the help screen and exit.
display the version number and exit.

EXAMPLES

$ spi-pipe -h
$ command-1 | spi-pipe --device=/dev/spidev0.0 | command-2
Note that command-1, command-2 and spi-pipe run simultaneously in three different processes.
$ command-1 | spi-pipe --device=/dev/spidev0.0
$ spi-pipe --device=/dev/spidev0.0 < /dev/zero | command-2
You can also use command-2 < /dev/spidev0.0 but with spi-pipe you can control what is sent to the device (always `0` here).
$ spi-pipe --device=/dev/spidev0.0 -b 4 -n 40 < /dev/zero | command-2

AUTHOR

Written by Christophe BLAESS <https://www.blaess.fr/christophe>.

REPORTING BUGS

Github home page: <https://github.com/cpb-/spi-tools.git>

COPYRIGHT

Copyright © 2014 Christophe Blaess.
Licensed under GPLv2 <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

August 2014 SPI-tools