G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

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.

Detailed Description

Function Documentation

◆ DDL_LPTMR_Disable()

__STATIC_INLINE void DDL_LPTMR_Disable ( LPTMR_TypeDef * LPTMRx)

Disable low power timer.

Parameters
LPTMRxLPTimer instance
Return values
None

Definition at line 174 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_DisableClk()

__STATIC_INLINE void DDL_LPTMR_DisableClk ( void )

Disable low power timer clock.

Parameters
None
Return values
None

Definition at line 194 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_Enable()

__STATIC_INLINE void DDL_LPTMR_Enable ( LPTMR_TypeDef * LPTMRx)

Enable low power timer.

Parameters
LPTMRxLPTimer instance
Return values
None

Definition at line 164 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_EnableClk()

__STATIC_INLINE void DDL_LPTMR_EnableClk ( void )

Enable low power timer clock.

Parameters
None
Return values
None

Definition at line 184 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_GetPrescaler()

__STATIC_INLINE uint32_t DDL_LPTMR_GetPrescaler ( LPTMR_TypeDef * LPTMRx)

Get the prescaler value.

Parameters
LPTMRxLPTimer instance
Return values
Prescalervalue between Min_Data=0 and Max_Data=15

Definition at line 216 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_GetWakeUpValue()

__STATIC_INLINE uint32_t DDL_LPTMR_GetWakeUpValue ( LPTMR_TypeDef * LPTMRx)

Get the wake up value.

Note
Macro IS_LPTMR_32B_COUNTER_INSTANCE(LPTMRx) can be used to check whether or not a timer instance supports a 32 bits counter.
Parameters
LPTMRxLPTimer instance
Return values
Auto-reloadvalue

Definition at line 239 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_SetPrescaler()

__STATIC_INLINE void DDL_LPTMR_SetPrescaler ( LPTMR_TypeDef * LPTMRx,
uint32_t Prescaler )

Set the prescaler value.

Note
The prescaler can be changed on the fly as this control register is buffered.
Parameters
LPTMRxLPTimer instance
Prescalerbetween Min_Data=0 and Max_Data=15
Return values
None

Definition at line 206 of file g32r4xx_ddl_lptmr.h.

◆ DDL_LPTMR_SetWakeUpValue()

__STATIC_INLINE void DDL_LPTMR_SetWakeUpValue ( LPTMR_TypeDef * LPTMRx,
uint32_t Value )

Set the wake up value.

Parameters
LPTMRxLPTimer instance
Valuebetween Min_Data=0 and Max_Data=65535
Return values
None

Definition at line 227 of file g32r4xx_ddl_lptmr.h.