STM32G474xx HAL User Manual
Functions
Configuration
SPI Exported Functions

Functions

__STATIC_INLINE void LL_SPI_Enable (SPI_TypeDef *SPIx)
 Enable SPI peripheral.
__STATIC_INLINE void LL_SPI_Disable (SPI_TypeDef *SPIx)
 Disable SPI peripheral.
__STATIC_INLINE uint32_t LL_SPI_IsEnabled (const SPI_TypeDef *SPIx)
 Check if SPI peripheral is enabled.
__STATIC_INLINE void LL_SPI_SetMode (SPI_TypeDef *SPIx, uint32_t Mode)
 Set SPI operation mode to Master or Slave.
__STATIC_INLINE uint32_t LL_SPI_GetMode (const SPI_TypeDef *SPIx)
 Get SPI operation mode (Master or Slave)
__STATIC_INLINE void LL_SPI_SetStandard (SPI_TypeDef *SPIx, uint32_t Standard)
 Set serial protocol used.
__STATIC_INLINE uint32_t LL_SPI_GetStandard (const SPI_TypeDef *SPIx)
 Get serial protocol used.
__STATIC_INLINE void LL_SPI_SetClockPhase (SPI_TypeDef *SPIx, uint32_t ClockPhase)
 Set clock phase.
__STATIC_INLINE uint32_t LL_SPI_GetClockPhase (const SPI_TypeDef *SPIx)
 Get clock phase.
__STATIC_INLINE void LL_SPI_SetClockPolarity (SPI_TypeDef *SPIx, uint32_t ClockPolarity)
 Set clock polarity.
__STATIC_INLINE uint32_t LL_SPI_GetClockPolarity (const SPI_TypeDef *SPIx)
 Get clock polarity.
__STATIC_INLINE void LL_SPI_SetBaudRatePrescaler (SPI_TypeDef *SPIx, uint32_t BaudRate)
 Set baud rate prescaler.
__STATIC_INLINE uint32_t LL_SPI_GetBaudRatePrescaler (const SPI_TypeDef *SPIx)
 Get baud rate prescaler.
__STATIC_INLINE void LL_SPI_SetTransferBitOrder (SPI_TypeDef *SPIx, uint32_t BitOrder)
 Set transfer bit order.
__STATIC_INLINE uint32_t LL_SPI_GetTransferBitOrder (const SPI_TypeDef *SPIx)
 Get transfer bit order.
__STATIC_INLINE void LL_SPI_SetTransferDirection (SPI_TypeDef *SPIx, uint32_t TransferDirection)
 Set transfer direction mode.
__STATIC_INLINE uint32_t LL_SPI_GetTransferDirection (const SPI_TypeDef *SPIx)
 Get transfer direction mode.
__STATIC_INLINE void LL_SPI_SetDataWidth (SPI_TypeDef *SPIx, uint32_t DataWidth)
 Set frame data width.
__STATIC_INLINE uint32_t LL_SPI_GetDataWidth (const SPI_TypeDef *SPIx)
 Get frame data width.
__STATIC_INLINE void LL_SPI_SetRxFIFOThreshold (SPI_TypeDef *SPIx, uint32_t Threshold)
 Set threshold of RXFIFO that triggers an RXNE event.
__STATIC_INLINE uint32_t LL_SPI_GetRxFIFOThreshold (const SPI_TypeDef *SPIx)
 Get threshold of RXFIFO that triggers an RXNE event.

Function Documentation

__STATIC_INLINE void LL_SPI_Disable ( SPI_TypeDef *  SPIx)

Disable SPI peripheral.

Note:
When disabling the SPI, follow the procedure described in the Reference Manual.
Reference Manual to LL API cross reference:
CR1 SPE LL_SPI_Disable
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 383 of file stm32g4xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_Enable ( SPI_TypeDef *  SPIx)

Enable SPI peripheral.

Reference Manual to LL API cross reference:
CR1 SPE LL_SPI_Enable
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 371 of file stm32g4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetBaudRatePrescaler ( const SPI_TypeDef *  SPIx)

Get baud rate prescaler.

Reference Manual to LL API cross reference:
CR1 BR LL_SPI_GetBaudRatePrescaler
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 550 of file stm32g4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetClockPhase ( const SPI_TypeDef *  SPIx)

Get clock phase.

Reference Manual to LL API cross reference:
CR1 CPHA LL_SPI_GetClockPhase
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 481 of file stm32g4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetClockPolarity ( const SPI_TypeDef *  SPIx)

Get clock polarity.

Reference Manual to LL API cross reference:
CR1 CPOL LL_SPI_GetClockPolarity
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 510 of file stm32g4xx_ll_spi.h.