|
STM CMSIS
|
Macros | |
| #define | __HAL_WWDG_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA) |
| Enables the WWDG peripheral. More... | |
| #define | __HAL_WWDG_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__)) |
| Enables the WWDG early wakeup interrupt. More... | |
| #define | __HAL_WWDG_GET_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__)) |
| Checks whether the selected WWDG interrupt has occurred or not. More... | |
| #define | __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__)) |
| Clear the WWDG's interrupt pending bits bits to clear the selected interrupt pending bits. More... | |
| #define | __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
| Check whether the specified WWDG flag is set or not. More... | |
| #define | __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) |
| Clears the WWDG's pending flags. More... | |
| #define | __HAL_WWDG_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__)) |
| Checks if the specified WWDG interrupt source is enabled or disabled. More... | |
| #define __HAL_WWDG_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) |
Clears the WWDG's pending flags.
| <strong>HANDLE</strong> | WWDG handle |
| <strong>FLAG</strong> | specifies the flag to clear. This parameter can be one of the following values:
|
| None |
| #define __HAL_WWDG_CLEAR_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__)) |
Clear the WWDG's interrupt pending bits bits to clear the selected interrupt pending bits.
| <strong>HANDLE</strong> | WWDG handle |
| <strong>INTERRUPT</strong> | specifies the interrupt pending bit to clear. This parameter can be one of the following values:
|
| #define __HAL_WWDG_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA) |
Enables the WWDG peripheral.
| <strong>HANDLE</strong> | WWDG handle |
| None |
| #define __HAL_WWDG_ENABLE_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__)) |
Enables the WWDG early wakeup interrupt.
| <strong>HANDLE</strong> | WWDG handle |
| <strong>INTERRUPT</strong> | specifies the interrupt to enable. This parameter can be one of the following values:
|
| None |
| #define __HAL_WWDG_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified WWDG flag is set or not.
| <strong>HANDLE</strong> | WWDG handle |
| <strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
| The | new state of WWDG_FLAG (SET or RESET). |
| #define __HAL_WWDG_GET_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__)) |
Checks whether the selected WWDG interrupt has occurred or not.
| <strong>HANDLE</strong> | WWDG handle |
| <strong>INTERRUPT</strong> | specifies the it to check. This parameter can be one of the following values:
|
| The | new state of WWDG_FLAG (SET or RESET). |
| #define __HAL_WWDG_GET_IT_SOURCE | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Checks if the specified WWDG interrupt source is enabled or disabled.
| <strong>HANDLE</strong> | WWDG Handle. |
| <strong>INTERRUPT</strong> | specifies the WWDG interrupt source to check. This parameter can be one of the following values:
|
| state | of INTERRUPT (TRUE or FALSE). |