![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Header file of WWDT DDL module. More...
#include "g32r4xx.h"Go to the source code of this file.
Macros | |
| #define | DDL_WWDT_CFG_EWIEN WWDT_CFG_EWIEN |
| #define | DDL_WWDT_PRESCALER_1 0x00000000u |
| #define | DDL_WWDT_PRESCALER_2 WWDT_CFG_TBPSC_0 |
| #define | DDL_WWDT_PRESCALER_4 WWDT_CFG_TBPSC_1 |
| #define | DDL_WWDT_PRESCALER_8 (WWDT_CFG_TBPSC_0 | WWDT_CFG_TBPSC_1) |
| #define | DDL_WWDT_WriteReg(__INSTANCE__, __REG__, __VALUE__) |
| Write a value in WWDT register. | |
| #define | DDL_WWDT_ReadReg(__INSTANCE__, __REG__) |
| Read a value in WWDT register. | |
Functions | |
| __STATIC_INLINE void | DDL_WWDT_Enable (WWDT_TypeDef *WWDTx) |
| Enable Window Watchdog. The watchdog is always disabled after a reset. | |
| __STATIC_INLINE uint32_t | DDL_WWDT_IsEnabled (WWDT_TypeDef *WWDTx) |
| Checks if Window Watchdog is enabled. | |
| __STATIC_INLINE void | DDL_WWDT_SetCounter (WWDT_TypeDef *WWDTx, uint32_t Counter) |
| Set the Watchdog counter value to provided value (7-bits T[6:0]). | |
| __STATIC_INLINE uint32_t | DDL_WWDT_GetCounter (WWDT_TypeDef *WWDTx) |
| Return current Watchdog Counter Value (7 bits counter value). | |
| __STATIC_INLINE void | DDL_WWDT_SetPrescaler (WWDT_TypeDef *WWDTx, uint32_t Prescaler) |
| Set the time base of the prescaler (WDGTB). | |
| __STATIC_INLINE uint32_t | DDL_WWDT_GetPrescaler (WWDT_TypeDef *WWDTx) |
| Return current Watchdog Prescaler Value. | |
| __STATIC_INLINE void | DDL_WWDT_SetWindow (WWDT_TypeDef *WWDTx, uint32_t Window) |
| Set the Watchdog Window value to be compared to the downcounter (7-bits W[6:0]). | |
| __STATIC_INLINE uint32_t | DDL_WWDT_GetWindow (WWDT_TypeDef *WWDTx) |
| Return current Watchdog Window Value (7 bits value). | |
| __STATIC_INLINE uint32_t | DDL_WWDT_IsActiveFlag_EWKUP (WWDT_TypeDef *WWDTx) |
| Indicates if the WWDT Early Wakeup Interrupt Flag is set or not. | |
| __STATIC_INLINE void | DDL_WWDT_ClearFlag_EWKUP (WWDT_TypeDef *WWDTx) |
| Clear WWDT Early Wakeup Interrupt Flag (EWIF). | |
| __STATIC_INLINE void | DDL_WWDT_EnableIT_EWKUP (WWDT_TypeDef *WWDTx) |
| Enable the Early Wakeup Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_WWDT_IsEnabledIT_EWKUP (WWDT_TypeDef *WWDTx) |
| Check if Early Wakeup Interrupt is enabled. | |
Header file of WWDT DDL module.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The original code has been modified by Geehy Semiconductor.
Copyright (c) 2016 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file g32r4xx_ddl_wwdt.h.