spi-controller
¶
glasgow run spi-controller¶
Initiate transactions on the SPI bus.
Currently, only SPI mode 3 (CPOL=1, CPHA=1) is supported.
usage: glasgow run spi-controller [-h] [-V SPEC] [--cs PIN] [--sck PIN]
[--copi PIN] [--cipo PIN] [-m MODE]
[-f FREQ]
DATA [DATA ...]
- data¶
hex bytes to exchange with the device
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --cs <pin>¶
bind the applet I/O line ‘cs’ to PIN (default: ‘A0’, required)
- --sck <pin>¶
bind the applet I/O line ‘sck’ to PIN (default: ‘A1’, required)
- --copi <pin>¶
bind the applet I/O line ‘copi’ to PIN (default: ‘A2’, optional)
- --cipo <pin>¶
bind the applet I/O line ‘cipo’ to PIN (default: ‘A3’, optional)
- -m {0,1,2,3}, --mode {0,1,2,3}¶
configure clock phase and idle state according to MODE (default: 3)
- -f <freq>, --frequency <freq>¶
set SCK frequency to FREQ kHz (default: 100)