LL IWDG Functions

Configuration

group IWDG_LL_EF_Configuration

Functions

void LL_IWDG_Enable ( IWDG_TypeDef * iwdgx )

Start the Independent Watchdog.

Reference Manual to LL API cross reference (Register Field Functions)

KR KEY LL_IWDG_Enable

Note

Except if the hardware watchdog option is selected

Parameters :

iwdgx – IWDG Instance

void LL_IWDG_ReloadCounter ( IWDG_TypeDef * iwdgx )

Reload IWDG counter with value defined in the reload register.

Reference Manual to LL API cross reference (Register Field Functions)

KR KEY LL_IWDG_ReloadCounter

Parameters :

iwdgx – IWDG Instance

void LL_IWDG_EnableWriteAccess ( IWDG_TypeDef * iwdgx )

Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.

Reference Manual to LL API cross reference (Register Field Functions)

KR KEY LL_IWDG_EnableWriteAccess

Parameters :

iwdgx – IWDG Instance

void LL_IWDG_DisableWriteAccess ( IWDG_TypeDef * iwdgx )

Disable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers.

Reference Manual to LL API cross reference (Register Field Functions)

KR KEY LL_IWDG_DisableWriteAccess

Parameters :

iwdgx – IWDG Instance

void LL_IWDG_SetPrescaler ( IWDG_TypeDef * iwdgx , uint32_t prescaler )

Select the prescaler of the IWDG.

Reference Manual to LL API cross reference (Register Field Functions)

PR PR LL_IWDG_SetPrescaler

Parameters :
uint32_t LL_IWDG_GetPrescaler ( const IWDG_TypeDef * iwdgx )

Get the selected prescaler of the IWDG.

Reference Manual to LL API cross reference (Register Field Functions)

PR PR LL_IWDG_GetPrescaler

Parameters :

iwdgx – IWDG Instance

Return values :

Returned – value can be one of the following values:

void LL_IWDG_SetReloadCounter ( IWDG_TypeDef * iwdgx , uint32_t counter )

Specify the IWDG down-counter reload value.

Reference Manual to LL API cross reference (Register Field Functions)

RLR RL LL_IWDG_SetReloadCounter

Parameters :
  • iwdgx – IWDG Instance

  • counter – Value between Min_Data=0 and Max_Data=0x0FFF

uint32_t LL_IWDG_GetReloadCounter ( const IWDG_TypeDef * iwdgx )

Get the specified IWDG down-counter reload value.

Reference Manual to LL API cross reference (Register Field Functions)

RLR RL LL_IWDG_GetReloadCounter

Parameters :

iwdgx – IWDG Instance

Return values :

Value – between Min_Data=0 and Max_Data=0x0FFF

void LL_IWDG_SetWindow ( IWDG_TypeDef * iwdgx , uint32_t window )

Specify high limit of the window value to be compared to the down-counter.

Reference Manual to LL API cross reference (Register Field Functions)

WINR WIN LL_IWDG_SetWindow

Parameters :
  • iwdgx – IWDG Instance

  • window – Value between Min_Data=0 and Max_Data=0x0FFF

uint32_t LL_IWDG_GetWindow ( const IWDG_TypeDef * iwdgx )

Get the high limit of the window value specified.

Reference Manual to LL API cross reference (Register Field Functions)

WINR WIN LL_IWDG_GetWindow

Parameters :

iwdgx – IWDG Instance

Return values :

Value – between Min_Data=0 and Max_Data=0x0FFF

IT_Management

group IWDG_LL_EF_IT_Management

Functions

void LL_IWDG_SetEwiTime ( IWDG_TypeDef * iwdgx , uint32_t time )

Specify comparator value that will be used to trig Early Wakeup interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIT LL_IWDG_SetEwiTime

Parameters :
  • iwdgx – IWDG Instance

  • time – Value between Min_Data=0 and Max_Data=0x0FFF

uint32_t LL_IWDG_GetEwiTime ( const IWDG_TypeDef * iwdgx )

Get the Early Wakeup interrupt comparator value.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIT LL_IWDG_GetEwiTime

Parameters :

iwdgx – IWDG Instance

Return values :

Value – between Min_Data=0 and Max_Data=0x0FFF

void LL_IWDG_EnableIT_EWI ( IWDG_TypeDef * iwdgx )

Enable Early wakeup interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIE LL_IWDG_EnableIT_EWI

Parameters :

iwdgx – IWDG Instance

void LL_IWDG_DisableIT_EWI ( IWDG_TypeDef * iwdgx )

Disable Early wakeup interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIE LL_IWDG_DisableIT_EWI

Parameters :

iwdgx – IWDG Instance

uint32_t LL_IWDG_IsEnabledIT_EWI ( const IWDG_TypeDef * iwdgx )

Indicates whether Early wakeup interrupt is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIE LL_IWDG_IsEnabledIT_EWI

Parameters :

iwdgx – IWDG Instance

FLAG_Management

group IWDG_LL_EF_FLAG_Management

Functions

uint32_t LL_IWDG_IsActiveFlag_PVU ( const IWDG_TypeDef * iwdgx )

Check if flag Prescaler Value Update is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR PVU LL_IWDG_IsActiveFlag_PVU

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_IWDG_IsActiveFlag_RVU ( const IWDG_TypeDef * iwdgx )

Check if flag Reload Value Update is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR RVU LL_IWDG_IsActiveFlag_RVU

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_IWDG_IsActiveFlag_WVU ( const IWDG_TypeDef * iwdgx )

Check if flag Window Value Update is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR WVU LL_IWDG_IsActiveFlag_WVU

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_IWDG_IsActiveFlag_EWU ( const IWDG_TypeDef * iwdgx )

Check if flag EWI Value Update is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR EVU LL_IWDG_IsActiveFlag_EWU

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bit (1 or 0).

uint32_t LL_IWDG_IsReady ( const IWDG_TypeDef * iwdgx )

Check if Prescaler, Reload, Window & Early Interrupt Value updates are completed or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR PVU LL_IWDG_IsReady

SR RVU LL_IWDG_IsReady

SR WVU LL_IWDG_IsReady

SR EWU LL_IWDG_IsReady

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bits (1 or 0).

uint32_t LL_IWDG_IsActiveFlag_EWIF ( const IWDG_TypeDef * iwdgx )

Check if Early Wakeup interrupt flag is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR EWIF LL_IWDG_IsActiveFlag_EWIF

Parameters :

iwdgx – IWDG Instance

Return values :

State – of bit (1 or 0).

void LL_IWDG_ClearFlag_EWIF ( IWDG_TypeDef * iwdgx )

Clear the Early Wakeup interrupt flag.

Reference Manual to LL API cross reference (Register Field Functions)

EWCR EWIC LL_IWDG_ClearFlag_EWIF

Parameters :

iwdgx – IWDG Instance