Prototype procedure SPIx_Init();
Description Configures and initializes the SPI module with default settings.
Default settings:
Master mode
8-bit data mode
...
Serial output data changes on transition from active clock state to idle clock state <-- this line
The last line is true, but it would be better to say "Data is valid on IDLE-to-ACTIVE transition" as stated a little bit further:
Even better is (in both places):Clock Edge
Description Predefined library const
Data is valid on ACTIVE-to-IDLE transition _SPI_ACTIVE_2_IDLE
Data is valid on IDLE-to-ACTIVE transition _SPI_IDLE_2_ACTIVE
Thanks in advance!Output Data is valid on IDLE-to-ACTIVE transition