TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Slave Select Pin Management

Slave Select Pin Management
[SPI Exported Functions]

Functions

__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)
 Get NSS mode CR1 SSM LL_SPI_GetNSSMode
CR2 SSOE LL_SPI_GetNSSMode.
__STATIC_INLINE void LL_SPI_EnableNSSPulseMgt (SPI_TypeDef *SPIx)
 Enable NSS pulse management.
__STATIC_INLINE void LL_SPI_DisableNSSPulseMgt (SPI_TypeDef *SPIx)
 Disable NSS pulse management.
__STATIC_INLINE uint32_t LL_SPI_IsEnabledNSSPulse (SPI_TypeDef *SPIx)
 Check if NSS pulse is enabled.

Function Documentation

__STATIC_INLINE void LL_SPI_DisableNSSPulseMgt ( SPI_TypeDef *  SPIx )

Disable NSS pulse management.

Note:
This bit should not be changed when communication is ongoing. This bit is not used in SPI TI mode. CR2 NSSP LL_SPI_DisableNSSPulseMgt
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 894 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableNSSPulseMgt ( SPI_TypeDef *  SPIx )

Enable NSS pulse management.

Note:
This bit should not be changed when communication is ongoing. This bit is not used in SPI TI mode. CR2 NSSP LL_SPI_EnableNSSPulseMgt
Parameters:
SPIxSPI Instance
Return values:
None

Definition at line 882 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_GetNSSMode ( SPI_TypeDef *  SPIx )

Get NSS mode CR1 SSM LL_SPI_GetNSSMode
CR2 SSOE LL_SPI_GetNSSMode.

Parameters:
SPIxSPI Instance
Return values:
Returnedvalue can be one of the following values:

  • LL_SPI_NSS_SOFT
  • LL_SPI_NSS_HARD_INPUT
  • LL_SPI_NSS_HARD_OUTPUT

Definition at line 868 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE uint32_t LL_SPI_IsEnabledNSSPulse ( SPI_TypeDef *  SPIx )

Check if NSS pulse is enabled.

Note:
This bit should not be changed when communication is ongoing. This bit is not used in SPI TI mode. CR2 NSSP LL_SPI_IsEnabledNSSPulse
Parameters:
SPIxSPI Instance
Return values:
Stateof bit (1 or 0).

Definition at line 906 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_SetNSSMode ( SPI_TypeDef *  SPIx,
uint32_t  NSS 
)

Set NSS mode.

Note:
LL_SPI_NSS_SOFT Mode is not used in SPI TI mode. CR1 SSM LL_SPI_SetNSSMode
CR2 SSOE LL_SPI_SetNSSMode
Parameters:
SPIxSPI Instance
NSSThis parameter can be one of the following values:

  • LL_SPI_NSS_SOFT
  • LL_SPI_NSS_HARD_INPUT
  • LL_SPI_NSS_HARD_OUTPUT
Return values:
None

Definition at line 852 of file stm32l4xx_ll_spi.h.