1SPI-CONFIG(1)                    User Commands                   SPI-CONFIG(1)
2
3
4

NAME

6       spi-config - set or query SPI configuration.
7

SYNOPSIS

9       spi-config options...
10

DESCRIPTION

12       Set or query the configuration of a SPI port.
13
14       -d, --device=DEVICE
15              use the given Linux spidev character device.
16
17       -q, --query
18              print the current configuration.
19
20       -m, --mode=[0-3]
21              set the spi mode (see SPI MODES below).
22
23       -l, --lsb={0,1}
24              set LSB first (1) or MSB first (0).
25
26       -b, --bits=[7...]
27              set the number of bits per word.
28
29       -s, --speed=FREQUENCY
30              set clock frequency (in Hz).
31
32       -h, --help
33              display the help screen and exit.
34
35       -v, --version
36              display the version number and exit.
37
38
39   SPI MODES
40       mode 0 low iddle level, sample on leading edge.
41
42       mode 1 low iddle level, sample on trailing edge.
43
44       mode 2 high iddle level, sample on leading edge.
45
46       mode 3 high iddle level, sample on trailing edge.
47

EXAMPLES

49       Get help:
50              $ spi-config -h
51
52       Query current configuration:
53              $ spi-config --device=/dev/spidev0.0 -q
54
55       Change clock frequency to 1 MHz:
56              $ spi-config --device=/dev/spidev0.0 --speed=1000000
57

AUTHOR

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

REPORTING BUGS

62       Github home page: <https://github.com/cpb-/spi-tools.git>
63
65       Copyright © 2014 Christophe Blaess.
66       Licensed under GPLv2 <http://gnu.org/licenses/gpl.html>.
67       This is free software: you are free to change and redistribute it.
68       There is NO WARRANTY, to the extent permitted by law.
69
70
71
72SPI-tools                         August 2014                    SPI-CONFIG(1)
Impressum