DOKK / manpages / debian 10 / spi-tools / spi-config.1.en
SPI-CONFIG(1) User Commands SPI-CONFIG(1)

spi-config - set or query SPI configuration.

spi-config options...

Set or query the configuration of a SPI port.

use the given Linux spidev character device.
print the current configuration.
set the spi mode (see SPI MODES below).
set LSB first (1) or MSB first (0).
set the number of bits per word.
set clock frequency (in Hz).
display the help screen and exit.
display the version number and exit.

low iddle level, sample on leading edge.
low iddle level, sample on trailing edge.
high iddle level, sample on leading edge.
high iddle level, sample on trailing edge.

$ spi-config -h
$ spi-config --device=/dev/spidev0.0 -q
$ spi-config --device=/dev/spidev0.0 --speed=1000000

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

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

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