STM32L486xx HAL User Manual
Defines
WWDG Exported Macros
WWDG

Defines

#define __HAL_WWDG_ENABLE(__HANDLE__)   SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA)
 Enable the WWDG peripheral.
#define __HAL_WWDG_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__))
 Enable the WWDG early wakeup interrupt.
#define __HAL_WWDG_GET_IT(__HANDLE__, __INTERRUPT__)   __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__))
 Check whether the selected WWDG interrupt has occurred or not.
#define __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__)   __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__))
 Clear the WWDG interrupt pending bits.
#define __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
 Check whether the specified WWDG flag is set or not.
#define __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR = ~(__FLAG__))
 Clear the WWDG's pending flags.
#define __HAL_WWDG_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__))
 Check whether the specified WWDG interrupt source is enabled or not.

Define Documentation

#define __HAL_WWDG_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR = ~(__FLAG__))

Clear the WWDG's pending flags.

Parameters:
__HANDLE__WWDG handle
__FLAG__specifies the flag to clear. This parameter can be one of the following values:
  • WWDG_FLAG_EWIF: Early wakeup interrupt flag
Return values:
None

Definition at line 245 of file stm32l4xx_hal_wwdg.h.

Referenced by HAL_WWDG_IRQHandler().

#define __HAL_WWDG_CLEAR_IT (   __HANDLE__,
  __INTERRUPT__ 
)    __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__))

Clear the WWDG interrupt pending bits.

bits to clear the selected interrupt pending bits.

Parameters:
__HANDLE__WWDG handle
__INTERRUPT__specifies the interrupt pending bit to clear. This parameter can be one of the following values:
  • WWDG_FLAG_EWIF: Early wakeup interrupt flag

Definition at line 225 of file stm32l4xx_hal_wwdg.h.

#define __HAL_WWDG_ENABLE (   __HANDLE__)    SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA)

Enable the WWDG peripheral.

Parameters:
__HANDLE__WWDG handle
Return values:
None

Definition at line 195 of file stm32l4xx_hal_wwdg.h.

#define __HAL_WWDG_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__))

Enable the WWDG early wakeup interrupt.

Parameters:
__HANDLE__,:WWDG handle
__INTERRUPT__specifies the interrupt to enable. This parameter can be one of the following values:
  • WWDG_IT_EWI: Early wakeup interrupt
Note:
Once enabled this interrupt cannot be disabled except by a system reset.
Return values:
None

Definition at line 206 of file stm32l4xx_hal_wwdg.h.

#define __HAL_WWDG_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))

Check whether the specified WWDG flag is set or not.

Parameters:
__HANDLE__WWDG handle
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • WWDG_FLAG_EWIF: Early wakeup interrupt flag
Return values:
Thenew state of WWDG_FLAG (SET or RESET).

Definition at line 235 of file stm32l4xx_hal_wwdg.h.

Referenced by HAL_WWDG_IRQHandler().

#define __HAL_WWDG_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)    __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__))

Check whether the selected WWDG interrupt has occurred or not.

Parameters:
__HANDLE__WWDG handle
__INTERRUPT__specifies the it to check. This parameter can be one of the following values:
  • WWDG_FLAG_EWIF: Early wakeup interrupt IT
Return values:
Thenew state of WWDG_FLAG (SET or RESET).

Definition at line 216 of file stm32l4xx_hal_wwdg.h.

#define __HAL_WWDG_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__))

Check whether the specified WWDG interrupt source is enabled or not.

Parameters:
__HANDLE__WWDG Handle.
__INTERRUPT__specifies the WWDG interrupt source to check. This parameter can be one of the following values:
  • WWDG_IT_EWI: Early Wakeup Interrupt
Return values:
stateof __INTERRUPT__ (TRUE or FALSE).

Definition at line 254 of file stm32l4xx_hal_wwdg.h.

Referenced by HAL_WWDG_IRQHandler().