1.2.19.5 1.3.22.5 1.4.20.5 1.5.21.5 1.6.21.5 1.7.22.5 1.29.21.5 1.32.24.5 1.38.20.5 1.39.17.5 1.40.19.5 RTC_Timer32Compare1HasMatched Function
C
bool RTC_Timer32Compare1HasMatched ( void )
Summary
Check for 32-bit Timer Compare match
Description
This function returns true if the counter value has matched the configured 32-bit compare value.
Precondition
RTC_Initialize, RTC_Timer32Start and RTC_Timer32CompareSet 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
True, if compare match has occurred and False otherwise.
Example
bool compareHasMatched = false; RTC_Initialize(); RTC_Timer32Compare1Set(0x3000); RTC_Timer32CounterSet(0); RTC_Timer32Start(); // Wait until compare match while(!RTC_Timer32Compare1HasMatched();
Remarks
This API is available for devices that have more than one compare register in 32-bit mode.