Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

NSS_Management

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 mgt.
__STATIC_INLINE void LL_SPI_DisableNSSPulseMgt (SPI_TypeDef *SPIx)
 Disable NSS pulse mgt.
__STATIC_INLINE void 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 mgt.

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 849 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE void LL_SPI_EnableNSSPulseMgt ( SPI_TypeDef *  SPIx )

Enable NSS pulse mgt.

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 837 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 823 of file stm32l4xx_ll_spi.h.

__STATIC_INLINE void 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:
None

Definition at line 861 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 807 of file stm32l4xx_ll_spi.h.