STM32L486xx HAL User Manual
Defines | Functions
stm32l4xx_ll_wwdg.h File Reference

Header file of WWDG LL module. More...

#include "stm32l4xx.h"

Go to the source code of this file.

Defines

#define LL_WWDG_CFR_EWI   WWDG_CFR_EWI
#define LL_WWDG_PRESCALER_1   0x00000000u
#define LL_WWDG_PRESCALER_2   WWDG_CFR_WDGTB_0
#define LL_WWDG_PRESCALER_4   WWDG_CFR_WDGTB_1
#define LL_WWDG_PRESCALER_8   (WWDG_CFR_WDGTB_0 | WWDG_CFR_WDGTB_1)
#define LL_WWDG_WriteReg(__INSTANCE__, __REG__, __VALUE__)   WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
 Write a value in WWDG register.
#define LL_WWDG_ReadReg(__INSTANCE__, __REG__)   READ_REG(__INSTANCE__->__REG__)
 Read a value in WWDG register.

Functions

__STATIC_INLINE void LL_WWDG_Enable (WWDG_TypeDef *WWDGx)
 Enable Window Watchdog.
__STATIC_INLINE uint32_t LL_WWDG_IsEnabled (WWDG_TypeDef *WWDGx)
 Checks if Window Watchdog is enabled.
__STATIC_INLINE void LL_WWDG_SetCounter (WWDG_TypeDef *WWDGx, uint32_t Counter)
 Set the Watchdog counter value to provided value (7-bits T[6:0])
__STATIC_INLINE uint32_t LL_WWDG_GetCounter (WWDG_TypeDef *WWDGx)
 Return current Watchdog Counter Value (7 bits counter value)
__STATIC_INLINE void LL_WWDG_SetPrescaler (WWDG_TypeDef *WWDGx, uint32_t Prescaler)
 Set the time base of the prescaler (WDGTB).
__STATIC_INLINE uint32_t LL_WWDG_GetPrescaler (WWDG_TypeDef *WWDGx)
 Return current Watchdog Prescaler Value.
__STATIC_INLINE void LL_WWDG_SetWindow (WWDG_TypeDef *WWDGx, uint32_t Window)
 Set the Watchdog Window value to be compared to the downcounter (7-bits W[6:0]).
__STATIC_INLINE uint32_t LL_WWDG_GetWindow (WWDG_TypeDef *WWDGx)
 Return current Watchdog Window Value (7 bits value)
__STATIC_INLINE uint32_t LL_WWDG_IsActiveFlag_EWKUP (WWDG_TypeDef *WWDGx)
 Indicates if the WWDG Early Wakeup Interrupt Flag is set or not.
__STATIC_INLINE void LL_WWDG_ClearFlag_EWKUP (WWDG_TypeDef *WWDGx)
 Clear WWDG Early Wakeup Interrupt Flag (EWIF)
__STATIC_INLINE void LL_WWDG_EnableIT_EWKUP (WWDG_TypeDef *WWDGx)
 Enable the Early Wakeup Interrupt.
__STATIC_INLINE uint32_t LL_WWDG_IsEnabledIT_EWKUP (WWDG_TypeDef *WWDGx)
 Check if Early Wakeup Interrupt is enabled.

Detailed Description

Header file of WWDG LL 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_ll_wwdg.h.