1.29.21.17 RTC_Timer32PeriodGet Function
C
uint32_t RTC_Timer32PeriodGet ( void )
Summary
Get 32-bit timer period Value.
Description
This function returns the 32-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_Timer32CompareSet() function.
Precondition
RTC_Initialize must have been called for the associated RTC instance. The RTC peripheral should have been configured in 32-bit Timer Counter mode.
Parameters
None.
Returns
The current 32-bit timer period value.
Example
uitnt32_t period = 0; RTC_Initialize(); RTC_Timer32CompareSet(0xFFF); // period will have the same value is 0xFFF. period = RTC_Timer32PeriodGet();
Remarks
None.