Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

Configuration

Functions

__STATIC_INLINE void LL_IWDG_Enable (IWDG_TypeDef *IWDGx)
 Start the Independent Watchdog.
__STATIC_INLINE void LL_IWDG_ReloadCounter (IWDG_TypeDef *IWDGx)
 Reloads IWDG counter with value defined in the reload register KR KEY LL_IWDG_ReloadCounter.
__STATIC_INLINE void LL_IWDG_EnableWriteAccess (IWDG_TypeDef *IWDGx)
 Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers KR KEY LL_IWDG_EnableWriteAccess.
__STATIC_INLINE void LL_IWDG_DisableWriteAccess (IWDG_TypeDef *IWDGx)
 Disable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers KR KEY LL_IWDG_DisableWriteAccess.
__STATIC_INLINE void LL_IWDG_SetPrescaler (IWDG_TypeDef *IWDGx, uint32_t Prescaler)
 Select the prescaler of the IWDG PR PR LL_IWDG_SetPrescaler.
__STATIC_INLINE uint32_t LL_IWDG_GetPrescaler (IWDG_TypeDef *IWDGx)
 Get the selected prescaler of the IWDG PR PR LL_IWDG_GetPrescaler.
__STATIC_INLINE void LL_IWDG_SetReloadCounter (IWDG_TypeDef *IWDGx, uint32_t Counter)
 Specifies the IWDG down-counter reload value RLR RL LL_IWDG_SetReloadCounter.
__STATIC_INLINE uint32_t LL_IWDG_GetReloadCounter (IWDG_TypeDef *IWDGx)
 Get the specified IWDG down-counter reload value RLR RL LL_IWDG_GetReloadCounter.
__STATIC_INLINE void LL_IWDG_SetWindow (IWDG_TypeDef *IWDGx, uint32_t Window)
 Specifies high limit of the window value to be compared to the down-counter.
__STATIC_INLINE uint32_t LL_IWDG_GetWindow (IWDG_TypeDef *IWDGx)
 Get the high limit of the window value specified.

Function Documentation

__STATIC_INLINE void LL_IWDG_DisableWriteAccess ( IWDG_TypeDef *  IWDGx )

Disable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers KR KEY LL_IWDG_DisableWriteAccess.

Parameters:
IWDGxIWDG Instance
Return values:
None

Definition at line 196 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_Enable ( IWDG_TypeDef *  IWDGx )

Start the Independent Watchdog.

Note:
Except if the hardware watchdog option is selected KR KEY LL_IWDG_Enable
Parameters:
IWDGxIWDG Instance
Return values:
None

Definition at line 163 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_EnableWriteAccess ( IWDG_TypeDef *  IWDGx )

Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers KR KEY LL_IWDG_EnableWriteAccess.

Parameters:
IWDGxIWDG Instance
Return values:
None

Definition at line 185 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE uint32_t LL_IWDG_GetPrescaler ( IWDG_TypeDef *  IWDGx )

Get the selected prescaler of the IWDG PR PR LL_IWDG_GetPrescaler.

Parameters:
IWDGxIWDG Instance
Return values:
Returnedvalue can be one of the following values:

  • LL_IWDG_PRESCALER_4
  • LL_IWDG_PRESCALER_8
  • LL_IWDG_PRESCALER_16
  • LL_IWDG_PRESCALER_32
  • LL_IWDG_PRESCALER_64
  • LL_IWDG_PRESCALER_128
  • LL_IWDG_PRESCALER_256

Definition at line 233 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE uint32_t LL_IWDG_GetReloadCounter ( IWDG_TypeDef *  IWDGx )

Get the specified IWDG down-counter reload value RLR RL LL_IWDG_GetReloadCounter.

Parameters:
IWDGxIWDG Instance
Return values:
0..0x0FFF

Definition at line 256 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE uint32_t LL_IWDG_GetWindow ( IWDG_TypeDef *  IWDGx )

Get the high limit of the window value specified.

WINR WIN LL_IWDG_GetWindow

Parameters:
IWDGxIWDG Instance
Return values:
0..0x0FFF

Definition at line 279 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_ReloadCounter ( IWDG_TypeDef *  IWDGx )

Reloads IWDG counter with value defined in the reload register KR KEY LL_IWDG_ReloadCounter.

Parameters:
IWDGxIWDG Instance
Return values:
None

Definition at line 174 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_SetPrescaler ( IWDG_TypeDef *  IWDGx,
uint32_t  Prescaler 
)

Select the prescaler of the IWDG PR PR LL_IWDG_SetPrescaler.

Parameters:
IWDGxIWDG Instance
PrescalerThis parameter can be one of the following values:

  • LL_IWDG_PRESCALER_4
  • LL_IWDG_PRESCALER_8
  • LL_IWDG_PRESCALER_16
  • LL_IWDG_PRESCALER_32
  • LL_IWDG_PRESCALER_64
  • LL_IWDG_PRESCALER_128
  • LL_IWDG_PRESCALER_256
Return values:
None

Definition at line 215 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_SetReloadCounter ( IWDG_TypeDef *  IWDGx,
uint32_t  Counter 
)

Specifies the IWDG down-counter reload value RLR RL LL_IWDG_SetReloadCounter.

Parameters:
IWDGxIWDG Instance
Counter0..0x0FFF
Return values:
None

Definition at line 245 of file stm32l4xx_ll_iwdg.h.

__STATIC_INLINE void LL_IWDG_SetWindow ( IWDG_TypeDef *  IWDGx,
uint32_t  Window 
)

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

WINR WIN LL_IWDG_SetWindow

Parameters:
IWDGxIWDG Instance
Window0..0x0FFF
Return values:
None

Definition at line 268 of file stm32l4xx_ll_iwdg.h.