SPI

A command of the separate bcma command line; see Commands for other chip families.

SPI debug command.

SPI Init [options]
TX <data>
Clean

Built-in help

Initialize / cleanup SPI interface, or switch data between the master
and the slave. The master should send 0s to receive remain read
data, if those can't be received in the write cycles. It will also
receive 0s if no data is sent from the slave or the data is not ready
for sending.
Options:
   init - Initialize SPI interface
     Mode=<val> - 0: master, 1: slave
     FrameFormat=<val> - 0: Motorola SPI frame format.
                         1: TI synchronous serial frame format.
                         2: National Microwire frame format.
     CPOL=<val> - Clock polarity 0: low, 1: high
     CPHA=<val> - Clock phase:
          cpol=0, cpha=0: clock idle low, sample at raising edge
          cpol=0, cpha=1: clock idle low, sample at failing edge
          cpol=1, cpha=0: clock idle high, sample at failing edge
          cpol=1, cpha=1: clock idle high, sample at raising edge
     Speed=<val> - SPI interface speed (Hz)
     Bitsperword=<val> - SPI word sizen
     LoopBack=<val>    - 0: disable, 1: enable
     CsGpio=<val>      - CS GPIO number, -1 means not use
   tx <data>           - Send data.
   Clean - Cleanup SPI configuration

Built-in examples

init b=8 lb=1
tx 30_18014000_00000000