MG32F10x Standard Peripherals Firmware Library
函数
WWDG_Private_Functions

函数

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_EnableIT (void)
 Enables the WWDG Early Wakeup interrupt(EWI). 更多...
 
void WWDG_SetCounter (uint8_t Counter)
 Sets the WWDG counter value. 更多...
 
void WWDG_Enable (uint8_t Counter)
 Enables WWDG and load the counter value. 更多...
 
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_DeInit()

void WWDG_DeInit ( void  )

Deinitializes the WWDG peripheral registers to their default reset values.

参数
None
返回值
None

◆ WWDG_Enable()

void WWDG_Enable ( uint8_t  Counter)

Enables WWDG and load the counter value.

参数
Counterspecifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F.
返回值
None

◆ WWDG_EnableIT()

void WWDG_EnableIT ( void  )

Enables the WWDG Early Wakeup interrupt(EWI).

参数
None
返回值
None

◆ WWDG_GetFlagStatus()

FlagStatus WWDG_GetFlagStatus ( void  )

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

参数
None
返回值
Thenew state of the Early Wakeup interrupt flag (SET or RESET)

◆ WWDG_SetCounter()

void WWDG_SetCounter ( uint8_t  Counter)

Sets the WWDG counter value.

参数
Counterspecifies 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_Prescalerspecifies the WWDG Prescaler. This parameter can be one of the following values:
  • WWDG_Prescaler_1: WWDG counter clock = (PCLK2/4096)/1
  • WWDG_Prescaler_2: WWDG counter clock = (PCLK2/4096)/2
  • WWDG_Prescaler_4: WWDG counter clock = (PCLK2/4096)/4
  • WWDG_Prescaler_8: WWDG counter clock = (PCLK2/4096)/8
返回值
None

◆ WWDG_SetWindowValue()

void WWDG_SetWindowValue ( uint8_t  WindowValue)

Sets the WWDG window value.

参数
WindowValuespecifies the window value to be compared to the downcounter. This parameter value must be lower than 0x80.
返回值
None