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

Functions

__STATIC_INLINE void DDL_RTC_SetPrescaler (RTC_TypeDef *RTCx, uint32_t Prescaler)
 Set prescaler factor.
__STATIC_INLINE uint32_t RTC_GetPrescalerRemainderValue (RTC_TypeDef *RTCx)
 Get the prescaler remainder value.
__STATIC_INLINE void DDL_RTC_SetClkSource (uint32_t Source)
 Set RTC clock source.
__STATIC_INLINE uint32_t DDL_RTC_GetClkSource (void)
 Get RTC clock source.
__STATIC_INLINE void DDL_RTC_EnableInitMode (RTC_TypeDef *RTCx)
 Enable initialization mode.
__STATIC_INLINE void DDL_RTC_DisableInitMode (RTC_TypeDef *RTCx)
 Disable initialization mode (Free running mode).
__STATIC_INLINE void DDL_RTC_EnableClk (void)
 Enable RTC clock.
__STATIC_INLINE void DDL_RTC_DisableClk (void)
 Disable RTC clock.

Detailed Description

Function Documentation

◆ DDL_RTC_DisableClk()

__STATIC_INLINE void DDL_RTC_DisableClk ( void )

Disable RTC clock.

Parameters
None
Return values
None

Definition at line 299 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_DisableInitMode()

__STATIC_INLINE void DDL_RTC_DisableInitMode ( RTC_TypeDef * RTCx)

Disable initialization mode (Free running mode).

Parameters
RTCxRTC Instance
Return values
None

Definition at line 278 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_EnableClk()

__STATIC_INLINE void DDL_RTC_EnableClk ( void )

Enable RTC clock.

Parameters
None
Return values
None

Definition at line 289 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_EnableInitMode()

__STATIC_INLINE void DDL_RTC_EnableInitMode ( RTC_TypeDef * RTCx)

Enable initialization mode.

Note
Initialization mode is used to program time register (RTC_TIME) and alarm register (RTC_ALARM) and prescaler register (RTC_PSC). Counters are stopped and start counting from the new value when INIT is reset.
Parameters
RTCxRTC Instance
Return values
None

Definition at line 267 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_GetClkSource()

__STATIC_INLINE uint32_t DDL_RTC_GetClkSource ( void )

Get RTC clock source.

Parameters
None
Return values
Valuecan be one of the following values:

Definition at line 254 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_SetClkSource()

__STATIC_INLINE void DDL_RTC_SetClkSource ( uint32_t Source)

Set RTC clock source.

Parameters
SourceThis parameter can be one of the following values:
Return values
None

Definition at line 240 of file g32r4xx_ddl_rtc.h.

◆ DDL_RTC_SetPrescaler()

__STATIC_INLINE void DDL_RTC_SetPrescaler ( RTC_TypeDef * RTCx,
uint32_t Prescaler )

Set prescaler factor.

Parameters
RTCxRTC Instance
PrescalerValue between Min_Data = 0 and Max_Data = 0xFFFFF
Return values
None

Definition at line 215 of file g32r4xx_ddl_rtc.h.

◆ RTC_GetPrescalerRemainderValue()

__STATIC_INLINE uint32_t RTC_GetPrescalerRemainderValue ( RTC_TypeDef * RTCx)

Get the prescaler remainder value.

Parameters
RTCxRTC Instance
Return values
Theremainder value ranging from 0 to 0xFFFFF

Definition at line 226 of file g32r4xx_ddl_rtc.h.