EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Serial peripheral interface (SPI)
DocID023800 Rev 1
413/584
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
Function Name
void SPI_Cmd ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Function Description
Enables or disables the specified SPI peripheral.
Parameters
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.
Return values
None.
Notes
None.
20.2.7.7 SPI_TIModeCmd
Function Name
void SPI_TIModeCmd ( SPI_TypeDef * SPIx, FunctionalState
NewState)
Function Description
Enables or disables the TI Mode.
Parameters
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.
Return values
None.
Notes
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.

Table of Contents

Related product manuals