Serial peripheral interface (SPI)
configuration). But in case the prescaler value is greater than
511, the default value (0x02) will be configured instead.
20.2.7.6 SPI_Cmd
void SPI_Cmd ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Enables or disables the specified SPI peripheral.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· NewState : new state of the SPIx peripheral. This parameter
can be: ENABLE or DISABLE.
20.2.7.7 SPI_TIModeCmd
void SPI_TIModeCmd ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Enables or disables the TI Mode.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· NewState : new state of the selected SPI TI communication
mode. This parameter can be: ENABLE or DISABLE.
ï‚· This function can be called only after the SPI_Init() function
has been called.
ï‚· When TI mode is selected, the control bits SSM, SSI, CPOL
and CPHA are not taken into consideration and are
configured by hardware respectively to the TI mode
requirements.