STM32L443xx HAL User Manual
|
Defines | |
#define | __HAL_SWPMI_RESET_HANDLE_STATE(__HANDLE__) |
Reset SWPMI handle state. | |
#define | __HAL_SWPMI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Enable the SWPMI peripheral. | |
#define | __HAL_SWPMI_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Disable the SWPMI peripheral. | |
#define | __HAL_SWPMI_GET_FLAG(__HANDLE__, __FLAG__) (READ_BIT((__HANDLE__)->Instance->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified SWPMI flag is set or not. | |
#define | __HAL_SWPMI_CLEAR_FLAG(__HANDLE__, __FLAG__) WRITE_REG((__HANDLE__)->Instance->ICR, (__FLAG__)) |
Clear the specified SWPMI ISR flag. | |
#define | __HAL_SWPMI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Enable the specified SWPMI interrupt. | |
#define | __HAL_SWPMI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Disable the specified SWPMI interrupt. | |
#define | __HAL_SWPMI_GET_IT(__HANDLE__, __IT__) (READ_BIT((__HANDLE__)->Instance->ISR,(__IT__)) == (__IT__)) |
Check whether the specified SWPMI interrupt has occurred or not. | |
#define | __HAL_SWPMI_GET_IT_SOURCE(__HANDLE__, __IT__) ((READ_BIT((__HANDLE__)->Instance->IER, (__IT__)) == (__IT__)) ? SET : RESET) |
Check whether the specified SWPMI interrupt source is enabled or not. |
#define __HAL_SWPMI_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | WRITE_REG((__HANDLE__)->Instance->ICR, (__FLAG__)) |
Clear the specified SWPMI ISR flag.
__HANDLE__ | specifies the SWPMI Handle. |
__FLAG__ | specifies the flag to clear. This parameter can be one of the following values:
|
None |
Definition at line 314 of file stm32l4xx_hal_swpmi.h.
Referenced by HAL_SWPMI_Transmit().
#define __HAL_SWPMI_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Disable the SWPMI peripheral.
__HANDLE__ | SWPMI handle |
None |
Definition at line 280 of file stm32l4xx_hal_swpmi.h.
#define __HAL_SWPMI_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | CLEAR_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Disable the specified SWPMI interrupt.
__HANDLE__ | specifies the SWPMI Handle. |
__INTERRUPT__ | specifies the SWPMI interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 348 of file stm32l4xx_hal_swpmi.h.
Referenced by HAL_SWPMI_Transmit().
#define __HAL_SWPMI_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, SWPMI_CR_SWPACT) |
Enable the SWPMI peripheral.
__HANDLE__ | SWPMI handle |
None |
Definition at line 273 of file stm32l4xx_hal_swpmi.h.
#define __HAL_SWPMI_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->IER, (__INTERRUPT__)) |
Enable the specified SWPMI interrupt.
__HANDLE__ | specifies the SWPMI Handle. |
__INTERRUPT__ | specifies the SWPMI interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 331 of file stm32l4xx_hal_swpmi.h.
Referenced by HAL_SWPMI_Receive_DMA(), HAL_SWPMI_Receive_IT(), HAL_SWPMI_Transmit_DMA(), and HAL_SWPMI_Transmit_IT().
#define __HAL_SWPMI_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (READ_BIT((__HANDLE__)->Instance->ISR, (__FLAG__)) == (__FLAG__)) |
Check whether the specified SWPMI flag is set or not.
__HANDLE__ | specifies the SWPMI Handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 299 of file stm32l4xx_hal_swpmi.h.
#define __HAL_SWPMI_GET_IT | ( | __HANDLE__, | |
__IT__ | |||
) | (READ_BIT((__HANDLE__)->Instance->ISR,(__IT__)) == (__IT__)) |
Check whether the specified SWPMI interrupt has occurred or not.
__HANDLE__ | specifies the SWPMI Handle. |
__IT__ | specifies the SWPMI interrupt to check. This parameter can be one of the following values:
|
The | new state of __IT__ (TRUE or FALSE). |
Definition at line 365 of file stm32l4xx_hal_swpmi.h.
#define __HAL_SWPMI_GET_IT_SOURCE | ( | __HANDLE__, | |
__IT__ | |||
) | ((READ_BIT((__HANDLE__)->Instance->IER, (__IT__)) == (__IT__)) ? SET : RESET) |
Check whether the specified SWPMI interrupt source is enabled or not.
__HANDLE__ | specifies the SWPMI Handle. |
__IT__ | specifies the SWPMI interrupt source to check. This parameter can be one of the following values:
|
The | new state of __IT__ (TRUE or FALSE). |
Definition at line 382 of file stm32l4xx_hal_swpmi.h.
#define __HAL_SWPMI_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{ \ (__HANDLE__)->State = HAL_SWPMI_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0)
Reset SWPMI handle state.
__HANDLE__ | specifies the SWPMI Handle. |
None |
Definition at line 259 of file stm32l4xx_hal_swpmi.h.