SSI Modes

The ssi.mode property defines one of the four possible modes for the CLK line. These modes directly correspond to the SPI modes as described here: http://en.wikipedia.org/wiki/Serial_peripheral_interface.


The SSI mode combines two independent parameters — CPOL (clock polarity) and CPHA (clock phase):


A diagram illustrating the four SSI modes.

Here is a brief description of the modes — some "preparedness" is required to comprehend this:


Note that there is an additional difference: