1.2.19.26 1.3.22.26 1.4.20.26 1.5.21.26 1.6.21.26 1.7.22.26 1.29.21.26 1.30.15.18 1.31.15.18 1.32.24.26 1.33.15.18 1.37.15.18 1.38.20.26 1.39.17.26 1.40.19.26 RTC_Timer16Compare0Set Function
C
void RTC_Timer16Compare0Set ( uint16_t comparisionValue )
Summary
Set the 16-Bit Counter Compare 0 Value.
Description
This function will set the Counter Compare 0 Value. The module will compare the counter against this value and will signal a match when the counter equals the compare value. If the library was configured for interrupt mode, the Compare 0 event is enabled and if a valid callback is registered, the library will call the registered callback function with the RTC_TIMER16_INT_MASK_COMP0 / RTC_TIMER16_INT_MASK_COMPARE0_MATCH event. The RTC_Timer16Compare0HasMatched() function will return true when the match occurs.
Precondition
RTC_Initialize, RTC_Timer16Start must have been called for the associated RTC instance. The module should have configured for 16-bit Timer Counter operation.
Parameters
None.
Returns
16-bit compare value compares with the current counter value.
Example
// Refer to the description of the RTC_Timer16Compare0HasMatched() // function for example usage of the RTC_Timer16Compare0Set() function.
Remarks
None.