MG32L003 Standard Peripherals Firmware Library

函数
WWDG_Private_Functions
MG32L003_StdPeriph_Driver » WWDG

## 函数
void | WWDG_DeInit (void)
| Deinitializes the WWDG peripheral registers to their default reset values. 更多...
void | WWDG_SetPrescaler (uint32_t WWDG_Prescaler)
| Sets the WWDG Prescaler. 更多...
void | WWDG_SetWindowValue (uint8_t WindowValue)
| Sets the WWDG window value. 更多...
void | WWDG_IT_Cmd (FunctionalState NewState)
| Enables or disable the WWDG's interrupt. 更多...
void | WWDG_SetCounter (uint8_t Counter)
| Sets the WWDG counter value. 更多...
void | WWDG_Cmd (FunctionalState NewState)
| Enables or disables the WWDG peripheral. 更多...
FlagStatus | WWDG_GetFlagStatus (void)
| Checks whether the Early Wakeup interrupt flag is set or not. 更多...
void | WWDG_ClearFlag (void)
| Clears Early Wakeup interrupt flag. 更多...

## 详细描述

## 函数说明

## ◆ WWDG_ClearFlag()

void WWDG_ClearFlag | ( | void |  | ) |

Clears Early Wakeup interrupt flag.

参数

  None |

返回值

  None |

## ◆ WWDG_Cmd()

void WWDG_Cmd | ( | FunctionalState | NewState | ) |

Enables or disables the WWDG peripheral.

参数

  NewState | The new state of the WWDG peripheral. This parameter can be: ENABLE or DISABLE.

返回值

  None |

## ◆ WWDG_DeInit()

void WWDG_DeInit | ( | void |  | ) |

Deinitializes the WWDG peripheral registers to their default reset values.

参数

  None |

返回值

  None |

## ◆ WWDG_GetFlagStatus()

FlagStatus WWDG_GetFlagStatus | ( | void |  | ) |

Checks whether the Early Wakeup interrupt flag is set or not.

参数

  None |

返回值

  The | new state of the Early Wakeup interrupt flag (SET or RESET)

## ◆ WWDG_IT_Cmd()

void WWDG_IT_Cmd | ( | FunctionalState | NewState | ) |

Enables or disable the WWDG's interrupt.

参数

  NewState | The new state of the WWDG's interrupt. This parameter can be: ENABLE or DISABLE.

返回值

  None |

## ◆ WWDG_SetCounter()

void WWDG_SetCounter | ( | uint8_t | Counter | ) |

Sets the WWDG counter value.

参数

  Counter | specifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F.

返回值

  None |

## ◆ WWDG_SetPrescaler()

void WWDG_SetPrescaler | ( | uint32_t | WWDG_Prescaler | ) |

Sets the WWDG Prescaler.

参数

  WWDG_Prescaler | specifies the WWDG Prescaler.

返回值

  None |

## ◆ WWDG_SetWindowValue()

void WWDG_SetWindowValue | ( | uint8_t | WindowValue | ) |

Sets the WWDG window value.

参数

  WindowValue | specifies the window value to be compared to the downcounter. This parameter value must be lower than 0x80.

返回值

  None |