STM32L4xx_HAL_Driver  1.14.0
Peripheral Control methods

SWPMI control functions. More...

Functions

HAL_SWPMI_StateTypeDef HAL_SWPMI_GetState (SWPMI_HandleTypeDef *hswpmi)
 Return the SWPMI handle state. More...
 
uint32_t HAL_SWPMI_GetError (SWPMI_HandleTypeDef *hswpmi)
 Return the SWPMI error code. More...
 

Detailed Description

SWPMI control functions.

 ===============================================================================
                      ##### Peripheral Control methods #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to control the SWPMI.
     (+) HAL_SWPMI_GetState() API is helpful to check in run-time the state of the SWPMI peripheral
     (+) HAL_SWPMI_GetError() API is helpful to check in run-time the error state of the SWPMI peripheral

Function Documentation

◆ HAL_SWPMI_GetError()

uint32_t HAL_SWPMI_GetError ( SWPMI_HandleTypeDef hswpmi)

Return the SWPMI error code.

Parameters
hswpmi: pointer to a SWPMI_HandleTypeDef structure that contains the configuration information for the specified SWPMI.
Return values
SWPMIError Code

Definition at line 1560 of file stm32l4xx_hal_swpmi.c.

1561 {
1562  return hswpmi->ErrorCode;
1563 }

◆ HAL_SWPMI_GetState()

HAL_SWPMI_StateTypeDef HAL_SWPMI_GetState ( SWPMI_HandleTypeDef hswpmi)

Return the SWPMI handle state.

Parameters
hswpmiSWPMI handle
Return values
HALstate

Definition at line 1548 of file stm32l4xx_hal_swpmi.c.

1549 {
1550  /* Return SWPMI handle state */
1551  return hswpmi->State;
1552 }