1.2.19.35 1.3.22.35 1.4.20.35 1.5.21.35 1.6.21.35 1.7.22.35 1.29.21.35 1.30.15.27 1.31.15.27 1.32.24.35 1.33.15.27 1.37.15.27 1.38.20.35 1.39.17.35 1.40.19.35 RTC_Timer16PeriodGet Function

C

uint16_t RTC_Timer16PeriodGet ( void )

Summary

Get 16-bit timer period Value.

Description

This function returns the 16-bit timer period value which used to compare with the current counter value. This value will match the value that was set using the RTC_Timer16PeriodSet() function.

Precondition

RTC_Initialize must have been called for the associated RTC instance. The RTC peripheral should have been configured in 16-bit Timer Counter mode

Parameters

None.

Returns

The current 16-bit timer period value.

Example

uint16_t period = 0;
RTC_Initialize();
RTC_Timer16PeriodSet(0xFFF);

// period will have the same value is 0xFFF.
period = RTC_Timer16PeriodGet();

Remarks

None.