Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Configuration
[WWDG Exported Functions]
Functions | |
__STATIC_INLINE void | LL_WWDG_Enable (WWDG_TypeDef *WWDGx) |
Enable Window Watchdog. | |
__STATIC_INLINE uint32_t | LL_WWDG_IsEnabled (WWDG_TypeDef *WWDGx) |
Checks if Window Watchdog is enabled CR WDGA LL_WWDG_IsEnabled. | |
__STATIC_INLINE void | LL_WWDG_SetCounter (WWDG_TypeDef *WWDGx, uint32_t Counter) |
Set the Watchdog counter value to provided value (7-bits b6-b0 value). | |
__STATIC_INLINE uint32_t | LL_WWDG_GetCounter (WWDG_TypeDef *WWDGx) |
Return current Watchdog Counter Value (7 bits counter value) CR T LL_WWDG_GetCounter. | |
__STATIC_INLINE void | LL_WWDG_SetPrescaler (WWDG_TypeDef *WWDGx, uint32_t Prescaler) |
Set the time base of the prescaler (WDGTB). | |
__STATIC_INLINE uint32_t | LL_WWDG_GetPrescaler (WWDG_TypeDef *WWDGx) |
Return current Watchdog Prescaler Value CFR WDGTB LL_WWDG_GetPrescaler. | |
__STATIC_INLINE void | LL_WWDG_SetWindow (WWDG_TypeDef *WWDGx, uint32_t Window) |
Set the Watchdog Window value to be compared to the downcounter (7-bits b6-b0 value). | |
__STATIC_INLINE uint32_t | LL_WWDG_GetWindow (WWDG_TypeDef *WWDGx) |
Return current Watchdog Window Value (7 bits value) CFR W LL_WWDG_GetWindow. |
Function Documentation
__STATIC_INLINE void LL_WWDG_Enable | ( | WWDG_TypeDef * | WWDGx ) |
Enable Window Watchdog.
The watchdog is always disabled after a reset. It is enabled by setting the WDGA bit in the WWDG_CR register, then it cannot be disabled again except by a reset. This bit is set by software and only cleared by hardware after a reset. When WDGA = 1, the watchdog can generate a reset. CR WDGA LL_WWDG_Enable
- Parameters:
-
WWDGx WWDG Instance
- Return values:
-
None
Definition at line 155 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE uint32_t LL_WWDG_GetCounter | ( | WWDG_TypeDef * | WWDGx ) |
Return current Watchdog Counter Value (7 bits counter value) CR T LL_WWDG_GetCounter.
- Parameters:
-
WWDGx WWDG Instance
- Return values:
-
7 bit Watchdog Counter value
Definition at line 192 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE uint32_t LL_WWDG_GetPrescaler | ( | WWDG_TypeDef * | WWDGx ) |
Return current Watchdog Prescaler Value CFR WDGTB LL_WWDG_GetPrescaler.
- Parameters:
-
WWDGx WWDG Instance
- Return values:
-
Returned value can be one of the following values: - LL_WWDG_PRESCALER_1
- LL_WWDG_PRESCALER_2
- LL_WWDG_PRESCALER_4
- LL_WWDG_PRESCALER_8
Definition at line 225 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE uint32_t LL_WWDG_GetWindow | ( | WWDG_TypeDef * | WWDGx ) |
Return current Watchdog Window Value (7 bits value) CFR W LL_WWDG_GetWindow.
- Parameters:
-
WWDGx WWDG Instance
- Return values:
-
7 bit Watchdog Window value
Definition at line 255 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE uint32_t LL_WWDG_IsEnabled | ( | WWDG_TypeDef * | WWDGx ) |
Checks if Window Watchdog is enabled CR WDGA LL_WWDG_IsEnabled.
- Parameters:
-
WWDGx WWDG Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 166 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE void LL_WWDG_SetCounter | ( | WWDG_TypeDef * | WWDGx, |
uint32_t | Counter | ||
) |
Set the Watchdog counter value to provided value (7-bits b6-b0 value).
When writing to the WWDG_CR register, always write 1 in the MSB b6 to avoid generating an immediate reset. This counter is decremented every (4096 x 2expWDGTB) PCLK cycles. A reset is produced when it rolls over from 0x40 to 0x3F (b6 becomes cleared) CR T LL_WWDG_SetCounter
- Parameters:
-
WWDGx WWDG Instance Counter 0..0x7F (7 bit counter value)
- Return values:
-
None
Definition at line 181 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE void LL_WWDG_SetPrescaler | ( | WWDG_TypeDef * | WWDGx, |
uint32_t | Prescaler | ||
) |
Set the time base of the prescaler (WDGTB).
Prescaler is used to apply ratio on PCLK clock, so that Watchdog counter is decremented every (4096 x 2expWDGTB) PCLK cycles CFR WDGTB LL_WWDG_SetPrescaler
- Parameters:
-
WWDGx WWDG Instance Prescaler This parameter can be one of the following values: - LL_WWDG_PRESCALER_1
- LL_WWDG_PRESCALER_2
- LL_WWDG_PRESCALER_4
- LL_WWDG_PRESCALER_8
- Return values:
-
None
Definition at line 210 of file stm32l4xx_ll_wwdg.h.
__STATIC_INLINE void LL_WWDG_SetWindow | ( | WWDG_TypeDef * | WWDGx, |
uint32_t | Window | ||
) |
Set the Watchdog Window value to be compared to the downcounter (7-bits b6-b0 value).
This window value defines when write in the WWDG_CR register to program Watchdog counter is allowed. Watchdog counter value update must occur only when the counter value is lower than the Watchdog window register value. Otherwise, a MCU reset is generated if the 7-bit Watchdog counter value (in the control register) is refreshed before the downcounter has reached the watchdog window register value. CFR W LL_WWDG_SetWindow
- Parameters:
-
WWDGx WWDG Instance Window 0..0x7F (7 bit Window value)
- Return values:
-
None
Definition at line 244 of file stm32l4xx_ll_wwdg.h.
Generated on Tue Jul 12 2022 11:35:29 by
