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

Header file of LPTMR DDL module. More...

#include "g32r4xx.h"

Go to the source code of this file.

Data Structures

struct  DDL_LPTMR_InitTypeDef
 LPTMR Time Base configuration structure definition. More...

Macros

#define DDL_LPTMR_STS_RUF   LPTMR_SR_RU
#define DDL_LPTMR_STS_PUF   LPTMR_SR_PU
#define DDL_LPTMR_STS_WKF   LPTMR_SR_WK_STS
#define DDL_LPTMR_INT_WKEN   LPTMR_CR_IREN
#define DDL_LPTMR_WriteReg(__INSTANCE__, __REG__, __VALUE__)
 Write a value in LPTMR register.
#define DDL_LPTMR_ReadReg(__INSTANCE__, __REG__)
 Read a value in LPTMR register.

Functions

__STATIC_INLINE void DDL_LPTMR_Enable (LPTMR_TypeDef *LPTMRx)
 Enable low power timer.
__STATIC_INLINE void DDL_LPTMR_Disable (LPTMR_TypeDef *LPTMRx)
 Disable low power timer.
__STATIC_INLINE void DDL_LPTMR_EnableClk (void)
 Enable low power timer clock.
__STATIC_INLINE void DDL_LPTMR_DisableClk (void)
 Disable low power timer clock.
__STATIC_INLINE void DDL_LPTMR_SetPrescaler (LPTMR_TypeDef *LPTMRx, uint32_t Prescaler)
 Set the prescaler value.
__STATIC_INLINE uint32_t DDL_LPTMR_GetPrescaler (LPTMR_TypeDef *LPTMRx)
 Get the prescaler value.
__STATIC_INLINE void DDL_LPTMR_SetWakeUpValue (LPTMR_TypeDef *LPTMRx, uint32_t Value)
 Set the wake up value.
__STATIC_INLINE uint32_t DDL_LPTMR_GetWakeUpValue (LPTMR_TypeDef *LPTMRx)
 Get the wake up value.
__STATIC_INLINE void DDL_LPTMR_ClearFlag_WakeUp (LPTMR_TypeDef *LPTMRx)
 Clear wake-up flag (WKF) by writing 0.
__STATIC_INLINE uint32_t DDL_LPTMR_IsActiveFlag_ReloadUpdate (LPTMR_TypeDef *LPTMRx)
 Indicate whether reload update flag (RUF) is set.
__STATIC_INLINE uint32_t DDL_LPTMR_IsActiveFlag_PrescalerUpdate (LPTMR_TypeDef *LPTMRx)
 Indicate whether prescaler update flag (PUF) is set.
__STATIC_INLINE uint32_t DDL_LPTMR_IsActiveFlag_WakeUp (LPTMR_TypeDef *LPTMRx)
 Indicate whether wake up interrupt flag (WKF) is set (wake up interrupt is pending).
__STATIC_INLINE void DDL_LPTMR_EnableIT_WakeUp (LPTMR_TypeDef *LPTMRx)
 Enable wake up interrupt (WK).
__STATIC_INLINE void DDL_LPTMR_DisableIT_WakeUp (LPTMR_TypeDef *LPTMRx)
 Disable wake up interrupt (WK).
void DDL_LPTMR_StructInit (DDL_LPTMR_InitTypeDef *LPTMR_InitStruct)
 Set the fields of the time base unit configuration data structure to their default values.
ErrorStatus DDL_LPTMR_DeInit (LPTMR_TypeDef *LPTMRx)
 Set LPTMRx registers to their reset values.
ErrorStatus DDL_LPTMR_Init (LPTMR_TypeDef *LPTMRx, DDL_LPTMR_InitTypeDef *LPTMR_InitStruct)
 Configure the LPTMRx time base unit.

Detailed Description

Header file of LPTMR 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_lptmr.h.