STM32F103xB HAL User Manual
Data Structures | Defines | Functions
stm32f1xx_hal_iwdg.h File Reference

Header file of IWDG HAL module. More...

#include "stm32f1xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  IWDG_InitTypeDef
 IWDG Init structure definition. More...
struct  IWDG_HandleTypeDef
 IWDG Handle Structure definition. More...

Defines

#define IWDG_PRESCALER_4   0x00000000u
#define IWDG_PRESCALER_8   IWDG_PR_PR_0
#define IWDG_PRESCALER_16   IWDG_PR_PR_1
#define IWDG_PRESCALER_32   (IWDG_PR_PR_1 | IWDG_PR_PR_0)
#define IWDG_PRESCALER_64   IWDG_PR_PR_2
#define IWDG_PRESCALER_128   (IWDG_PR_PR_2 | IWDG_PR_PR_0)
#define IWDG_PRESCALER_256   (IWDG_PR_PR_2 | IWDG_PR_PR_1)
#define __HAL_IWDG_START(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_ENABLE)
 Enable the IWDG peripheral.
#define __HAL_IWDG_RELOAD_COUNTER(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_RELOAD)
 Reload IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled).
#define IWDG_KEY_RELOAD   0x0000AAAAu
 IWDG Key Register BitMask.
#define IWDG_KEY_ENABLE   0x0000CCCCu
#define IWDG_KEY_WRITE_ACCESS_ENABLE   0x00005555u
#define IWDG_KEY_WRITE_ACCESS_DISABLE   0x00000000u
#define IWDG_ENABLE_WRITE_ACCESS(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_ENABLE)
 Enable write access to IWDG_PR and IWDG_RLR registers.
#define IWDG_DISABLE_WRITE_ACCESS(__HANDLE__)   WRITE_REG((__HANDLE__)->Instance->KR, IWDG_KEY_WRITE_ACCESS_DISABLE)
 Disable write access to IWDG_PR and IWDG_RLR registers.
#define IS_IWDG_PRESCALER(__PRESCALER__)
 Check IWDG prescaler value.
#define IS_IWDG_RELOAD(__RELOAD__)   ((__RELOAD__) <= IWDG_RLR_RL)
 Check IWDG reload value.

Functions

HAL_StatusTypeDef HAL_IWDG_Init (IWDG_HandleTypeDef *hiwdg)
 Initialize the IWDG according to the specified parameters in the IWDG_InitTypeDef and start watchdog.
HAL_StatusTypeDef HAL_IWDG_Refresh (IWDG_HandleTypeDef *hiwdg)
 Refresh the IWDG.

Detailed Description

Header file of IWDG HAL module.

Author:
MCD Application Team
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f1xx_hal_iwdg.h.