Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

Prescaler and Counter configuration functions

Prescaler and Counter configuration functions
[IWDG_Private_Functions]

Prescaler and Counter configuration functions. More...

Functions

void IWDG_WriteAccessCmd (uint16_t IWDG_WriteAccess)
 Enables or disables write access to IWDG_PR and IWDG_RLR registers.
void IWDG_SetPrescaler (uint8_t IWDG_Prescaler)
 Sets IWDG Prescaler value.
void IWDG_SetReload (uint16_t Reload)
 Sets IWDG Reload value.
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_SetWindowValue (uint16_t WindowValue)
 Sets the IWDG window value.

Detailed Description

Prescaler and Counter configuration functions.

 ===============================================================================
            ##### Prescaler and Counter configuration functions #####
 ===============================================================================  


Function Documentation

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 186 of file stm32f30x_iwdg.c.

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 160 of file stm32f30x_iwdg.c.

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 173 of file stm32f30x_iwdg.c.

void IWDG_SetWindowValue ( uint16_t  WindowValue )

Sets the IWDG window value.

Parameters:
WindowValue,:specifies the window value to be compared to the downcounter.
Return values:
None

Definition at line 197 of file stm32f30x_iwdg.c.

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 140 of file stm32f30x_iwdg.c.