STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions
+ Collaboration diagram for Initialization and de-initialization functions:

Functions

ErrorStatus LL_SPI_DeInit (const SPI_TypeDef *SPIx)
 De-initialize the SPI registers to their default reset values. More...
 
ErrorStatus LL_SPI_Init (SPI_TypeDef *SPIx, LL_SPI_InitTypeDef *SPI_InitStruct)
 Initialize the SPI registers according to the specified parameters in SPI_InitStruct. More...
 
void LL_SPI_StructInit (LL_SPI_InitTypeDef *SPI_InitStruct)
 Set each LL_SPI_InitTypeDef field to default value. More...
 

Detailed Description

Function Documentation

◆ LL_SPI_DeInit()

ErrorStatus LL_SPI_DeInit ( const SPI_TypeDef *  SPIx)

De-initialize the SPI registers to their default reset values.

Parameters
SPIxSPI Instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: SPI registers are de-initialized
  • ERROR: SPI registers are not de-initialized

Definition at line 122 of file stm32f4xx_ll_spi.c.

◆ LL_SPI_Init()

ErrorStatus LL_SPI_Init ( SPI_TypeDef *  SPIx,
LL_SPI_InitTypeDef SPI_InitStruct 
)

Initialize the SPI registers according to the specified parameters in SPI_InitStruct.

Note
As some bits in SPI configuration registers can only be written when the SPI is disabled (SPI_CR1_SPE bit =0), SPI peripheral should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Parameters
SPIxSPI Instance
SPI_InitStructpointer to a LL_SPI_InitTypeDef structure
Return values
AnErrorStatus enumeration value. (Return always SUCCESS)

Definition at line 213 of file stm32f4xx_ll_spi.c.

◆ LL_SPI_StructInit()

void LL_SPI_StructInit ( LL_SPI_InitTypeDef SPI_InitStruct)

Set each LL_SPI_InitTypeDef field to default value.

Parameters
SPI_InitStructpointer to a LL_SPI_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 281 of file stm32f4xx_ll_spi.c.