TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

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

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization 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 99 of file stm32l4xx_ll_swpmi.c.

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 121 of file stm32l4xx_ll_swpmi.c.

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 161 of file stm32l4xx_ll_swpmi.c.