WB32L003 Standard Peripherals Firmware Library

模块 | 宏定义 | 函数
WWDG
WB32L003_StdPeriph_Driver

WWDG driver modules 更多...

## 模块
| WWDG_Exported_Constants
| WWDG_Private_Functions

## 宏定义
#define | IS_WWDG_PRESCALER_VALUE(VALUE) ((VALUE) <= WWDG_PRESCALER_MAX)
#define | IS_WWDG_WINDOW_VALUE(VALUE)
#define | IS_WWDG_RELOAD_VALUE(VALUE)

## 函数
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 driver modules

## 宏定义说明

## ◆ IS_WWDG_RELOAD_VALUE

#define IS_WWDG_RELOAD_VALUE | ( |  | VALUE | ) |

值:
(((VALUE) >= WWDG_RELOAD_MIN) && \
((VALUE) <= WWDG_RELOAD_MAX))

## ◆ IS_WWDG_WINDOW_VALUE

#define IS_WWDG_WINDOW_VALUE | ( |  | VALUE | ) |

值:
(((VALUE) >= WWDG_WINDOW_MIN) && \
((VALUE) <= WWDG_WINDOW_MAX))

## 函数说明

## ◆ 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 |