IWDG_Private_Functions
[IWDG]

Functions

void IWDG_Enable (void)
 Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
FlagStatus IWDG_GetFlagStatus (uint16_t IWDG_FLAG)
 Checks whether the specified IWDG flag is set or not.
void IWDG_ReloadCounter (void)
 Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled).
void IWDG_SetPrescaler (uint8_t IWDG_Prescaler)
 Sets IWDG Prescaler value.
void IWDG_SetReload (uint16_t Reload)
 Sets IWDG Reload value.
void IWDG_WriteAccessCmd (uint16_t IWDG_WriteAccess)
 Enables or disables write access to IWDG_PR and IWDG_RLR registers.

Function Documentation

void IWDG_Enable ( void   ) 

Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).

Parameters:
None 
Return values:
None 

Definition at line 147 of file stm32f10x_iwdg.c.

References IWDG, and KR_KEY_Enable.

Referenced by main().

FlagStatus IWDG_GetFlagStatus ( uint16_t  IWDG_FLAG  ) 

Checks whether the specified IWDG flag is set or not.

Parameters:
IWDG_FLAG,: specifies the flag to check. This parameter can be one of the following values:

  • IWDG_FLAG_PVU: Prescaler Value Update on going
  • IWDG_FLAG_RVU: Reload Value Update on going
Return values:
The new state of IWDG_FLAG (SET or RESET).

Definition at line 160 of file stm32f10x_iwdg.c.

References assert_param, IS_IWDG_FLAG, IWDG, RESET, and SET.

void IWDG_ReloadCounter ( void   ) 

Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled).

Parameters:
None 
Return values:
None 

Definition at line 137 of file stm32f10x_iwdg.c.

References IWDG, and KR_KEY_Reload.

Referenced by main(), and SysTick_Handler().

void IWDG_SetPrescaler ( uint8_t  IWDG_Prescaler  ) 

Sets IWDG Prescaler value.

Parameters:
IWDG_Prescaler,: specifies the IWDG Prescaler value. This parameter can be one of the following values:

  • IWDG_Prescaler_4: IWDG prescaler set to 4
  • IWDG_Prescaler_8: IWDG prescaler set to 8
  • IWDG_Prescaler_16: IWDG prescaler set to 16
  • IWDG_Prescaler_32: IWDG prescaler set to 32
  • IWDG_Prescaler_64: IWDG prescaler set to 64
  • IWDG_Prescaler_128: IWDG prescaler set to 128
  • IWDG_Prescaler_256: IWDG prescaler set to 256
Return values:
None 

Definition at line 111 of file stm32f10x_iwdg.c.

References assert_param, IS_IWDG_PRESCALER, and IWDG.

Referenced by main().

void IWDG_SetReload ( uint16_t  Reload  ) 

Sets IWDG Reload value.

Parameters:
Reload,: specifies the IWDG Reload value. This parameter must be a number between 0 and 0x0FFF.
Return values:
None 

Definition at line 124 of file stm32f10x_iwdg.c.

References assert_param, IS_IWDG_RELOAD, and IWDG.

Referenced by main().

void IWDG_WriteAccessCmd ( uint16_t  IWDG_WriteAccess  ) 

Enables or disables write access to IWDG_PR and IWDG_RLR registers.

Parameters:
IWDG_WriteAccess,: new state of write access to IWDG_PR and IWDG_RLR registers. This parameter can be one of the following values:

  • IWDG_WriteAccess_Enable: Enable write access to IWDG_PR and IWDG_RLR registers
  • IWDG_WriteAccess_Disable: Disable write access to IWDG_PR and IWDG_RLR registers
Return values:
None 

Definition at line 91 of file stm32f10x_iwdg.c.

References assert_param, IS_IWDG_WRITE_ACCESS, and IWDG.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32