GRMON3-UM
June 2019, Version 3.1.0
193 www.cobham.com/gaisler
88. spi - syntax
NAME
spi - Commands for the SPI controller
SYNOPSIS
spi subcommand ?args...?
spi index subcommand ?args...?
DESCRIPTION
This command provides functions to control the SPICTRL core. If more than one core exists in the system, then
the index of the core to control should be specified after the spi command (before the subcommand). The 'info
sys' command lists the device indexes.
spi aslvsel value
Set automatic slave select register
spi disable
spi enable
Enable/Disable core
spi rx
Read receive register
spi selftest
Test core in loop mode
spi set ?field ...?
Sets specified field(s) in Mode register.
Available fields: cpol, cpha, div16, len value, amen, loop, ms, pm value, tw, asel, fact, od, tac, rev,
aseldel value, tto, igsel, cite
spi slvsel value
Set slave select register
spi status
Displays core status information
spi tx data
Writes data to transmit register. GRMON automatically aligns the data
spi unset ?field ...?
Sets specified field(s) in Mode register.
Available fields: cpol, cpha, div16, amen, loop, ms, tw, asel, fact, od, tac, rev, tto, igsel, cite
Commands for automated transfers:
spi am cfg ?option ...?
Set AM configuration register.
Available fields: seq, strict, ovtb, ovdb
spi am per value
Set AM period register to value.
spi am act
spi am deact
Start/stop automated transfers.
spi am extact
Enable external activation of AM transfers
spi am poll count
Poll for count transfers
SPI Flash commands:
spi flash
Prints a list of available commands