## Control Center Serial

#### SPI Configure Command

    <spi_config polarity="polarity"
                phase="phase"
                bitorder="bitorder"
                ss="ss"/>

Configure the SPI master interface.

Parameters

polarity
  "rising/falling" or "falling/rising"
phase
  "sample/setup" or "setup/sample"
bitorder
  "msb" or "lsb"
ss
  "active_low" or "active_high"

Details

These configuration parameters specify how to clock the bits that are sent and received on the Aardvark SPI interface or the Promira SPI interface.

The polarity option specifies which transition constitutes the leading edge and which transition is the falling edge. For example, "rising/falling" would configure the SPI to idle the SCLK clock line low. The clock would then transition low-to-high on the leading edge and high-to-low on the trailing edge.

The phase option determines whether to sample or setup on the leading edge. For example, "sample/setup" would configure the SPI to sample on the leading edge and setup on the trailing edge.

The bitorder option is used to indicate whether LSB or MSB is shifted first.

The ss option is used change the output polarity on the SS line. For example, "active_low" will pull the SS line low to active the slave device.

Please see the Aardvark I2C/SPI Adapter User Manual or the Promira Serial Platform User Manual for more information.