STM8S/A Standard Peripherals Drivers: IWDG_Public_Functions

STM8S/A

STM8S/A Standard Peripherals Drivers
IWDG_Public_Functions

Functions

void IWDG_Enable (void)
 Enables IWDG.
void IWDG_ReloadCounter (void)
 Reloads IWDG counter.
void IWDG_SetPrescaler (IWDG_Prescaler_TypeDef IWDG_Prescaler)
 Sets IWDG Prescaler value.
void IWDG_SetReload (uint8_t IWDG_Reload)
 Sets IWDG Reload value.
void IWDG_WriteAccessCmd (IWDG_WriteAccess_TypeDef IWDG_WriteAccess)
 Enables or disables write access to Prescaler and Reload registers.

Function Documentation

void IWDG_Enable ( void  )

Enables IWDG.

Parameters:
None
Return values:
None

Definition at line 99 of file stm8s_iwdg.c.

References IWDG, and IWDG_KEY_ENABLE.

void IWDG_ReloadCounter ( void  )

Reloads IWDG counter.

Note:
Write access should be enabled
Parameters:
None
Return values:
None

Definition at line 89 of file stm8s_iwdg.c.

References IWDG, and IWDG_KEY_REFRESH.

void IWDG_SetPrescaler ( IWDG_Prescaler_TypeDef  IWDG_Prescaler)

Sets IWDG Prescaler value.

Note:
Write access should be enabled
Parameters:
IWDG_Prescaler: Specifies the IWDG Prescaler value. This parameter can be a value of IWDG_Prescaler_TypeDef.
Return values:
None

Definition at line 63 of file stm8s_iwdg.c.

References IS_IWDG_PRESCALER_OK, and IWDG.

void IWDG_SetReload ( uint8_t  IWDG_Reload)

Sets IWDG Reload value.

Note:
Write access should be enabled
Parameters:
IWDG_Reload: Reload register value. This parameter must be a number between 0 and 0xFF.
Return values:
None

Definition at line 78 of file stm8s_iwdg.c.

References IWDG.

void IWDG_WriteAccessCmd ( IWDG_WriteAccess_TypeDef  IWDG_WriteAccess)

Enables or disables write access to Prescaler and Reload registers.

Parameters:
IWDG_WriteAccess: New state of write access to Prescaler and Reload registers. This parameter can be a value of IWDG_WriteAccess_TypeDef.
Return values:
None

Definition at line 48 of file stm8s_iwdg.c.

References IS_IWDG_WRITEACCESS_MODE_OK, and IWDG.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com