STM32L486xx HAL User Manual
Functions
Initialization/de-initialization methods
SWPMI Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_SWPMI_Init (SWPMI_HandleTypeDef *hswpmi)
 Initialize the SWPMI peripheral according to the specified parameters in the SWPMI_InitTypeDef.
HAL_StatusTypeDef HAL_SWPMI_DeInit (SWPMI_HandleTypeDef *hswpmi)
 De-initialize the SWPMI peripheral.
__weak void HAL_SWPMI_MspInit (SWPMI_HandleTypeDef *hswpmi)
 Initialize the SWPMI MSP.
__weak void HAL_SWPMI_MspDeInit (SWPMI_HandleTypeDef *hswpmi)
 DeInitialize the SWPMI MSP.
HAL_StatusTypeDef HAL_SWPMI_RegisterCallback (SWPMI_HandleTypeDef *hswpmi, HAL_SWPMI_CallbackIDTypeDef CallbackID, pSWPMI_CallbackTypeDef pCallback)
 Register a user SWPMI callback to be used instead of the weak predefined callback.
HAL_StatusTypeDef HAL_SWPMI_UnRegisterCallback (SWPMI_HandleTypeDef *hswpmi, HAL_SWPMI_CallbackIDTypeDef CallbackID)
 Unregister a user SWPMI callback.

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
            ##### Initialization and Configuration functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the SWPMI peripheral.
      (+) De-initialize the SWPMI peripheral.


Function Documentation

HAL_StatusTypeDef HAL_SWPMI_DeInit ( SWPMI_HandleTypeDef hswpmi)
HAL_StatusTypeDef HAL_SWPMI_Init ( SWPMI_HandleTypeDef hswpmi)
__weak void HAL_SWPMI_MspDeInit ( SWPMI_HandleTypeDef hswpmi)

DeInitialize the SWPMI MSP.

Parameters:
hswpmiSWPMI handle
Return values:
None

Definition at line 408 of file stm32l4xx_hal_swpmi.c.

Referenced by HAL_SWPMI_DeInit(), and HAL_SWPMI_UnRegisterCallback().

__weak void HAL_SWPMI_MspInit ( SWPMI_HandleTypeDef hswpmi)

Initialize the SWPMI MSP.

Parameters:
hswpmiSWPMI handle
Return values:
None

Definition at line 393 of file stm32l4xx_hal_swpmi.c.

Referenced by HAL_SWPMI_Init(), and HAL_SWPMI_UnRegisterCallback().

HAL_StatusTypeDef HAL_SWPMI_RegisterCallback ( SWPMI_HandleTypeDef hswpmi,
HAL_SWPMI_CallbackIDTypeDef  CallbackID,
pSWPMI_CallbackTypeDef  pCallback 
)

Register a user SWPMI callback to be used instead of the weak predefined callback.

Parameters:
hswpmiSWPMI handle.
CallbackIDID of the callback to be registered. This parameter can be one of the following values:
pCallbackpointer to the callback function.
Return values:
HALstatus.

Definition at line 435 of file stm32l4xx_hal_swpmi.c.

References __SWPMI_HandleTypeDef::ErrorCallback, __SWPMI_HandleTypeDef::ErrorCode, HAL_SWPMI_ERROR_CB_ID, HAL_SWPMI_ERROR_INVALID_CALLBACK, HAL_SWPMI_MSPDEINIT_CB_ID, HAL_SWPMI_MSPINIT_CB_ID, HAL_SWPMI_RX_COMPLETE_CB_ID, HAL_SWPMI_RX_HALFCOMPLETE_CB_ID, HAL_SWPMI_STATE_READY, HAL_SWPMI_STATE_RESET, HAL_SWPMI_TX_COMPLETE_CB_ID, HAL_SWPMI_TX_HALFCOMPLETE_CB_ID, __SWPMI_HandleTypeDef::MspDeInitCallback, __SWPMI_HandleTypeDef::MspInitCallback, __SWPMI_HandleTypeDef::RxCpltCallback, __SWPMI_HandleTypeDef::RxHalfCpltCallback, __SWPMI_HandleTypeDef::State, __SWPMI_HandleTypeDef::TxCpltCallback, and __SWPMI_HandleTypeDef::TxHalfCpltCallback.

HAL_StatusTypeDef HAL_SWPMI_UnRegisterCallback ( SWPMI_HandleTypeDef hswpmi,
HAL_SWPMI_CallbackIDTypeDef  CallbackID 
)

Unregister a user SWPMI callback.

SWPMI callback is redirected to the weak predefined callback.

Parameters:
hswpmiSWPMI handle.
CallbackIDID of the callback to be unregistered. This parameter can be one of the following values:
Return values:
HALstatus.

Definition at line 527 of file stm32l4xx_hal_swpmi.c.

References __SWPMI_HandleTypeDef::ErrorCallback, __SWPMI_HandleTypeDef::ErrorCode, HAL_SWPMI_ERROR_CB_ID, HAL_SWPMI_ERROR_INVALID_CALLBACK, HAL_SWPMI_ErrorCallback(), HAL_SWPMI_MspDeInit(), HAL_SWPMI_MSPDEINIT_CB_ID, HAL_SWPMI_MspInit(), HAL_SWPMI_MSPINIT_CB_ID, HAL_SWPMI_RX_COMPLETE_CB_ID, HAL_SWPMI_RX_HALFCOMPLETE_CB_ID, HAL_SWPMI_RxCpltCallback(), HAL_SWPMI_RxHalfCpltCallback(), HAL_SWPMI_STATE_READY, HAL_SWPMI_STATE_RESET, HAL_SWPMI_TX_COMPLETE_CB_ID, HAL_SWPMI_TX_HALFCOMPLETE_CB_ID, HAL_SWPMI_TxCpltCallback(), HAL_SWPMI_TxHalfCpltCallback(), __SWPMI_HandleTypeDef::MspDeInitCallback, __SWPMI_HandleTypeDef::MspInitCallback, __SWPMI_HandleTypeDef::RxCpltCallback, __SWPMI_HandleTypeDef::RxHalfCpltCallback, __SWPMI_HandleTypeDef::State, __SWPMI_HandleTypeDef::TxCpltCallback, and __SWPMI_HandleTypeDef::TxHalfCpltCallback.