STM32L486xx HAL User Manual
Data Structures | Defines | Typedefs | Enumerations | Functions
stm32l4xx_hal_wwdg.h File Reference

Header file of WWDG HAL module. More...

#include "stm32l4xx_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_WDGTB_0
#define WWDG_PRESCALER_4   WWDG_CFR_WDGTB_1
#define WWDG_PRESCALER_8   (WWDG_CFR_WDGTB_1 | WWDG_CFR_WDGTB_0)
#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)
 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.

Typedefs

typedef struct __WWDG_HandleTypeDef WWDG_HandleTypeDef
 WWDG handle Structure definition.
typedef void(* pWWDG_CallbackTypeDef )(WWDG_HandleTypeDef *hppp)
 HAL WWDG Callback pointer definition.

Enumerations

enum  HAL_WWDG_CallbackIDTypeDef { HAL_WWDG_EWI_CB_ID = 0x00u, HAL_WWDG_MSPINIT_CB_ID = 0x01u }
 HAL WWDG common Callback ID enumeration definition. More...

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_RegisterCallback (WWDG_HandleTypeDef *hwwdg, HAL_WWDG_CallbackIDTypeDef CallbackID, pWWDG_CallbackTypeDef pCallback)
 Register a User WWDG Callback To be used instead of the weak (surcharged) predefined callback.
HAL_StatusTypeDef HAL_WWDG_UnRegisterCallback (WWDG_HandleTypeDef *hwwdg, HAL_WWDG_CallbackIDTypeDef CallbackID)
 Unregister a WWDG Callback WWDG Callback is redirected to the weak (surcharged) predefined callback.
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 stm32l4xx_hal_wwdg.h.