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

Header file of IWDG LL module. More...

#include "stm32l4xx.h"

Go to the source code of this file.

Defines

#define LL_IWDG_KEY_RELOAD   0x0000AAAAU
#define LL_IWDG_KEY_ENABLE   0x0000CCCCU
#define LL_IWDG_KEY_WR_ACCESS_ENABLE   0x00005555U
#define LL_IWDG_KEY_WR_ACCESS_DISABLE   0x00000000U
#define LL_IWDG_SR_PVU   IWDG_SR_PVU
#define LL_IWDG_SR_RVU   IWDG_SR_RVU
#define LL_IWDG_SR_WVU   IWDG_SR_WVU
#define LL_IWDG_PRESCALER_4   0x00000000U
#define LL_IWDG_PRESCALER_8   (IWDG_PR_PR_0)
#define LL_IWDG_PRESCALER_16   (IWDG_PR_PR_1)
#define LL_IWDG_PRESCALER_32   (IWDG_PR_PR_1 | IWDG_PR_PR_0)
#define LL_IWDG_PRESCALER_64   (IWDG_PR_PR_2)
#define LL_IWDG_PRESCALER_128   (IWDG_PR_PR_2 | IWDG_PR_PR_0)
#define LL_IWDG_PRESCALER_256   (IWDG_PR_PR_2 | IWDG_PR_PR_1)
#define LL_IWDG_WriteReg(__INSTANCE__, __REG__, __VALUE__)   WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
 Write a value in IWDG register.
#define LL_IWDG_ReadReg(__INSTANCE__, __REG__)   READ_REG(__INSTANCE__->__REG__)
 Read a value in IWDG register.

Functions

__STATIC_INLINE void LL_IWDG_Enable (IWDG_TypeDef *IWDGx)
 Start the Independent Watchdog.
__STATIC_INLINE void LL_IWDG_ReloadCounter (IWDG_TypeDef *IWDGx)
 Reloads IWDG counter with value defined in the reload register.
__STATIC_INLINE void LL_IWDG_EnableWriteAccess (IWDG_TypeDef *IWDGx)
 Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
__STATIC_INLINE void LL_IWDG_DisableWriteAccess (IWDG_TypeDef *IWDGx)
 Disable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.
__STATIC_INLINE void LL_IWDG_SetPrescaler (IWDG_TypeDef *IWDGx, uint32_t Prescaler)
 Select the prescaler of the IWDG.
__STATIC_INLINE uint32_t LL_IWDG_GetPrescaler (IWDG_TypeDef *IWDGx)
 Get the selected prescaler of the IWDG.
__STATIC_INLINE void LL_IWDG_SetReloadCounter (IWDG_TypeDef *IWDGx, uint32_t Counter)
 Specify the IWDG down-counter reload value.
__STATIC_INLINE uint32_t LL_IWDG_GetReloadCounter (IWDG_TypeDef *IWDGx)
 Get the specified IWDG down-counter reload value.
__STATIC_INLINE void LL_IWDG_SetWindow (IWDG_TypeDef *IWDGx, uint32_t Window)
 Specify high limit of the window value to be compared to the down-counter.
__STATIC_INLINE uint32_t LL_IWDG_GetWindow (IWDG_TypeDef *IWDGx)
 Get the high limit of the window value specified.
__STATIC_INLINE uint32_t LL_IWDG_IsActiveFlag_PVU (IWDG_TypeDef *IWDGx)
 Check if flag Prescaler Value Update is set or not.
__STATIC_INLINE uint32_t LL_IWDG_IsActiveFlag_RVU (IWDG_TypeDef *IWDGx)
 Check if flag Reload Value Update is set or not.
__STATIC_INLINE uint32_t LL_IWDG_IsActiveFlag_WVU (IWDG_TypeDef *IWDGx)
 Check if flag Window Value Update is set or not.
__STATIC_INLINE uint32_t LL_IWDG_IsReady (IWDG_TypeDef *IWDGx)
 Check if all flags Prescaler, Reload & Window Value Update are reset or not.

Detailed Description

Header file of IWDG 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_iwdg.h.