MG32L003 Standard Peripherals Firmware Library

函数
IWDG_Private_Functions
MG32L003_StdPeriph_Driver » IWDG

## 函数
void | IWDG_Init (uint32_t IWDG_Config, FunctionalState NewState)
| Initialize the IWDG according to the specified IWDG_Config. 更多...
void | IWDG_SetReload (uint32_t Reload)
| Sets IWDG Reload value. 更多...
void | IWDG_ReloadCounter (void)
| Reloads IWDG counter with value defined in the reload register. 更多...
void | IWDG_Start (void)
| IWDG starts running. 更多...
FlagStatus | IWDG_GetITStatus (uint32_t IWDG_IT)
| Checks whether the specified IWDG interrupt flag is set or not. 更多...
void | IWDG_ClearITPendingBit (uint32_t IWDG_IT)
| Clears the IWDG's interrupt pending bits. 更多...

## 详细描述

## 函数说明

## ◆ IWDG_ClearITPendingBit()

void IWDG_ClearITPendingBit | ( | uint32_t | IWDG_IT | ) |

Clears the IWDG's interrupt pending bits.

参数

  IWDG_IT | specifies the interrupt pending bit to clear. This parameter can be a combination of the following values: IWDG_IT_GOVF: The overflow of the IWDG was interrupted

返回值

  None. |

## ◆ IWDG_GetITStatus()

FlagStatus IWDG_GetITStatus | ( | uint32_t | IWDG_IT | ) |

Checks whether the specified IWDG interrupt flag is set or not.

参数

  IWDG_IT | specifies the interrupt flag to check. This parameter can be one of the following values: IWDG_IT_GOVF: The overflow of the IWDG was interrupted

返回值

  The | new state of IWDG_IT (SET or RESET).

## ◆ IWDG_Init()

void IWDG_Init | ( | uint32_t | IWDG_Config,
|  | FunctionalState | NewState
| ) |  |

Initialize the IWDG according to the specified IWDG_Config.

参数

  IWDG_Config | Specify configuration parameters for the IWDG. This parameter can be any combination of the following values: IWDG_MODE_RESET IWDG_MODE_INT IWDG_IT_DISABLE IWDG_IT_ENABLE
  NewState | new state of the IWDG peripheral. This parameter can be: ENABLE or DISABLE.

返回值

  None |

## ◆ IWDG_ReloadCounter()

void IWDG_ReloadCounter | ( | void |  | ) |

Reloads IWDG counter with value defined in the reload register.

参数

  None |

返回值

  None |

## ◆ IWDG_SetReload()

void IWDG_SetReload | ( | uint32_t | Reload | ) |

Sets IWDG Reload value.

参数

  Reload | specifies the IWDG Reload value. This parameter must be a number between 0 and 0xFFFFF.

返回值

  None |

## ◆ IWDG_Start()

void IWDG_Start | ( | void |  | ) |

IWDG starts running.

参数

  None |

返回值

  None |