STM32H735xx 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 (SPI_TypeDef *SPIx)
 Check if SPI peripheral is enabled.
__STATIC_INLINE void LL_SPI_EnableIOSwap (SPI_TypeDef *SPIx)
 Swap the MOSI and MISO pin.
__STATIC_INLINE void LL_SPI_DisableIOSwap (SPI_TypeDef *SPIx)
 Restore default function for MOSI and MISO pin.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledIOSwap (SPI_TypeDef *SPIx)
 Check if MOSI and MISO pin are swapped.
__STATIC_INLINE void LL_SPI_EnableGPIOControl (SPI_TypeDef *SPIx)
 Enable GPIO control.
__STATIC_INLINE void LL_SPI_DisableGPIOControl (SPI_TypeDef *SPIx)
 Disable GPIO control.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledGPIOControl (SPI_TypeDef *SPIx)
 Check if GPIO control is active.
__STATIC_INLINE void LL_SPI_SetMode (SPI_TypeDef *SPIx, uint32_t Mode)
 Set SPI Mode to Master or Slave.
__STATIC_INLINE uint32_t LL_SPI_GetMode (SPI_TypeDef *SPIx)
 Get SPI Mode (Master or Slave)
__STATIC_INLINE void LL_SPI_SetMasterSSIdleness (SPI_TypeDef *SPIx, uint32_t MasterSSIdleness)
 Configure the Idleness applied by master between active edge of SS and first send data.
__STATIC_INLINE uint32_t LL_SPI_GetMasterSSIdleness (SPI_TypeDef *SPIx)
 Get the configured Idleness applied by master.
__STATIC_INLINE void LL_SPI_SetInterDataIdleness (SPI_TypeDef *SPIx, uint32_t MasterInterDataIdleness)
 Configure the idleness applied by master between data frame.
__STATIC_INLINE uint32_t LL_SPI_GetInterDataIdleness (SPI_TypeDef *SPIx)
 Get the configured inter data idleness.
__STATIC_INLINE void LL_SPI_SetTransferSize (SPI_TypeDef *SPIx, uint32_t Count)
 Set transfer size.
__STATIC_INLINE uint32_t LL_SPI_GetTransferSize (SPI_TypeDef *SPIx)
 Get transfer size.
__STATIC_INLINE void LL_SPI_SetReloadSize (SPI_TypeDef *SPIx, uint32_t Count)
 Set reload transfer size.
__STATIC_INLINE uint32_t LL_SPI_GetReloadSize (SPI_TypeDef *SPIx)
 Get reload transfer size.
__STATIC_INLINE void LL_SPI_EnableIOLock (SPI_TypeDef *SPIx)
 Lock the AF configuration of associated IOs.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledIOLock (SPI_TypeDef *SPIx)
 Check if the AF configuration is locked.
__STATIC_INLINE void LL_SPI_SetTxCRCInitPattern (SPI_TypeDef *SPIx, uint32_t TXCRCInitAll)
 Set Tx CRC Initialization Pattern.
__STATIC_INLINE uint32_t LL_SPI_GetTxCRCInitPattern (SPI_TypeDef *SPIx)
 Get Tx CRC Initialization Pattern.
__STATIC_INLINE void LL_SPI_SetRxCRCInitPattern (SPI_TypeDef *SPIx, uint32_t RXCRCInitAll)
 Set Rx CRC Initialization Pattern.
__STATIC_INLINE uint32_t LL_SPI_GetRxCRCInitPattern (SPI_TypeDef *SPIx)
 Get Rx CRC Initialization Pattern.
__STATIC_INLINE void LL_SPI_SetInternalSSLevel (SPI_TypeDef *SPIx, uint32_t SSLevel)
 Set internal SS input level ignoring what comes from PIN.
__STATIC_INLINE uint32_t LL_SPI_GetInternalSSLevel (SPI_TypeDef *SPIx)
 Get internal SS input level.
__STATIC_INLINE void LL_SPI_EnableFullSizeCRC (SPI_TypeDef *SPIx)
 Enable CRC computation on 33/17 bits.
__STATIC_INLINE void LL_SPI_DisableFullSizeCRC (SPI_TypeDef *SPIx)
 Disable CRC computation on 33/17 bits.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledFullSizeCRC (SPI_TypeDef *SPIx)
 Check if Enable CRC computation on 33/17 bits is enabled.
__STATIC_INLINE void LL_SPI_SuspendMasterTransfer (SPI_TypeDef *SPIx)
 Suspend an ongoing transfer for Master configuration.
__STATIC_INLINE void LL_SPI_StartMasterTransfer (SPI_TypeDef *SPIx)
 Start effective transfer on wire for Master configuration.
__STATIC_INLINE uint32_t LL_SPI_IsActiveMasterTransfer (SPI_TypeDef *SPIx)
 Check if there is an unfinished master transfer.
__STATIC_INLINE void LL_SPI_EnableMasterRxAutoSuspend (SPI_TypeDef *SPIx)
 Enable Master Rx auto suspend in case of overrun.
__STATIC_INLINE void LL_SPI_DisableMasterRxAutoSuspend (SPI_TypeDef *SPIx)
 Disable Master Rx auto suspend in case of overrun.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledMasterRxAutoSuspend (SPI_TypeDef *SPIx)
 Check if Master Rx auto suspend is activated.
__STATIC_INLINE void LL_SPI_SetUDRConfiguration (SPI_TypeDef *SPIx, uint32_t UDRConfig)
 Set Underrun behavior.
__STATIC_INLINE uint32_t LL_SPI_GetUDRConfiguration (SPI_TypeDef *SPIx)
 Get Underrun behavior.
__STATIC_INLINE void LL_SPI_SetUDRDetection (SPI_TypeDef *SPIx, uint32_t UDRDetection)
 Set Underrun Detection method.
__STATIC_INLINE uint32_t LL_SPI_GetUDRDetection (SPI_TypeDef *SPIx)
 Get Underrun Detection method.
__STATIC_INLINE void LL_SPI_SetStandard (SPI_TypeDef *SPIx, uint32_t Standard)
 Set Serial protocol used.
__STATIC_INLINE uint32_t LL_SPI_GetStandard (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 (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 (SPI_TypeDef *SPIx)
 Get Clock polarity.
__STATIC_INLINE void LL_SPI_SetNSSPolarity (SPI_TypeDef *SPIx, uint32_t NSSPolarity)
 Set NSS polarity.
__STATIC_INLINE uint32_t LL_SPI_GetNSSPolarity (SPI_TypeDef *SPIx)
 Get NSS polarity.
__STATIC_INLINE void LL_SPI_SetBaudRatePrescaler (SPI_TypeDef *SPIx, uint32_t Baudrate)
 Set Baudrate Prescaler.
__STATIC_INLINE uint32_t LL_SPI_GetBaudRatePrescaler (SPI_TypeDef *SPIx)
 Get Baudrate Prescaler.
__STATIC_INLINE void LL_SPI_SetTransferBitOrder (SPI_TypeDef *SPIx, uint32_t BitOrder)
 Set Transfer Bit Order.
__STATIC_INLINE uint32_t LL_SPI_GetTransferBitOrder (SPI_TypeDef *SPIx)
 Get Transfer Bit Order.
__STATIC_INLINE void LL_SPI_SetTransferDirection (SPI_TypeDef *SPIx, uint32_t TransferDirection)
 Set Transfer Mode.
__STATIC_INLINE uint32_t LL_SPI_GetTransferDirection (SPI_TypeDef *SPIx)
 Get Transfer Mode.
__STATIC_INLINE void LL_SPI_SetHalfDuplexDirection (SPI_TypeDef *SPIx, uint32_t HalfDuplexDirection)
 Set direction for Half-Duplex Mode.
__STATIC_INLINE uint32_t LL_SPI_GetHalfDuplexDirection (SPI_TypeDef *SPIx)
 Get direction for Half-Duplex Mode.
__STATIC_INLINE void LL_SPI_SetDataWidth (SPI_TypeDef *SPIx, uint32_t DataWidth)
 Set Frame Data Size.
__STATIC_INLINE uint32_t LL_SPI_GetDataWidth (SPI_TypeDef *SPIx)
 Get Frame Data Size.
__STATIC_INLINE void LL_SPI_SetFIFOThreshold (SPI_TypeDef *SPIx, uint32_t Threshold)
 Set threshold of FIFO that triggers a transfer event.
__STATIC_INLINE uint32_t LL_SPI_GetFIFOThreshold (SPI_TypeDef *SPIx)
 Get threshold of FIFO that triggers a transfer event.
__STATIC_INLINE void LL_SPI_EnableCRC (SPI_TypeDef *SPIx)
 Enable CRC.
__STATIC_INLINE void LL_SPI_DisableCRC (SPI_TypeDef *SPIx)
 Disable CRC.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledCRC (SPI_TypeDef *SPIx)
 Check if CRC is enabled.
__STATIC_INLINE void LL_SPI_SetCRCWidth (SPI_TypeDef *SPIx, uint32_t CRCLength)
 Set CRC Length.
__STATIC_INLINE uint32_t LL_SPI_GetCRCWidth (SPI_TypeDef *SPIx)
 Get CRC Length.
__STATIC_INLINE void LL_SPI_SetNSSMode (SPI_TypeDef *SPIx, uint32_t NSS)
 Set NSS Mode.
__STATIC_INLINE uint32_t LL_SPI_GetNSSMode (SPI_TypeDef *SPIx)
 Set NSS Mode.
__STATIC_INLINE void LL_SPI_EnableNSSPulseMgt (SPI_TypeDef *SPIx)
 Enable NSS pulse mgt.
__STATIC_INLINE void LL_SPI_DisableNSSPulseMgt (SPI_TypeDef *SPIx)
 Disable NSS pulse mgt.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledNSSPulse (SPI_TypeDef *SPIx)
 Check if NSS pulse is enabled.

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 567 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_DisableCRC ( SPI_TypeDef *  SPIx)

Disable CRC.

Reference Manual to LL API cross reference:
CFG1 CRCEN LL_SPI_DisableCRC
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1516 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_DisableFullSizeCRC ( SPI_TypeDef *  SPIx)

Disable CRC computation on 33/17 bits.

Reference Manual to LL API cross reference:
CR1 CRC33_17 LL_SPI_DisableFullSizeCRC
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 964 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_DisableGPIOControl ( SPI_TypeDef *  SPIx)

Disable GPIO control.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 AFCNTR LL_SPI_DisableGPIOControl
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 637 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_DisableGPIOControl().

__STATIC_INLINE void LL_SPI_DisableIOSwap ( SPI_TypeDef *  SPIx)

Restore default function for MOSI and MISO pin.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 IOSWP LL_SPI_DisableIOSwap
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 602 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_DisableIOSwap().

__STATIC_INLINE void LL_SPI_DisableMasterRxAutoSuspend ( SPI_TypeDef *  SPIx)

Disable Master Rx auto suspend in case of overrun.

Reference Manual to LL API cross reference:
CR1 MASRX LL_SPI_DisableMasterRxAutoSuspend
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1030 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_DisableNSSPulseMgt ( SPI_TypeDef *  SPIx)

Disable NSS pulse mgt.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 SSOM LL_SPI_DisableNSSPulseMgt
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1668 of file stm32h7xx_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 555 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableCRC ( SPI_TypeDef *  SPIx)

Enable CRC.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG1 CRCEN LL_SPI_EnableCRC
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1505 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableFullSizeCRC ( SPI_TypeDef *  SPIx)

Enable CRC computation on 33/17 bits.

Reference Manual to LL API cross reference:
CR1 CRC33_17 LL_SPI_EnableFullSizeCRC
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 953 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableGPIOControl ( SPI_TypeDef *  SPIx)

Enable GPIO control.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 AFCNTR LL_SPI_EnableGPIOControl
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 625 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_EnableGPIOControl().

__STATIC_INLINE void LL_SPI_EnableIOLock ( SPI_TypeDef *  SPIx)

Lock the AF configuration of associated IOs.

Note:
Once this bit is set, the AF configuration remains locked until a hardware reset occurs. the reset of the IOLock bit is done by hardware. for that, LL_SPI_DisableIOLock can not exist.
Reference Manual to LL API cross reference:
CR1 IOLOCK LL_SPI_EnableIOLock
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 849 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_EnableIOLock().

__STATIC_INLINE void LL_SPI_EnableIOSwap ( SPI_TypeDef *  SPIx)

Swap the MOSI and MISO pin.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 IOSWP LL_SPI_EnableIOSwap
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 590 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_EnableIOSwap().

__STATIC_INLINE void LL_SPI_EnableMasterRxAutoSuspend ( SPI_TypeDef *  SPIx)

Enable Master Rx auto suspend in case of overrun.

Reference Manual to LL API cross reference:
CR1 MASRX LL_SPI_EnableMasterRxAutoSuspend
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1019 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableNSSPulseMgt ( SPI_TypeDef *  SPIx)

Enable NSS pulse mgt.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 SSOM LL_SPI_EnableNSSPulseMgt
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 1655 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetBaudRatePrescaler ( SPI_TypeDef *  SPIx)

Get Baudrate Prescaler.

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

Definition at line 1257 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetClockPhase ( SPI_TypeDef *  SPIx)

Get Clock phase.

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

Definition at line 1158 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetClockPolarity ( SPI_TypeDef *  SPIx)

Get Clock polarity.

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

Definition at line 1187 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetCRCWidth ( SPI_TypeDef *  SPIx)
__STATIC_INLINE uint32_t LL_SPI_GetDataWidth ( SPI_TypeDef *  SPIx)
__STATIC_INLINE uint32_t LL_SPI_GetFIFOThreshold ( SPI_TypeDef *  SPIx)

Get threshold of FIFO that triggers a transfer event.

Reference Manual to LL API cross reference:
CFG1 FTHLV LL_SPI_GetFIFOThreshold
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1493 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_GetFIFOThreshold().

__STATIC_INLINE uint32_t LL_SPI_GetHalfDuplexDirection ( SPI_TypeDef *  SPIx)

Get direction for Half-Duplex Mode.

Note:
In master mode the MOSI pin is used and in slave mode the MISO pin is used for Half-Duplex.
Reference Manual to LL API cross reference:
CR1 HDDIR LL_SPI_GetHalfDuplexDirection
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1355 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetInterDataIdleness ( SPI_TypeDef *  SPIx)
__STATIC_INLINE uint32_t LL_SPI_GetInternalSSLevel ( SPI_TypeDef *  SPIx)

Get internal SS input level.

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

Definition at line 942 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetMasterSSIdleness ( SPI_TypeDef *  SPIx)
__STATIC_INLINE uint32_t LL_SPI_GetMode ( SPI_TypeDef *  SPIx)

Get SPI Mode (Master or Slave)

Reference Manual to LL API cross reference:
CFG2 MASTER LL_SPI_GetMode
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 676 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetNSSMode ( SPI_TypeDef *  SPIx)

Set NSS Mode.

Reference Manual to LL API cross reference:
CFG2 SSM LL_SPI_GetNSSMode
CFG2 SSOE LL_SPI_GetNSSMode
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1642 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetNSSPolarity ( SPI_TypeDef *  SPIx)

Get NSS polarity.

Reference Manual to LL API cross reference:
CFG2 SSIOP LL_SPI_GetNSSPolarity
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1216 of file stm32h7xx_ll_spi.h.

Referenced by LL_SPI_Init().

__STATIC_INLINE uint32_t LL_SPI_GetReloadSize ( SPI_TypeDef *  SPIx)

Get reload transfer size.

Note:
Count is the number of frame to be transferred
Reference Manual to LL API cross reference:
CR2 TSER LL_SPI_GetReloadSize
Parameters:
SPIxSPI Instance
Return values:
0..0xFFFF

Definition at line 836 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetRxCRCInitPattern ( SPI_TypeDef *  SPIx)

Get Rx CRC Initialization Pattern.

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

Definition at line 914 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetStandard ( SPI_TypeDef *  SPIx)

Get Serial protocol used.

Reference Manual to LL API cross reference:
CFG2 SP LL_SPI_GetStandard
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1129 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetTransferBitOrder ( SPI_TypeDef *  SPIx)

Get Transfer Bit Order.

Reference Manual to LL API cross reference:
CFG2 LSBFRST LL_SPI_GetTransferBitOrder
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1286 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_GetTransferBitOrder().

__STATIC_INLINE uint32_t LL_SPI_GetTransferDirection ( SPI_TypeDef *  SPIx)

Get Transfer Mode.

Reference Manual to LL API cross reference:
CR1 HDDIR LL_SPI_GetTransferDirection
CFG2 COMM LL_SPI_GetTransferDirection
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1324 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetTransferSize ( SPI_TypeDef *  SPIx)

Get transfer size.

Note:
Count is the number of frame to be transferred
Reference Manual to LL API cross reference:
CR2 TSIZE LL_SPI_GetTransferSize
Parameters:
SPIxSPI Instance
Return values:
0..0xFFFF

Definition at line 811 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetTxCRCInitPattern ( SPI_TypeDef *  SPIx)

Get Tx CRC Initialization Pattern.

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

Definition at line 887 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetUDRConfiguration ( SPI_TypeDef *  SPIx)

Get Underrun behavior.

Reference Manual to LL API cross reference:
CFG1 UDRCFG LL_SPI_GetUDRConfiguration
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1071 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetUDRDetection ( SPI_TypeDef *  SPIx)

Get Underrun Detection method.

Reference Manual to LL API cross reference:
CFG1 UDRDET LL_SPI_GetUDRDetection
Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1101 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsActiveMasterTransfer ( SPI_TypeDef *  SPIx)

Check if there is an unfinished master transfer.

Reference Manual to LL API cross reference:
CR1 CSTART LL_SPI_IsActiveMasterTransfer
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 1008 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_IsActiveTransfer().

__STATIC_INLINE uint32_t LL_SPI_IsEnabled ( SPI_TypeDef *  SPIx)

Check if SPI peripheral is enabled.

Reference Manual to LL API cross reference:
CR1 SPE LL_SPI_IsEnabled
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 578 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_Init(), and LL_SPI_Init().

__STATIC_INLINE uint32_t LL_SPI_IsEnabledCRC ( SPI_TypeDef *  SPIx)

Check if CRC is enabled.

Reference Manual to LL API cross reference:
CFG1 CRCEN LL_SPI_IsEnabledCRC
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0).

Definition at line 1527 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsEnabledFullSizeCRC ( SPI_TypeDef *  SPIx)

Check if Enable CRC computation on 33/17 bits is enabled.

Reference Manual to LL API cross reference:
CR1 CRC33_17 LL_SPI_IsEnabledFullSizeCRC
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 975 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsEnabledGPIOControl ( SPI_TypeDef *  SPIx)

Check if GPIO control is active.

Reference Manual to LL API cross reference:
CFG2 AFCNTR LL_SPI_IsEnabledGPIOControl
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 648 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_IsEnabledGPIOControl().

__STATIC_INLINE uint32_t LL_SPI_IsEnabledIOLock ( SPI_TypeDef *  SPIx)

Check if the AF configuration is locked.

Reference Manual to LL API cross reference:
CR1 IOLOCK LL_SPI_IsEnabledIOLock
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 860 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_IsEnabledIOLock().

__STATIC_INLINE uint32_t LL_SPI_IsEnabledIOSwap ( SPI_TypeDef *  SPIx)

Check if MOSI and MISO pin are swapped.

Reference Manual to LL API cross reference:
CFG2 IOSWP LL_SPI_IsEnabledIOSwap
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 613 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_IsEnabledIOSwap().

__STATIC_INLINE uint32_t LL_SPI_IsEnabledMasterRxAutoSuspend ( SPI_TypeDef *  SPIx)

Check if Master Rx auto suspend is activated.

Reference Manual to LL API cross reference:
CR1 MASRX LL_SPI_IsEnabledMasterRxAutoSuspend
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 1041 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsEnabledNSSPulse ( SPI_TypeDef *  SPIx)

Check if NSS pulse is enabled.

Reference Manual to LL API cross reference:
CFG2 SSOM LL_SPI_IsEnabledNSSPulse
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0)

Definition at line 1679 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetBaudRatePrescaler ( SPI_TypeDef *  SPIx,
uint32_t  Baudrate 
)

Set Baudrate Prescaler.

Note:
This configuration can not be changed when SPI is enabled. SPI BaudRate = fPCLK/Pescaler.
Reference Manual to LL API cross reference:
CFG1 MBR LL_SPI_SetBaudRatePrescaler
Parameters:
SPIxSPI Instance
BaudrateThis parameter can be one of the following values:
Return values:
None

Definition at line 1238 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetClockPhase ( SPI_TypeDef *  SPIx,
uint32_t  ClockPhase 
)

Set Clock phase.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 CPHA LL_SPI_SetClockPhase
Parameters:
SPIxSPI Instance
ClockPhaseThis parameter can be one of the following values:
Return values:
None

Definition at line 1145 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetClockPolarity ( SPI_TypeDef *  SPIx,
uint32_t  ClockPolarity 
)

Set Clock polarity.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 CPOL LL_SPI_SetClockPolarity
Parameters:
SPIxSPI Instance
ClockPolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 1174 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetCRCWidth ( SPI_TypeDef *  SPIx,
uint32_t  CRCLength 
)

Set CRC Length.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG1 CRCSIZE LL_SPI_SetCRCWidth
Parameters:
SPIxSPI Instance
CRCLengthThis parameter can be one of the following values:
Return values:
None

Definition at line 1569 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetDataWidth ( SPI_TypeDef *  SPIx,
uint32_t  DataWidth 
)
__STATIC_INLINE void LL_SPI_SetFIFOThreshold ( SPI_TypeDef *  SPIx,
uint32_t  Threshold 
)

Set threshold of FIFO that triggers a transfer event.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG1 FTHLV LL_SPI_SetFIFOThreshold
Parameters:
SPIxSPI Instance
ThresholdThis parameter can be one of the following values:
Return values:
None

Definition at line 1466 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_SetFIFOThreshold().

__STATIC_INLINE void LL_SPI_SetHalfDuplexDirection ( SPI_TypeDef *  SPIx,
uint32_t  HalfDuplexDirection 
)

Set direction for Half-Duplex Mode.

Note:
In master mode the MOSI pin is used and in slave mode the MISO pin is used for Half-Duplex.
Reference Manual to LL API cross reference:
CR1 HDDIR LL_SPI_SetHalfDuplexDirection
Parameters:
SPIxSPI Instance
HalfDuplexDirectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1341 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetInterDataIdleness ( SPI_TypeDef *  SPIx,
uint32_t  MasterInterDataIdleness 
)

Configure the idleness applied by master between data frame.

Reference Manual to LL API cross reference:
CFG2 MIDI LL_SPI_SetInterDataIdleness
Parameters:
SPIxSPI Instance
MasterInterDataIdlenessThis parameter can be one of the following values:
Return values:
None

Definition at line 759 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetInternalSSLevel ( SPI_TypeDef *  SPIx,
uint32_t  SSLevel 
)

Set internal SS input level ignoring what comes from PIN.

Note:
This configuration has effect only with config LL_SPI_NSS_SOFT
Reference Manual to LL API cross reference:
CR1 SSI LL_SPI_SetInternalSSLevel
Parameters:
SPIxSPI Instance
SSLevelThis parameter can be one of the following values:
Return values:
None

Definition at line 929 of file stm32h7xx_ll_spi.h.

Referenced by LL_SPI_Init().

__STATIC_INLINE void LL_SPI_SetMasterSSIdleness ( SPI_TypeDef *  SPIx,
uint32_t  MasterSSIdleness 
)

Configure the Idleness applied by master between active edge of SS and first send data.

Reference Manual to LL API cross reference:
CFG2 MSSI LL_SPI_SetMasterSSIdleness
Parameters:
SPIxSPI Instance
MasterSSIdlenessThis parameter can be one of the following values:
Return values:
None

Definition at line 704 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetMode ( SPI_TypeDef *  SPIx,
uint32_t  Mode 
)

Set SPI Mode to Master or Slave.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 MASTER LL_SPI_SetMode
Parameters:
SPIxSPI Instance
ModeThis parameter can be one of the following values:
Return values:
None

Definition at line 663 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetNSSMode ( SPI_TypeDef *  SPIx,
uint32_t  NSS 
)

Set NSS Mode.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 SSM LL_SPI_SetNSSMode
CFG2 SSOE LL_SPI_SetNSSMode
Parameters:
SPIxSPI Instance
NSSThis parameter can be one of the following values:
Return values:
None

Definition at line 1627 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetNSSPolarity ( SPI_TypeDef *  SPIx,
uint32_t  NSSPolarity 
)

Set NSS polarity.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 SSIOP LL_SPI_SetNSSPolarity
Parameters:
SPIxSPI Instance
NSSPolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 1203 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetReloadSize ( SPI_TypeDef *  SPIx,
uint32_t  Count 
)

Set reload transfer size.

Note:
Count is the number of frame to be transferred
Reference Manual to LL API cross reference:
CR2 TSER LL_SPI_SetReloadSize
Parameters:
SPIxSPI Instance
Count0..0xFFFF
Return values:
None

Definition at line 824 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetRxCRCInitPattern ( SPI_TypeDef *  SPIx,
uint32_t  RXCRCInitAll 
)

Set Rx CRC Initialization Pattern.

Reference Manual to LL API cross reference:
CR1 RCRCINI LL_SPI_SetRxCRCInitPattern
Parameters:
SPIxSPI Instance
RXCRCInitAllThis parameter can be one of the following values:
Return values:
None

Definition at line 901 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetStandard ( SPI_TypeDef *  SPIx,
uint32_t  Standard 
)

Set Serial protocol used.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG2 SP LL_SPI_SetStandard
Parameters:
SPIxSPI Instance
StandardThis parameter can be one of the following values:
Return values:
None

Definition at line 1116 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetTransferBitOrder ( SPI_TypeDef *  SPIx,
uint32_t  BitOrder 
)

Set Transfer Bit Order.

Note:
This configuration can not be changed when SPI is enabled. This bit is not used in SPI TI mode.
Reference Manual to LL API cross reference:
CFG2 LSBFRST LL_SPI_SetTransferBitOrder
Parameters:
SPIxSPI Instance
BitOrderThis parameter can be one of the following values:
Return values:
None

Definition at line 1273 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_SetTransferBitOrder().

__STATIC_INLINE void LL_SPI_SetTransferDirection ( SPI_TypeDef *  SPIx,
uint32_t  TransferDirection 
)

Set Transfer Mode.

Note:
This configuration can not be changed when SPI is enabled except for half duplex direction using LL_SPI_SetHalfDuplexDirection.
Reference Manual to LL API cross reference:
CR1 HDDIR LL_SPI_SetTransferDirection
CFG2 COMM LL_SPI_SetTransferDirection
Parameters:
SPIxSPI Instance
TransferDirectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1306 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetTransferSize ( SPI_TypeDef *  SPIx,
uint32_t  Count 
)

Set transfer size.

Note:
Count is the number of frame to be transferred
Reference Manual to LL API cross reference:
CR2 TSIZE LL_SPI_SetTransferSize
Parameters:
SPIxSPI Instance
Count0..0xFFFF
Return values:
None

Definition at line 799 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetTxCRCInitPattern ( SPI_TypeDef *  SPIx,
uint32_t  TXCRCInitAll 
)

Set Tx CRC Initialization Pattern.

Reference Manual to LL API cross reference:
CR1 TCRCINI LL_SPI_SetTxCRCInitPattern
Parameters:
SPIxSPI Instance
TXCRCInitAllThis parameter can be one of the following values:
Return values:
None

Definition at line 874 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetUDRConfiguration ( SPI_TypeDef *  SPIx,
uint32_t  UDRConfig 
)

Set Underrun behavior.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG1 UDRCFG LL_SPI_SetUDRConfiguration
Parameters:
SPIxSPI Instance
UDRConfigThis parameter can be one of the following values:
Return values:
None

Definition at line 1057 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetUDRDetection ( SPI_TypeDef *  SPIx,
uint32_t  UDRDetection 
)

Set Underrun Detection method.

Note:
This configuration can not be changed when SPI is enabled.
Reference Manual to LL API cross reference:
CFG1 UDRDET LL_SPI_SetUDRDetection
Parameters:
SPIxSPI Instance
UDRDetectionThis parameter can be one of the following values:
Return values:
None

Definition at line 1087 of file stm32h7xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_StartMasterTransfer ( SPI_TypeDef *  SPIx)

Start effective transfer on wire for Master configuration.

Reference Manual to LL API cross reference:
CR1 CSTART LL_SPI_StartMasterTransfer
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 997 of file stm32h7xx_ll_spi.h.

Referenced by LL_I2S_StartTransfer().

__STATIC_INLINE void LL_SPI_SuspendMasterTransfer ( SPI_TypeDef *  SPIx)

Suspend an ongoing transfer for Master configuration.

Reference Manual to LL API cross reference:
CR1 CSUSP LL_SPI_SuspendMasterTransfer
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 986 of file stm32h7xx_ll_spi.h.