EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 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
Page #1127 background imageLoading...
Page #1127 background image
UM1940
LL SPI Generic Driver
DocID028236 Rev 2
1127/1371
reference:
LL_SPI_SetMode
Function name
__STATIC_INLINE void LL_SPI_SetMode (SPI_TypeDef * SPIx,
uint32_t Mode)
Function description
Set SPI operation mode to Master or Slave.
Parameters
SPIx: SPI Instance
Mode: This parameter can be one of the following values:
LL_SPI_MODE_MASTER
LL_SPI_MODE_SLAVE
Return values
None:
Notes
This bit should not be changed when communication is
ongoing.
Reference Manual to
LL API cross
reference:
CR1 MSTR LL_SPI_SetMode
CR1 SSI LL_SPI_SetMode
LL_SPI_GetMode
Function name
__STATIC_INLINE uint32_t LL_SPI_GetMode (SPI_TypeDef *
SPIx)
Function description
Get SPI operation mode (Master or Slave)
Parameters
SPIx: SPI Instance
Return values
Returned: value can be one of the following values:
LL_SPI_MODE_MASTER
LL_SPI_MODE_SLAVE
Reference Manual to
LL API cross
reference:
CR1 MSTR LL_SPI_GetMode
CR1 SSI LL_SPI_GetMode
LL_SPI_SetStandard
Function name
__STATIC_INLINE void LL_SPI_SetStandard (SPI_TypeDef *
SPIx, uint32_t Standard)
Function description
Set serial protocol used.
Parameters
SPIx: SPI Instance
Standard: This parameter can be one of the following
values:
LL_SPI_PROTOCOL_MOTOROLA
LL_SPI_PROTOCOL_TI
Return values
None:
Notes
This bit should be written only when SPI is disabled (SPE = 0)
for correct operation.
Reference Manual to
LL API cross
CR2 FRF LL_SPI_SetStandard

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals