STM32F439xx HAL User Manual
Data Structures | Defines | Functions
stm32f4xx_hal_wwdg.h File Reference

Header file of WWDG HAL module. More...

#include "stm32f4xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  WWDG_InitTypeDef
 WWDG Init structure definition. More...
struct  WWDG_HandleTypeDef
 WWDG handle Structure definition. More...

Defines

#define WWDG_IT_EWI   WWDG_CFR_EWI
#define WWDG_FLAG_EWIF   WWDG_SR_EWIF
#define WWDG_PRESCALER_1   0x00000000U
#define WWDG_PRESCALER_2   WWDG_CFR_WDGTB0
#define WWDG_PRESCALER_4   WWDG_CFR_WDGTB1
#define WWDG_PRESCALER_8   WWDG_CFR_WDGTB
#define WWDG_EWI_DISABLE   0x00000000U
#define WWDG_EWI_ENABLE   WWDG_CFR_EWI
#define IS_WWDG_PRESCALER(__PRESCALER__)
#define IS_WWDG_WINDOW(__WINDOW__)   (((__WINDOW__) >= WWDG_CFR_W_6) && ((__WINDOW__) <= WWDG_CFR_W))
#define IS_WWDG_COUNTER(__COUNTER__)   (((__COUNTER__) >= WWDG_CR_T_6) && ((__COUNTER__) <= WWDG_CR_T))
#define IS_WWDG_EWI_MODE(__MODE__)
#define __HAL_WWDG_ENABLE(__HANDLE__)   SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA)
 Enables the WWDG peripheral.
#define __HAL_WWDG_ENABLE_IT(__HANDLE__, __INTERRUPT__)   SET_BIT((__HANDLE__)->Instance->CFR, (__INTERRUPT__))
 Enables the WWDG early wakeup interrupt.
#define __HAL_WWDG_GET_IT(__HANDLE__, __INTERRUPT__)   __HAL_WWDG_GET_FLAG((__HANDLE__),(__INTERRUPT__))
 Checks 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's interrupt pending bits bits to clear the selected 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__))
 Clears the WWDG's pending flags.
#define __HAL_WWDG_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CFR & (__INTERRUPT__)) == (__INTERRUPT__))
 Checks if the specified WWDG interrupt source is enabled or disabled.

Functions

HAL_StatusTypeDef HAL_WWDG_Init (WWDG_HandleTypeDef *hwwdg)
 Initialize the WWDG according to the specified.
__weak void HAL_WWDG_MspInit (WWDG_HandleTypeDef *hwwdg)
 Initialize the WWDG MSP.
HAL_StatusTypeDef HAL_WWDG_Refresh (WWDG_HandleTypeDef *hwwdg)
 Refresh the WWDG.
void HAL_WWDG_IRQHandler (WWDG_HandleTypeDef *hwwdg)
 Handle WWDG interrupt request.
__weak void HAL_WWDG_EarlyWakeupCallback (WWDG_HandleTypeDef *hwwdg)
 WWDG Early Wakeup callback.

Detailed Description

Header file of WWDG HAL module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f4xx_hal_wwdg.h.