STM32L486xx HAL User Manual
Functions
Initialization and de-initialization functions
SWPMI Exported Functions

Functions

ErrorStatus LL_SWPMI_DeInit (SWPMI_TypeDef *SWPMIx)
 De-initialize the SWPMI peripheral registers to their default reset values.
ErrorStatus LL_SWPMI_Init (SWPMI_TypeDef *SWPMIx, LL_SWPMI_InitTypeDef *SWPMI_InitStruct)
 Initialize the SWPMI peripheral according to the specified parameters in the SWPMI_InitStruct.
void LL_SWPMI_StructInit (LL_SWPMI_InitTypeDef *SWPMI_InitStruct)
 Set each LL_SWPMI_InitTypeDef field to default value.

Function Documentation

ErrorStatus LL_SWPMI_DeInit ( SWPMI_TypeDef *  SWPMIx)

De-initialize the SWPMI peripheral registers to their default reset values.

Parameters:
SWPMIxSWPMI Instance
Return values:
AnErrorStatus enumeration value
  • SUCCESS: SWPMI registers are de-initialized
  • ERROR: Not applicable

Definition at line 97 of file stm32l4xx_ll_swpmi.c.

References assert_param, LL_APB1_GRP2_ForceReset(), LL_APB1_GRP2_PERIPH_SWPMI1, and LL_APB1_GRP2_ReleaseReset().

ErrorStatus LL_SWPMI_Init ( SWPMI_TypeDef *  SWPMIx,
LL_SWPMI_InitTypeDef SWPMI_InitStruct 
)

Initialize the SWPMI peripheral according to the specified parameters in the SWPMI_InitStruct.

Note:
As some bits in SWPMI configuration registers can only be written when the SWPMI is deactivated (SWPMI_CR_SWPACT bit = 0), SWPMI IP should be in deactivated state prior calling this function. Otherwise, ERROR result will be returned.
Parameters:
SWPMIxSWPMI Instance
SWPMI_InitStructpointer to a LL_SWPMI_InitTypeDef structure that contains the configuration information for the SWPMI peripheral.
Return values:
AnErrorStatus enumeration value
  • SUCCESS: SWPMI registers are initialized
  • ERROR: SWPMI registers are not initialized

Definition at line 119 of file stm32l4xx_ll_swpmi.c.

References assert_param, LL_SWPMI_InitTypeDef::BitRatePrescaler, IS_LL_SWPMI_BITRATE_VALUE, IS_LL_SWPMI_SW_BUFFER_RX, IS_LL_SWPMI_SW_BUFFER_TX, IS_LL_SWPMI_VOLTAGE_CLASS, LL_SWPMI_IsActivated(), LL_SWPMI_SetBitRatePrescaler(), LL_SWPMI_SetVoltageClass(), LL_SWPMI_InitTypeDef::RxBufferingMode, LL_SWPMI_InitTypeDef::TxBufferingMode, and LL_SWPMI_InitTypeDef::VoltageClass.

void LL_SWPMI_StructInit ( LL_SWPMI_InitTypeDef SWPMI_InitStruct)

Set each LL_SWPMI_InitTypeDef field to default value.

Parameters:
SWPMI_InitStructpointer to a LL_SWPMI_InitTypeDef structure that contains the configuration information for the SWPMI peripheral.
Return values:
None

Definition at line 159 of file stm32l4xx_ll_swpmi.c.

References LL_SWPMI_InitTypeDef::BitRatePrescaler, LL_SWPMI_SW_BUFFER_RX_SINGLE, LL_SWPMI_SW_BUFFER_TX_SINGLE, LL_SWPMI_VOLTAGE_CLASS_C, LL_SWPMI_InitTypeDef::RxBufferingMode, LL_SWPMI_InitTypeDef::TxBufferingMode, and LL_SWPMI_InitTypeDef::VoltageClass.