G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
g32r4xx_ddl_iwdt.h File Reference

Header file of IWDT DDL module. More...

#include "g32r4xx.h"

Go to the source code of this file.

Macros

#define DDL_IWDT_KEY_RELOAD   0x0000AAAAU
#define DDL_IWDT_KEY_ENABLE   0x0000CCCCU
#define DDL_IWDT_KEY_WR_ACCESS_ENABLE   0x00005555U
#define DDL_IWDT_KEY_WR_ACCESS_DISABLE   0x00000000U
#define DDL_IWDT_STS_PSCUFLG   IWDT_STS_PSCUFLG
#define DDL_IWDT_STS_CNTUFLG   IWDT_STS_CNTUFLG
#define DDL_IWDT_PSC_4   0x00000000U
#define DDL_IWDT_PSC_8   (IWDT_PSC_PSC_0)
#define DDL_IWDT_PSC_16   (IWDT_PSC_PSC_1)
#define DDL_IWDT_PSC_32   (IWDT_PSC_PSC_1 | IWDT_PSC_PSC_0)
#define DDL_IWDT_PSC_64   (IWDT_PSC_PSC_2)
#define DDL_IWDT_PSC_128   (IWDT_PSC_PSC_2 | IWDT_PSC_PSC_0)
#define DDL_IWDT_PSC_256   (IWDT_PSC_PSC_2 | IWDT_PSC_PSC_1)
#define DDL_IWDT_WriteReg(__INSTANCE__, __REG__, __VALUE__)
 Write a value in IWDT register.
#define DDL_IWDT_ReadReg(__INSTANCE__, __REG__)
 Read a value in IWDT register.

Functions

__STATIC_INLINE void DDL_IWDT_Enable (IWDT_TypeDef *IWDTx)
 Start the Independent Watchdog.
__STATIC_INLINE void DDL_IWDT_ReloadCounter (IWDT_TypeDef *IWDTx)
 Reloads IWDT counter with value defined in the reload register.
__STATIC_INLINE void DDL_IWDT_EnableWriteAccess (IWDT_TypeDef *IWDTx)
 Enable write access to IWDT_PR, IWDT_RLR and IWDT_WINR registers.
__STATIC_INLINE void DDL_IWDT_DisableWriteAccess (IWDT_TypeDef *IWDTx)
 Disable write access to IWDT_PR, IWDT_RLR and IWDT_WINR registers.
__STATIC_INLINE void DDL_IWDT_SetPrescaler (IWDT_TypeDef *IWDTx, uint32_t Prescaler)
 Select the prescaler of the IWDT.
__STATIC_INLINE uint32_t DDL_IWDT_GetPrescaler (IWDT_TypeDef *IWDTx)
 Get the selected prescaler of the IWDT.
__STATIC_INLINE void DDL_IWDT_SetReloadCounter (IWDT_TypeDef *IWDTx, uint32_t Counter)
 Specify the IWDT down-counter reload value.
__STATIC_INLINE uint32_t DDL_IWDT_GetReloadCounter (IWDT_TypeDef *IWDTx)
 Get the specified IWDT down-counter reload value.
__STATIC_INLINE uint32_t DDL_IWDT_IsActiveFlag_PVU (IWDT_TypeDef *IWDTx)
 Check if flag Prescaler Value Update is set or not.
__STATIC_INLINE uint32_t DDL_IWDT_IsActiveFlag_RVU (IWDT_TypeDef *IWDTx)
 Check if flag Reload Value Update is set or not.
__STATIC_INLINE uint32_t DDL_IWDT_IsReady (IWDT_TypeDef *IWDTx)
 Check if flags Prescaler & Reload Value Update are reset or not.

Detailed Description

Header file of IWDT DDL module.

Attention

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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_iwdt.h.